update dev300-m58
[ooovba.git] / rsc / inc / rsckey.hxx
blobde3a2a3dac25b44fed415b68c872d7597bf4f831
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: rsckey.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
30 #ifndef _RSCKEY_HXX
31 #define _RSCKEY_HXX
33 /****************** C l a s s F o r w a r d s **************************/
34 class RscTop;
36 #include <rscall.h>
38 typedef struct {
39 Atom nName;
40 sal_uInt32 nTyp;
41 long yylval;
42 } KEY_STRUCT;
44 class RscNameTable {
45 BOOL bSort; //soll bei jedem einfuegen sortiert werden?
46 sal_uInt32 nEntries; //Anzahl der Eintr�ge
47 KEY_STRUCT * pTable;
48 public:
49 RscNameTable();
50 ~RscNameTable();
51 void SetSort( BOOL bSorted = TRUE );
52 Atom Put( Atom nName, sal_uInt32 nTyp, long nValue );
53 Atom Put( Atom nName, sal_uInt32 nTyp );
54 Atom Put( const char * pName, sal_uInt32 nTyp, long nValue );
55 Atom Put( const char * pName, sal_uInt32 nTyp );
56 Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
57 Atom Put( const char * pName, sal_uInt32 nTyp, RscTop * pClass );
59 // TRUE, wurde gefunden
60 BOOL Get( Atom nName, KEY_STRUCT * pEle );
64 #endif// _RSCKEY_HXX