Update ooo320-m1
[ooovba.git] / xml2cmp / source / inc / lst_str.h
blob04b6ef50ad32230bdad2b5e073d3056c4444188a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: lst_str.h,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CPV_LST_STR_H
32 #define CPV_LST_STR_H
34 #include "str.h"
37 typedef struct LSElem
39 Cstring * pData;
40 struct LSElem * pNext;
41 } LSElem;
44 typedef struct LSIterator
46 LSElem * pElement;
47 } LSIterator;
50 typedef struct ListCstring
52 LSElem * dpStart;
53 LSElem * pEnd;
54 Bool bAutoDeleteData;
55 } ListCstring;
58 #define ListCstring_THIS ListCstring * pThis
59 #define LSIterator_THIS LSIterator * pThis
60 #define LSElem_THIS LSElem * pThis
64 void ListCstring_CTOR( ListCstring_THIS,
65 Bool i_bAutoDeleteData );
66 void ListCstring_DTOR( ListCstring_THIS );
68 void LS_Add( ListCstring_THIS,
69 Cstring * i_pData );
70 void LS_Empty( ListCstring_THIS,
71 Bool i_bDeleteData );
72 void LS_Append( ListCstring_THIS,
73 char * i_sStrings[],
74 intt i_nNrOfStrings );
75 Bool LS_IsEmpty( ListCstring_THIS );
77 LSIterator LS_Begin( ListCstring_THIS );
80 void LSIterator_CTOR( LSIterator_THIS,
81 LSElem * i_pElement );
82 void LSI_opp( LSIterator_THIS ); /** operator++() */
84 Bool LSI_obool( LSIterator_THIS );
85 Cstring * LSI_optr( LSIterator_THIS ); /** operator->() */
88 void LSElem_CTOR( LSElem_THIS,
89 Cstring * i_pData );
90 void LSElem_DTOR( LSElem_THIS );
92 Cstring * LSE_Data( LSElem_THIS );
93 LSElem * LSE_Next( LSElem_THIS );
95 void LSE_SetNext( LSElem_THIS,
96 LSElem * i_pNext );
97 void LSE_DeleteData( LSElem_THIS );
101 #endif