1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: lst_str.h,v $
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 ************************************************************************/
40 struct LSElem
* pNext
;
44 typedef struct LSIterator
50 typedef struct 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
,
70 void LS_Empty( ListCstring_THIS
,
72 void LS_Append( ListCstring_THIS
,
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
,
90 void LSElem_DTOR( LSElem_THIS
);
92 Cstring
* LSE_Data( LSElem_THIS
);
93 LSElem
* LSE_Next( LSElem_THIS
);
95 void LSE_SetNext( LSElem_THIS
,
97 void LSE_DeleteData( LSElem_THIS
);