home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / layout / laytrav.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  45 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef _Laytrav_h_
  20. #define _Laytrav_h_
  21.  
  22. #include "xp_core.h"
  23.  
  24. /*    I wanted to define the following API to traverse the line list.
  25.  *    What do you guys think?  This might come in handy later when
  26.  *  we want to traverse the different line lists in the layer tree.
  27.  *  The logic for figuring out the next layer to go to will all be in one
  28.  *  place: laytrav.c.  
  29.  */
  30.  
  31. /* API for traversing layout element list by visiting the nodes of the layer tree. */
  32.  
  33. /* You want to be able to go through only visible layers */
  34. /* You want the option to drill down into containers or not. */
  35.  
  36. LO_Element * lo_tv_GetFirstLayoutElement( lo_DocState *state );
  37. LO_Element * lo_tv_GetNextLayoutElement( lo_DocState *state, LO_Element *curr_ele, Bool skipContainers );
  38. LO_Element * lo_tv_GetPrevLayoutElement( lo_DocState *state, LO_Element *curr_ele );
  39. LO_Element * lo_tv_FindNextElementOfType( lo_DocState *state, LO_Element *curr_ele, uint32 ele_type );
  40. LO_Element * lo_tv_FindPrevElementOfType( lo_DocState *state, LO_Element *curr_ele, uint32 ele_type );
  41.  
  42. Bool lo_tv_IsAContainer( LO_Element *curr_ele );
  43.  
  44. #endif
  45.