xref: /aoo41x/main/rsc/inc/rsckey.hxx (revision f7c60c9c)
1*f7c60c9cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*f7c60c9cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*f7c60c9cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*f7c60c9cSAndrew Rist  * distributed with this work for additional information
6*f7c60c9cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*f7c60c9cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*f7c60c9cSAndrew Rist  * "License"); you may not use this file except in compliance
9*f7c60c9cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*f7c60c9cSAndrew Rist  *
11*f7c60c9cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*f7c60c9cSAndrew Rist  *
13*f7c60c9cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*f7c60c9cSAndrew Rist  * software distributed under the License is distributed on an
15*f7c60c9cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*f7c60c9cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*f7c60c9cSAndrew Rist  * specific language governing permissions and limitations
18*f7c60c9cSAndrew Rist  * under the License.
19*f7c60c9cSAndrew Rist  *
20*f7c60c9cSAndrew Rist  *************************************************************/
21*f7c60c9cSAndrew Rist 
22*f7c60c9cSAndrew Rist 
23cdf0e10cSrcweir #ifndef _RSCKEY_HXX
24cdf0e10cSrcweir #define _RSCKEY_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir /****************** C l a s s   F o r w a r d s **************************/
27cdf0e10cSrcweir class RscTop;
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <rscall.h>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir typedef struct {
32cdf0e10cSrcweir     Atom          nName;
33cdf0e10cSrcweir     sal_uInt32          nTyp;
34cdf0e10cSrcweir     long            yylval;
35cdf0e10cSrcweir } KEY_STRUCT;
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class RscNameTable {
38cdf0e10cSrcweir     sal_Bool            bSort;      //soll bei jedem einfuegen sortiert werden?
39cdf0e10cSrcweir     sal_uInt32          nEntries;   //Anzahl der Eintr�ge
40cdf0e10cSrcweir     KEY_STRUCT *    pTable;
41cdf0e10cSrcweir public:
42cdf0e10cSrcweir             RscNameTable();
43cdf0e10cSrcweir             ~RscNameTable();
44cdf0e10cSrcweir     void    SetSort( sal_Bool bSorted = sal_True );
45cdf0e10cSrcweir     Atom  Put( Atom nName, sal_uInt32 nTyp, long nValue );
46cdf0e10cSrcweir     Atom  Put( Atom nName, sal_uInt32 nTyp );
47cdf0e10cSrcweir     Atom  Put( const char * pName, sal_uInt32 nTyp, long nValue );
48cdf0e10cSrcweir     Atom  Put( const char * pName, sal_uInt32 nTyp );
49cdf0e10cSrcweir     Atom  Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
50cdf0e10cSrcweir     Atom  Put( const char * pName, sal_uInt32 nTyp, RscTop * pClass );
51cdf0e10cSrcweir 
52cdf0e10cSrcweir             // sal_True, wurde gefunden
53cdf0e10cSrcweir     sal_Bool    Get( Atom nName, KEY_STRUCT * pEle );
54cdf0e10cSrcweir };
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 
57cdf0e10cSrcweir #endif// _RSCKEY_HXX
58