diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 02:35:31 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 20:53:12 +0000 |
commit | bb45bdf359c65c174fd557d615f77ceb46fa685c (patch) | |
tree | 1f87575ee1d0471b14f5078a99d3a589d955d56d /rsc/inc/rsckey.hxx | |
parent | 27a4d5597c0757611d0e2e682d0c05441859cc4e (diff) |
module rsc: String, bool and other clean-up.
Change-Id: I2dcde42e6068631a5a643961a764df86dc63dca2
Reviewed-on: https://gerrit.libreoffice.org/4690
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'rsc/inc/rsckey.hxx')
-rw-r--r-- | rsc/inc/rsckey.hxx | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/rsc/inc/rsckey.hxx b/rsc/inc/rsckey.hxx index d04c4047439f..7ec4141ec325 100644 --- a/rsc/inc/rsckey.hxx +++ b/rsc/inc/rsckey.hxx @@ -24,27 +24,29 @@ class RscTop; #include <rscall.h> -typedef struct { - Atom nName; - sal_uInt32 nTyp; +typedef struct +{ + Atom nName; + sal_uInt32 nTyp; long yylval; } KEY_STRUCT; -class RscNameTable { - sal_Bool bSort; //soll bei jedem einfuegen sortiert werden? - sal_uInt32 nEntries; //Anzahl der Eintr�ge +class RscNameTable +{ + bool bSort; //soll bei jedem einfuegen sortiert werden? + sal_uInt32 nEntries; //Anzahl der Eintr�ge KEY_STRUCT * pTable; public: RscNameTable(); ~RscNameTable(); - void SetSort( sal_Bool bSorted = sal_True ); - Atom Put( Atom nName, sal_uInt32 nTyp, long nValue ); - Atom Put( const char * pName, sal_uInt32 nTyp, long nValue ); - Atom Put( const char * pName, sal_uInt32 nTyp ); - Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass ); - - // sal_True, wurde gefunden - sal_Bool Get( Atom nName, KEY_STRUCT * pEle ); + void SetSort( bool bSorted = true ); + Atom Put( Atom nName, sal_uInt32 nTyp, long nValue ); + Atom Put( const char * pName, sal_uInt32 nTyp, long nValue ); + Atom Put( const char * pName, sal_uInt32 nTyp ); + Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass ); + + // true, wurde gefunden + bool Get( Atom nName, KEY_STRUCT * pEle ); }; |