diff options
author | Andras Timar <atimar@suse.com> | 2013-03-26 11:10:45 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-03-27 09:33:00 +0100 |
commit | 73ff49f47dda14391f0c118f62002cb42680624e (patch) | |
tree | 361fb6fecc7ce1e3466036f967614cd5afe3122d /rsc/source/parser | |
parent | 95c586d5c034115fd252c5fb0e4637bf9dc68a4d (diff) |
remove unused functionality from Resource Compiler
and remove ASCII art comments and other useless comments
Change-Id: Iafa5eb5aa421b38b325bdc7cea6045b43a5c582a
Diffstat (limited to 'rsc/source/parser')
-rw-r--r-- | rsc/source/parser/erscerr.cxx | 66 | ||||
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 281 | ||||
-rw-r--r-- | rsc/source/parser/rscibas.cxx | 99 | ||||
-rw-r--r-- | rsc/source/parser/rscicpx.cxx | 209 | ||||
-rw-r--r-- | rsc/source/parser/rscinit.cxx | 103 | ||||
-rw-r--r-- | rsc/source/parser/rsckey.cxx | 28 | ||||
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 4 | ||||
-rw-r--r-- | rsc/source/parser/rscpar.cxx | 34 | ||||
-rw-r--r-- | rsc/source/parser/rscyacc.y | 5 |
9 files changed, 2 insertions, 827 deletions
diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx index 691f02c7bc19..34e5f385dcd2 100644 --- a/rsc/source/parser/erscerr.cxx +++ b/rsc/source/parser/erscerr.cxx @@ -29,11 +29,6 @@ #include "rsclex.hxx" -/************************************************************************* -|* -|* ERRTYPE::operator = ; -|* -*************************************************************************/ ERRTYPE& ERRTYPE::operator = ( const ERRTYPE & rError ) { if( !IsError() ){ @@ -43,11 +38,6 @@ ERRTYPE& ERRTYPE::operator = ( const ERRTYPE & rError ) return *this; } -/************************************************************************* -|* -|* RscError::StdOut(); -|* -*************************************************************************/ void RscError::StdOut( const char * pStr, const RscVerbosity _verbosityLevel ) { if ( m_verbosity >= _verbosityLevel ) @@ -59,52 +49,27 @@ void RscError::StdOut( const char * pStr, const RscVerbosity _verbosityLevel ) } } -/************************************************************************* -|* -|* RscError::StdErr(); -|* -*************************************************************************/ void RscError::StdErr( const char * pStr ) { if( pStr ) fprintf( stderr, "%s", pStr ); } -/************************************************************************* -|* -|* RscError::LstOut(); -|* -*************************************************************************/ void RscError::LstOut( const char * pStr ){ if( fListing && pStr ) fprintf( fListing, "%s", pStr ); } -/************************************************************************* -|* -|* RscError::StdLstOut(); -|* -*************************************************************************/ void RscError::StdLstOut( const char * pStr ){ StdOut( pStr ); LstOut( pStr ); } -/************************************************************************* -|* -|* RscError::StdLstErr(); -|* -*************************************************************************/ void RscError::StdLstErr( const char * pStr ){ StdErr( pStr ); LstOut( pStr ); } -/************************************************************************* -|* -|* RscError::WriteError(); -|* -*************************************************************************/ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) { switch( rError ) @@ -173,7 +138,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) StdLstOut( "Command line: rsc [Switches] <Source File(s)>\n" ); StdLstOut( "Command line: rsc @<Command File>\n" ); StdLstOut( "-h shows this help.\n" ); - StdLstOut( "-p No Preprocessor.\n" ); + StdLstOut( "-p No preprocessor.\n" ); StdLstOut( "-s Syntax analysis, creates .srs file\n"); StdLstOut( "-l Linker, links files created with rsc -s,\n" ); StdLstOut( " creates .rc file and .res file.\n" ); @@ -182,24 +147,13 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) StdLstOut( "-i Include directives for the Preprocessor.\n" ); StdLstOut( "-presponse Use response file for Preprocessor.\n" ); StdLstOut( "-lg<language> Use a different language.\n" ); - StdLstOut( "-pp=<filename> Use a different Preprocessor.\n" ); - StdLstOut( "-rsc2=<filename> Specify the location for rsc2.\n" ); - StdLstOut( "No longer existent: -rc<filename> Use a different system resource compiler.\n" ); StdLstOut( "-fs=<filename> Name of the .res file.\n" ); StdLstOut( "-lip=<path> additional search path for system dependant files\n" ); StdLstOut( "-fp=<filename> Renaming of the .srs file.\n" ); - StdLstOut( "-fl=<filename> Listing file.\n" ); - StdLstOut( "-fh=<filename> Header file.\n" ); - StdLstOut( "-fc=<filename> Code file.\n" ); - StdLstOut( "-ft=<filename> Touch a file when done in rsc2 (for dependencies)\n" ); - StdLstOut( "-fr=<filename> Resource constructor .cxx-file.\n" ); - StdLstOut( "-fx=<filename> Name of .src-file.\n" ); StdLstOut( "-oil=<dir> Output directory for image list files\n" ); - StdLstOut( "-r<ENV>=<path> replace <path> by <ENV> in image list files\n" ); - StdLstOut( "-CHARSET_... Convert to this character set.\n" ); + StdLstOut( "-sub<ENV>=<path> replace <path> by <ENV> in image list files\n" ); StdLstOut( "-BIGENDIAN Format of number values.\n" ); StdLstOut( "-LITTLEENDIAN Format of number values.\n" ); - StdLstOut( "-SMART Generate smart names (cxx, hxx).\n" ); StdLstOut( "-SrsDefault Only write one language to srs file.\n" ); StdLstOut( "\nwhen creating multiple .res files in one pass, please give these\n" ); StdLstOut( "options in consecutive blocks:\n" ); @@ -323,7 +277,6 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) StdLstErr( "> could not be found." ); break; -/****************** W A R N I N G S **************************************/ case WRN_LOCALID: StdLstErr( "Sub resources should have an identifier < 256." ); break; @@ -365,11 +318,6 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) } } -/************************************************************************* -|* -|* RscErrorFormat() -|* -*************************************************************************/ void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass, const RscId & aId ){ char buf[ 10 ]; @@ -423,11 +371,6 @@ void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass, StdLstErr( ": " ); } -/************************************************************************* -|* -|* RscError::Error() -|* -*************************************************************************/ void RscError::Error( const ERRTYPE& rError, RscTop * pClass, const RscId & aId, const char * pMessage ) { @@ -442,11 +385,6 @@ void RscError::Error( const ERRTYPE& rError, RscTop * pClass, }; } -/************************************************************************* -|* -|* RscError::FatalError(); -|* -*************************************************************************/ void RscError::FatalError( const ERRTYPE& rError, const RscId &aId, const char * pMessage ) { diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index 21c61e7b7773..0b70e09fa934 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -/****************** I N C L U D E S **************************************/ -// C and C++ Includes. #include <ctype.h> // isdigit(), isalpha() #include <stdlib.h> #include <stdio.h> @@ -29,7 +27,6 @@ #include <sal/log.hxx> #include <sal/macros.h> -// Programmabhaengige Includes. #include <rsctree.hxx> #include <rsctop.hxx> #include <rscmgr.hxx> @@ -39,11 +36,6 @@ using ::rtl::OString; using ::rtl::OStringBuffer; -/************************************************************************* -|* -|* RscTypCont :: RscTypCont -|* -*************************************************************************/ RscTypCont :: RscTypCont( RscError * pErrHdl, RSCBYTEORDER_TYPE nOrder, const rtl::OString& rSearchPath, @@ -167,11 +159,6 @@ Atom RscTypCont::AddLanguage( const char* pLang ) } -/************************************************************************* -|* -|* RscTypCont :: ~RscTypCont -|* -*************************************************************************/ void DestroyNode( RscTop * pRscTop, ObjNode * pObjNode ){ if( pObjNode ){ DestroyNode( pRscTop, (ObjNode*)pObjNode->Left() ); @@ -256,7 +243,6 @@ void RscTypCont::ClearSysNames() aSysLst.clear(); } -//======================================================================= RscTop * RscTypCont::SearchType( Atom nId ) /* [Beschreibung] @@ -301,11 +287,6 @@ RscTop * RscTypCont::SearchType( Atom nId ) return NULL; } -/************************************************************************* -|* -|* RscTypCont :: PutSysName() -|* -*************************************************************************/ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName, sal_uInt32 nConst, sal_uInt32 nId, sal_Bool bFirst ) { @@ -349,11 +330,6 @@ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName, return pSysEntry->nKey; } -/************************************************************************* -|* -|* RscTypCont :: WriteInc -|* -*************************************************************************/ void RscTypCont :: WriteInc( FILE * fOutput, sal_uLong lFileKey ) { @@ -398,11 +374,6 @@ void RscTypCont :: WriteInc( FILE * fOutput, sal_uLong lFileKey ) }; } -/************************************************************************* -|* -|* RscTypCont :: Methoden die ueber all Knoten laufen -|* -*************************************************************************/ class RscEnumerateObj { @@ -416,8 +387,6 @@ private: DECL_LINK( CallBackWriteRc, ObjNode * ); DECL_LINK( CallBackWriteSrc, ObjNode * ); - DECL_LINK( CallBackWriteCxx, ObjNode * ); - DECL_LINK( CallBackWriteHxx, ObjNode * ); ERRTYPE WriteRc( RscTop * pCl, ObjNode * pRoot ) { @@ -432,27 +401,10 @@ private: pRoot->EnumNodes( LINK( this, RscEnumerateObj, CallBackWriteSrc ) ); return aError; } - ERRTYPE WriteCxx( RscTop * pCl, ObjNode * pRoot ){ - pClass = pCl; - if( pRoot ) - pRoot->EnumNodes( LINK( this, RscEnumerateObj, CallBackWriteCxx ) ); - return aError; - } - ERRTYPE WriteHxx( RscTop * pCl, ObjNode * pRoot ){ - pClass = pCl; - if( pRoot ) - pRoot->EnumNodes( LINK( this, RscEnumerateObj, CallBackWriteHxx ) ); - return aError; - } public: void WriteRcFile( RscWriteRc & rMem, FILE * fOutput ); }; -/************************************************************************* -|* -|* RscEnumerateObj :: CallBackWriteRc -|* -*************************************************************************/ IMPL_LINK( RscEnumerateObj, CallBackWriteRc, ObjNode *, pObjNode ) { RscWriteRc aMem( pTypCont->GetByteOrder() ); @@ -467,11 +419,6 @@ IMPL_LINK( RscEnumerateObj, CallBackWriteRc, ObjNode *, pObjNode ) return 0; } -/************************************************************************* -|* -|* RscEnumerateObj :: CallBackWriteSrc -|* -*************************************************************************/ IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteSrc, ObjNode *, pObjNode ) { if( pObjNode->GetFileKey() == lFileKey ){ @@ -484,41 +431,6 @@ IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteSrc, ObjNode *, pObjNode ) } IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteSrc, ObjNode *, pObjNode ) -/************************************************************************* -|* -|* RscEnumerateObj :: CallBackWriteCxx -|* -*************************************************************************/ -IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteCxx, ObjNode *, pObjNode ) -{ - if( pClass->IsCodeWriteable() && pObjNode->GetFileKey() == lFileKey ) - aError = pClass->WriteCxxHeader( - RSCINST( pClass, pObjNode->GetRscObj() ), - fOutput, pTypCont, pObjNode->GetRscId() ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteCxx, ObjNode *, pObjNode ) - -/************************************************************************* -|* -|* RscEnumerateObj :: CallBackWriteHxx -|* -*************************************************************************/ -IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteHxx, ObjNode *, pObjNode ) -{ - if( pClass->IsCodeWriteable() && pObjNode->GetFileKey() == lFileKey ) - aError = pClass->WriteHxxHeader( - RSCINST( pClass, pObjNode->GetRscObj() ), - fOutput, pTypCont, pObjNode->GetRscId() ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteHxx, ObjNode *, pObjNode ) - -/************************************************************************* -|* -|* RscEnumerateObj :: WriteRcFile -|* -*************************************************************************/ void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut ) { // Definition der Struktur, aus denen die Resource aufgebaut ist @@ -571,10 +483,6 @@ private: DECL_LINK( CallBackWriteRc, RscTop * ); DECL_LINK( CallBackWriteSrc, RscTop * ); - DECL_LINK( CallBackWriteCxx, RscTop * ); - DECL_LINK( CallBackWriteHxx, RscTop * ); - DECL_LINK( CallBackWriteSyntax, RscTop * ); - DECL_LINK( CallBackWriteRcCtor, RscTop * ); public: RscEnumerateObj aEnumObj; @@ -600,43 +508,8 @@ public: pRoot->EnumNodes( LINK( this, RscEnumerateRef, CallBackWriteSrc ) ); return aEnumObj.aError; } - - ERRTYPE WriteCxx( sal_uLong lFileKey ) - { - aEnumObj.lFileKey = lFileKey; - - aEnumObj.aError.Clear(); - pRoot->EnumNodes( LINK( this, RscEnumerateRef, CallBackWriteCxx ) ); - return aEnumObj.aError; - } - - ERRTYPE WriteHxx( sal_uLong lFileKey ) - { - aEnumObj.lFileKey = lFileKey; - - aEnumObj.aError.Clear(); - pRoot->EnumNodes( LINK( this, RscEnumerateRef, CallBackWriteHxx ) ); - return aEnumObj.aError; - } - - void WriteSyntax() - { - pRoot->EnumNodes( LINK( this, RscEnumerateRef, - CallBackWriteSyntax ) ); - } - - void WriteRcCtor() - { - pRoot->EnumNodes( LINK( this, RscEnumerateRef, - CallBackWriteRcCtor ) ); - } }; -/************************************************************************* -|* -|* RscRscEnumerateRef :: CallBack... -|* -*************************************************************************/ IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteRc, RscTop *, pRef ) { aEnumObj.WriteRc( pRef, pRef->GetObjNode() ); @@ -649,38 +522,7 @@ IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteSrc, RscTop *, pRef ) return 0; } IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteSrc, RscTop *, pRef ) -IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteCxx, RscTop *, pRef ) -{ - if( pRef->IsCodeWriteable() ) - aEnumObj.WriteCxx( pRef, pRef->GetObjNode() ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteCxx, RscTop *, pRef ) -IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteHxx, RscTop *, pRef ) -{ - if( pRef->IsCodeWriteable() ) - aEnumObj.WriteHxx( pRef, pRef->GetObjNode() ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteHxx, RscTop *, pRef ) -IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteSyntax, RscTop *, pRef ) -{ - pRef->WriteSyntaxHeader( aEnumObj.fOutput, aEnumObj.pTypCont ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteSyntax, RscTop *, pRef ) -IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteRcCtor, RscTop *, pRef ) -{ - pRef->WriteRcCtor( aEnumObj.fOutput, aEnumObj.pTypCont ); - return 0; -} -IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteRcCtor, RscTop *, pRef ) -/************************************************************************* -|* -|* RscTypCont :: WriteRc -|* -*************************************************************************/ ERRTYPE RscTypCont::WriteRc( WriteRcContext& rContext ) { @@ -701,11 +543,6 @@ ERRTYPE RscTypCont::WriteRc( WriteRcContext& rContext ) return aError; } -/************************************************************************* -|* -|* RscTypCont :: WriteSrc -|* -*************************************************************************/ void RscTypCont :: WriteSrc( FILE * fOutput, sal_uLong nFileKey, sal_Bool bName ) { @@ -758,124 +595,6 @@ void RscTypCont :: WriteSrc( FILE * fOutput, sal_uLong nFileKey, }; } -/************************************************************************* -|* -|* RscTypCont :: WriteHxx -|* -*************************************************************************/ -ERRTYPE RscTypCont :: WriteHxx( FILE * fOutput, sal_uLong nFileKey ) -{ - fprintf( fOutput, "#include <tools/rc.hxx>\n" ); - fprintf( fOutput, "#include <tools/resid.hxx>\n" ); - fprintf( fOutput, "#include <vcl/accel.hxx>\n" ); - fprintf( fOutput, "#include <vcl/bitmap.hxx>\n" ); - fprintf( fOutput, "#include <vcl/button.hxx>\n" ); - fprintf( fOutput, "#include <tools/color.hxx>\n" ); - fprintf( fOutput, "#include <vcl/combobox.hxx>\n" ); - fprintf( fOutput, "#include <vcl/ctrl.hxx>\n" ); - fprintf( fOutput, "#include <vcl/dialog.hxx>\n" ); - fprintf( fOutput, "#include <vcl/edit.hxx>\n" ); - fprintf( fOutput, "#include <vcl/field.hxx>\n" ); - fprintf( fOutput, "#include <vcl/fixed.hxx>\n" ); - fprintf( fOutput, "#include <vcl/group.hxx>\n" ); - fprintf( fOutput, "#include <vcl/image.hxx>\n" ); - fprintf( fOutput, "#include <vcl/keycod.hxx>\n" ); - fprintf( fOutput, "#include <vcl/lstbox.hxx>\n" ); - fprintf( fOutput, "#include <vcl/mapmod.hxx>\n" ); - fprintf( fOutput, "#include <vcl/menu.hxx>\n" ); - fprintf( fOutput, "#include <vcl/menubtn.hxx>\n" ); - fprintf( fOutput, "#include <vcl/morebtn.hxx>\n" ); - fprintf( fOutput, "#include <vcl/msgbox.hxx>\n" ); - fprintf( fOutput, "#include <vcl/scrbar.hxx>\n" ); - fprintf( fOutput, "#include <vcl/spin.hxx>\n" ); - fprintf( fOutput, "#include <vcl/spinfld.hxx>\n" ); - fprintf( fOutput, "#include <vcl/splitwin.hxx>\n" ); - fprintf( fOutput, "#include <vcl/status.hxx>\n" ); - fprintf( fOutput, "#include <vcl/tabctrl.hxx>\n" ); - fprintf( fOutput, "#include <vcl/tabdlg.hxx>\n" ); - fprintf( fOutput, "#include <vcl/tabpage.hxx>\n" ); - fprintf( fOutput, "#include <vcl/toolbox.hxx>\n" ); - fprintf( fOutput, "#include <vcl/window.hxx>\n" ); - fprintf( fOutput, "#include <vcl/wrkwin.hxx>\n" ); - fprintf( fOutput, "#include <svtools/svmedit.hxx>\n" ); - - RscEnumerateRef aEnumRef( this, pRoot, fOutput ); - ERRTYPE aError; - - if( NOFILE_INDEX == nFileKey ) - { - sal_uIntPtr aIndex = aFileTab.FirstIndex(); - while( aIndex != UNIQUEINDEX_ENTRY_NOTFOUND ) - { - aError = aEnumRef.WriteHxx( aIndex ); - aIndex = aFileTab.NextIndex( aIndex ); - }; - } - else - aError = aEnumRef.WriteHxx( nFileKey ); - - return aError; -} - -/************************************************************************* -|* -|* RscTypCont :: WriteCxx -|* -*************************************************************************/ -ERRTYPE RscTypCont::WriteCxx( FILE * fOutput, sal_uLong nFileKey, - const rtl::OString& rHxxName ) -{ - RscEnumerateRef aEnumRef( this, pRoot, fOutput ); - ERRTYPE aError; - fprintf( fOutput, "#include <string.h>\n" ); - WriteInc( fOutput, nFileKey ); - if( !rHxxName.isEmpty() ) - fprintf( fOutput, "#include \"%s\"\n", rHxxName.getStr() ); - fprintf( fOutput, "\n\n" ); - - if( NOFILE_INDEX == nFileKey ) - { - sal_uIntPtr aIndex = aFileTab.FirstIndex(); - while( aIndex != UNIQUEINDEX_ENTRY_NOTFOUND ) - { - aError = aEnumRef.WriteCxx( aIndex ); - aIndex = aFileTab.NextIndex( aIndex ); - }; - } - else - aError = aEnumRef.WriteCxx( nFileKey ); - - return aError; -} - -/************************************************************************* -|* -|* RscTypCont :: WriteSyntax -|* -*************************************************************************/ -void RscTypCont::WriteSyntax( FILE * fOutput ) -{ - for( size_t i = 0; i < aBaseLst.size(); i++ ) - aBaseLst[ i ]->WriteSyntaxHeader( fOutput, this ); - RscEnumerateRef aEnumRef( this, pRoot, fOutput ); - aEnumRef.WriteSyntax(); -} - -//======================================================================= -void RscTypCont::WriteRcCtor -( - FILE * fOutput -) -{ - RscEnumerateRef aEnumRef( this, pRoot, fOutput ); - aEnumRef.WriteRcCtor(); -} - -/************************************************************************* -|* -|* RscTypCont :: Delete() -|* -*************************************************************************/ class RscDel { sal_uLong lFileKey; diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index d162f1eb2971..a2a5d1567278 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -18,8 +18,6 @@ */ -/****************** I N C L U D E S **************************************/ -// C and C++ Includes. #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -43,7 +41,6 @@ #include <boost/unordered_map.hpp> -/****************** M A C R O S ******************************************/ void RscTypCont::SETCONST( RscConst * pClass, const char * szString, sal_uInt32 nVal ) { #if OSL_DEBUG_LEVEL > 2 @@ -62,12 +59,6 @@ void RscTypCont::SETCONST( RscConst * pClass, Atom nName, sal_uInt32 nVal ) CONSTNAME, nVal ), nVal ); } -/****************** C O D E **********************************************/ -/************************************************************************* -|* RscTypCont::InitLangType() -|* -|* Beschreibung -*************************************************************************/ typedef boost::unordered_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap; static langmap ULong_Iso_map; @@ -198,11 +189,6 @@ RscEnum * RscTypCont::InitLangType() return( &aLangType ); } -/************************************************************************* -|* -|* RscTypCont::InitFieldUnitsType() -|* -*************************************************************************/ RscEnum * RscTypCont::InitFieldUnitsType() { RscEnum * pFieldUnits; @@ -227,11 +213,6 @@ RscEnum * RscTypCont::InitFieldUnitsType() return pFieldUnits; } -/************************************************************************* -|* -|* RscTypCont::InitTimeFieldFormat() -|* -*************************************************************************/ RscEnum * RscTypCont::InitTimeFieldFormat() { RscEnum * pTimeFieldFormat; @@ -245,11 +226,6 @@ RscEnum * RscTypCont::InitTimeFieldFormat() return pTimeFieldFormat; } -/************************************************************************* -|* -|* RscTypCont::InitColor() -|* -*************************************************************************/ RscEnum * RscTypCont::InitColor(){ RscEnum * pColor; pColor = new RscEnum( pHS->getID( "EnumColor" ), RSC_NOTYPE ); @@ -274,11 +250,6 @@ RscEnum * RscTypCont::InitColor(){ return( pColor ); } -/************************************************************************* -|* -|* RscTypCont::InitMapUnit() -|* -*************************************************************************/ RscEnum * RscTypCont::InitMapUnit(){ RscEnum * pMapUnit; pMapUnit = new RscEnum( pHS->getID( "EnumMapUnit" ), RSC_NOTYPE ); @@ -300,11 +271,6 @@ RscEnum * RscTypCont::InitMapUnit(){ return( pMapUnit ); } -/************************************************************************* -|* -|* RscTypCont::InitKey() -|* -*************************************************************************/ RscEnum * RscTypCont::InitKey(){ RscEnum * pKey; pKey = new RscEnum( pHS->getID( "EnumKey" ), RSC_NOTYPE ); @@ -420,11 +386,6 @@ RscEnum * RscTypCont::InitKey(){ return( pKey ); } -/************************************************************************* -|* -|* RscTypCont::InitTriState() -|* -*************************************************************************/ RscEnum * RscTypCont::InitTriState(){ RscEnum * pTriState; pTriState = new RscEnum( pHS->getID( "EnumTriState" ), RSC_NOTYPE ); @@ -436,11 +397,6 @@ RscEnum * RscTypCont::InitTriState(){ return( pTriState ); } -/************************************************************************* -|* -|* RscTypCont::InitMessButtons() -|* -*************************************************************************/ RscEnum * RscTypCont::InitMessButtons() { RscEnum * pMessButtons; @@ -454,11 +410,6 @@ RscEnum * RscTypCont::InitMessButtons() return( pMessButtons ); } -/************************************************************************* -|* -|* RscTypCont::InitMessDefButton() -|* -*************************************************************************/ RscEnum * RscTypCont::InitMessDefButton(){ RscEnum * pMessDefButton; pMessDefButton = new RscEnum( pHS->getID( "EnumMessDefButton" ), @@ -473,11 +424,6 @@ RscEnum * RscTypCont::InitMessDefButton(){ return( pMessDefButton ); } -/************************************************************************* -|* -|* RscTypCont::InitGeometry() -|* -*************************************************************************/ RscTupel * RscTypCont::InitGeometry() { RscTop * pTupel; @@ -498,21 +444,11 @@ RscTupel * RscTypCont::InitGeometry() return (RscTupel *)pTupel; } -/************************************************************************* -|* -|* RscTypCont::InitLangGeometry() -|* -*************************************************************************/ RscArray * RscTypCont::InitLangGeometry( RscTupel * pGeo ) { return new RscArray( pHS->getID( "Lang_TupelGeometry" ), RSC_NOTYPE, pGeo, &aLangType ); } -/************************************************************************* -|* -|* RscTypCont::InitStringList() -|* -*************************************************************************/ RscCont * RscTypCont::InitStringList() { RscCont * pCont; @@ -523,22 +459,12 @@ RscCont * RscTypCont::InitStringList() return pCont; } -/************************************************************************* -|* -|* RscTypCont::InitLangStringList() -|* -*************************************************************************/ RscArray * RscTypCont::InitLangStringList( RscCont * pStrLst ) { return new RscArray( pHS->getID( "Lang_CharsList" ), RSC_NOTYPE, pStrLst, &aLangType ); } -/************************************************************************* -|* -|* RscTypCont::InitStringTupel() -|* -*************************************************************************/ RscTupel * RscTypCont::InitStringTupel() { RscTop * pTupel; @@ -554,11 +480,6 @@ RscTupel * RscTypCont::InitStringTupel() return (RscTupel *)pTupel; } -/************************************************************************* -|* -|* RscTypCont::InitStringLongTupel() -|* -*************************************************************************/ RscTupel * RscTypCont::InitStringLongTupel() { RscTop * pTupel; @@ -574,11 +495,6 @@ RscTupel * RscTypCont::InitStringLongTupel() return (RscTupel *)pTupel; } -/************************************************************************* -|* -|* RscTypCont::InitStringTupelList() -|* -*************************************************************************/ RscCont * RscTypCont::InitStringTupelList( RscTupel * pTupelString ) { RscCont * pCont; @@ -589,11 +505,6 @@ RscCont * RscTypCont::InitStringTupelList( RscTupel * pTupelString ) return pCont; } -/************************************************************************* -|* -|* RscTypCont::InitStringLongTupelList() -|* -*************************************************************************/ RscCont * RscTypCont::InitStringLongTupelList( RscTupel * pStringLong ) { RscCont * pCont; @@ -604,22 +515,12 @@ RscCont * RscTypCont::InitStringLongTupelList( RscTupel * pStringLong ) return pCont; } -/************************************************************************* -|* -|* RscTypCont::InitLangStringTupelList() -|* -*************************************************************************/ RscArray * RscTypCont::InitLangStringTupelList( RscCont * pStrTupelLst ) { return new RscArray( pHS->getID( "Lang_CharsCharsTupel" ), RSC_NOTYPE, pStrTupelLst, &aLangType ); } -/************************************************************************* -|* -|* RscTypCont::InitLangStringLongTupelList() -|* -*************************************************************************/ RscArray * RscTypCont::InitLangStringLongTupelList( RscCont * pStrLongTupelLst ) { return new RscArray( pHS->getID( "Lang_CharsLongTupelList" ), diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx index bb1fa3b7e367..d302deef625e 100644 --- a/rsc/source/parser/rscicpx.cxx +++ b/rsc/source/parser/rscicpx.cxx @@ -18,8 +18,6 @@ */ -/****************** I N C L U D E S **************************************/ -// C and C++ Includes. #include <stdlib.h> #include <stdio.h> @@ -35,9 +33,6 @@ #include <rsclex.hxx> #include <rscyacc.hxx> -/************************************************************************* -|* RscTypCont::InsWinBit() -*************************************************************************/ void RscTypCont::InsWinBit( RscTop * pClass, const rtl::OString& rName, Atom nVal ) { @@ -55,9 +50,6 @@ void RscTypCont::InsWinBit( RscTop * pClass, const rtl::OString& rName, #define INS_WINBIT( pClass, WinBit ) \ InsWinBit( pClass, #WinBit, n##WinBit##Id ); -/************************************************************************* -|* RscTypCont::InitClassMgr() -*************************************************************************/ RscTop * RscTypCont::InitClassMgr() { RscTop * pClassMgr; @@ -89,9 +81,6 @@ RscTop * RscTypCont::InitClassMgr() return pClassMgr; } -/************************************************************************* -|* RscTypCont::InitClassString() -*************************************************************************/ RscTop * RscTypCont::InitClassString( RscTop * pSuper ){ Atom nId; RscTop * pClassString; @@ -107,9 +96,6 @@ RscTop * RscTypCont::InitClassString( RscTop * pSuper ){ return( pClassString ); } -/************************************************************************* -|* RscTypCont::InitClassBitmap() -*************************************************************************/ RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper ){ Atom nId; RscTop * pClassBitmap; @@ -127,9 +113,6 @@ RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper ){ return( pClassBitmap ); } -/************************************************************************* -|* RscTypCont::InitClassColor() -*************************************************************************/ RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor ){ Atom nId; RscTop * pClassColor; @@ -153,9 +136,6 @@ RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor ){ return( pClassColor ); } -/************************************************************************* -|* RscTypCont::InitClassImage() -*************************************************************************/ RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap, RscTop * pClassColor ) { @@ -180,9 +160,6 @@ RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap, return( pClassImage ); } -/************************************************************************* -|* RscTypCont::InitClassImageList() -*************************************************************************/ RscTop * RscTypCont::InitClassImageList( RscTop * pSuper, RscTop * pClassColor, RscCont * pStrLst ) { @@ -218,9 +195,6 @@ RscTop * RscTypCont::InitClassImageList( RscTop * pSuper, return( pClassImageList ); } -/************************************************************************* -|* RscTypCont::InitClassWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit, RscArray * pLangGeo ) { @@ -326,9 +300,6 @@ RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit, return( pClassWindow ); } -/************************************************************************* -|* RscTypCont::InitClassSystemWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper ) { Atom nId; @@ -351,9 +322,6 @@ RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper ) return pClassSystemWindow ; } -/************************************************************************* -|* RscTypCont::InitClassWorkWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper ) { Atom nId; @@ -386,9 +354,6 @@ RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper ) return pClassWorkWindow; } -/************************************************************************* -|* RscTypCont::InitClassDialogBox() -*************************************************************************/ RscTop * RscTypCont::InitClassModalDialog( RscTop * pSuper ) { Atom nId; @@ -405,9 +370,6 @@ RscTop * RscTypCont::InitClassModalDialog( RscTop * pSuper ) return pClassDialog; } -/************************************************************************* -|* RscTypCont::InitClassModelessDialog() -*************************************************************************/ RscTop * RscTypCont::InitClassModelessDialog( RscTop * pSuper ) { Atom nId; @@ -422,9 +384,6 @@ RscTop * RscTypCont::InitClassModelessDialog( RscTop * pSuper ) return pClassDialog; } -/************************************************************************* -|* RscTypCont::InitClassControl() -*************************************************************************/ RscTop * RscTypCont::InitClassControl( RscTop * pSuper ) { Atom nId; @@ -442,9 +401,6 @@ RscTop * RscTypCont::InitClassControl( RscTop * pSuper ) return pClassControl; } -/************************************************************************* -|* RscTypCont::InitClassCheckBox() -*************************************************************************/ RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper ) { Atom nId; @@ -468,9 +424,6 @@ RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper ) return pClassCheckBox; } -/************************************************************************* -|* RscTypCont::InitClassPushButton() -*************************************************************************/ RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper ) { Atom nId; @@ -490,9 +443,6 @@ RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper ) return pClassPushButton; } -/************************************************************************* -|* RscTypCont::InitClassTriStateBox() -*************************************************************************/ RscTop * RscTypCont::InitClassTriStateBox( RscTop * pSuper, RscEnum * pTriState ) { @@ -513,9 +463,6 @@ RscTop * RscTypCont::InitClassTriStateBox( RscTop * pSuper, return( pClassTriStateBox ); } -/************************************************************************* -|* RscTypCont::InitClassMenuButton() -*************************************************************************/ RscTop * RscTypCont::InitClassMenuButton( RscTop * pSuper, RscTop * pClassMenu ) { @@ -536,9 +483,6 @@ RscTop * RscTypCont::InitClassMenuButton( RscTop * pSuper, } -/************************************************************************* -|* RscTypCont::InitClassImageButton() -*************************************************************************/ RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper, RscTop * pClassImage, RscEnum * pTriState ) @@ -606,9 +550,6 @@ RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper, return pClassImageButton; } -/************************************************************************* -|* RscTypCont::InitClassEdit() -*************************************************************************/ RscTop * RscTypCont::InitClassEdit( RscTop * pSuper ) { Atom nId; @@ -632,9 +573,6 @@ RscTop * RscTypCont::InitClassEdit( RscTop * pSuper ) return pClassEdit; } -/************************************************************************* -|* RscTypCont::InitClassMultiLineedit() -*************************************************************************/ RscTop * RscTypCont::InitClassMultiLineEdit( RscTop * pSuper ) { Atom nId; @@ -655,9 +593,6 @@ RscTop * RscTypCont::InitClassMultiLineEdit( RscTop * pSuper ) return pClassMultiLineEdit; } -/************************************************************************* -|* RscTypCont::InitClassScrollBar() -*************************************************************************/ RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper ) { Atom nId; @@ -713,9 +648,6 @@ RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper ) return pClassScrollBar; } -/************************************************************************* -|* RscTypCont::InitClassListBox() -*************************************************************************/ RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst ) { Atom nId; @@ -748,9 +680,6 @@ RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst ) return pClassListBox; } -/************************************************************************* -|* RscTypCont::InitClassMultiListBox() -*************************************************************************/ RscTop * RscTypCont::InitClassMultiListBox( RscTop * pSuper ) { Atom nId; @@ -767,9 +696,6 @@ RscTop * RscTypCont::InitClassMultiListBox( RscTop * pSuper ) return pClassMultiListBox; } -/************************************************************************* -|* RscTypCont::InitClassComboBox() -*************************************************************************/ RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst ) { Atom nId; @@ -796,9 +722,6 @@ RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst ) return pClassComboBox; } -/************************************************************************* -|* RscTypCont::InitClassFixedText() -*************************************************************************/ RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper ) { Atom nId; @@ -824,9 +747,6 @@ RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper ) return pClassFixedText; } -/************************************************************************* -|* RscTypCont::InitClassFixedBitmap() -*************************************************************************/ RscTop * RscTypCont::InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitmap ) { Atom nId; @@ -847,9 +767,6 @@ RscTop * RscTypCont::InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitma return pClassFixedBitmap; } -/************************************************************************* -|* RscTypCont::InitClassFixedImage() -*************************************************************************/ RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage ) { Atom nId; @@ -868,9 +785,6 @@ RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage return pClassFixedImage; } -/************************************************************************* -|* RscTypCont::InitClassImageRadioButton() -*************************************************************************/ RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper ) { Atom nId; @@ -894,9 +808,6 @@ RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper ) return pClassRadioButton; } -/************************************************************************* -|* RscTypCont::InitClassImageRadioButton() -*************************************************************************/ RscTop * RscTypCont::InitClassImageRadioButton( RscTop * pSuper, RscTop * pClassImage ) { Atom nId; @@ -916,9 +827,6 @@ RscTop * RscTypCont::InitClassImageRadioButton( RscTop * pSuper, RscTop * pClass return pClassImageRadioButton; } -/************************************************************************* -|* RscTypCont::InitClassKeyCode() -*************************************************************************/ RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey ) { Atom nId; @@ -1009,9 +917,6 @@ RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey ) return pClassKeyCode; } -/************************************************************************* -|* RscTypCont::InitClassAccelItem() -*************************************************************************/ RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper, RscTop * pClassKeyCode ) { @@ -1035,9 +940,6 @@ RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper, return pClassAccelItem; } -/************************************************************************* -|* RscTypCont::InitClassAccelm() -*************************************************************************/ RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem ) { Atom nId; @@ -1066,9 +968,6 @@ RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem ) return pClassAccel; } -/************************************************************************* -|* RscTypCont::InitClassMenuItem() -*************************************************************************/ RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper, RscTop * pClassBitmap, RscTop * pClassKeyCode ) @@ -1179,9 +1078,6 @@ RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper, return pClassMenuItem; } -/************************************************************************* -|* RscTypCont::InitClassMenu() -*************************************************************************/ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper, RscTop * pClassMenuItem ) { @@ -1212,9 +1108,6 @@ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper, return pClassMenu; } -/************************************************************************* -|* RscTypCont::InitClassMessageBox() -*************************************************************************/ RscTop * RscTypCont::InitClassMessBox( RscTop * pSuper, RscEnum * pMessButtons, RscEnum * pMessDefButton ) @@ -1247,9 +1140,6 @@ RscTop * RscTypCont::InitClassMessBox( RscTop * pSuper, return pClassMessBox; } -/************************************************************************* -|* RscTypCont::InitClassSplitter() -*************************************************************************/ RscTop * RscTypCont::InitClassSplitter( RscTop * pSuper ) { Atom nId; @@ -1268,9 +1158,6 @@ RscTop * RscTypCont::InitClassSplitter( RscTop * pSuper ) return pClassSplitter; } -/************************************************************************* -|* RscTypCont::InitClassSplitWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper ) { Atom nId; @@ -1289,9 +1176,6 @@ RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper ) return pClassSplitWindow; } -/************************************************************************* -|* RscTypCont::InitClassTime() -*************************************************************************/ RscTop * RscTypCont::InitClassTime( RscTop * pSuper ) { Atom nId; @@ -1320,9 +1204,6 @@ RscTop * RscTypCont::InitClassTime( RscTop * pSuper ) return pClassTime; } -/************************************************************************* -|* RscTypCont::InitClassDate() -*************************************************************************/ RscTop * RscTypCont::InitClassDate( RscTop * pSuper ) { Atom nId; @@ -1348,9 +1229,6 @@ RscTop * RscTypCont::InitClassDate( RscTop * pSuper ) return pClassDate; } -/************************************************************************* -|* RscTypCont::InitClassPatternFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassPatternFormatter( RscTop * pSuper ) { Atom nId; @@ -1375,9 +1253,6 @@ RscTop * RscTypCont::InitClassPatternFormatter( RscTop * pSuper ) return pClassPattern; } -/************************************************************************* -|* RscTypCont::InitClassNumericFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper ) { Atom nId; @@ -1411,9 +1286,6 @@ RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper ) return pClassNumeric; } -/************************************************************************* -|* RscTypCont::InitClassMetricFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper, RscEnum * pFieldUnits ) { @@ -1436,9 +1308,6 @@ RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper, return pClassMetric; } -/************************************************************************* -|* RscTypCont::InitClassCurrencyFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassCurrencyFormatter(RscTop * pSuper) { Atom nId; @@ -1452,9 +1321,6 @@ RscTop * RscTypCont::InitClassCurrencyFormatter(RscTop * pSuper) return pClassCurrency; } -/************************************************************************* -|* RscTypCont::InitClassDateFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper, RscTop * pClassDate ) { @@ -1486,9 +1352,6 @@ RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper, return pClassDateF; } -/************************************************************************* -|* RscTypCont::InitClassTimeFormatter() -*************************************************************************/ RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper, RscTop * pClassTime, RscEnum * pTimeFieldFormat ) @@ -1524,9 +1387,6 @@ RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper, return pClassTimeF; } -/************************************************************************* -|* RscTypCont::InitClassSpinField() -*************************************************************************/ RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper ) { Atom nId; @@ -1545,9 +1405,6 @@ RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper ) return pClassSpinField; } -/************************************************************************* -|* RscTypCont::InitClassPatternField() -*************************************************************************/ RscTop * RscTypCont::InitClassPatternField( RscTop * pSuper ) { Atom nId; @@ -1563,9 +1420,6 @@ RscTop * RscTypCont::InitClassPatternField( RscTop * pSuper ) return pClassPatternField; } -/************************************************************************* -|* RscTypCont::InitClassNumericField() -*************************************************************************/ RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper ) { Atom nId; @@ -1591,9 +1445,6 @@ RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper ) return pClassNumericField; } -/************************************************************************* -|* RscTypCont::InitClassMetricField() -*************************************************************************/ RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper ) { Atom nId; @@ -1620,9 +1471,6 @@ RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper ) return pClassMetricField; } -/************************************************************************* -|* RscTypCont::InitClassCurrencyField() -*************************************************************************/ RscTop * RscTypCont::InitClassCurrencyField ( const char * pClassName, @@ -1654,9 +1502,6 @@ RscTop * RscTypCont::InitClassCurrencyField return pClassCurrencyField; } -/************************************************************************* -|* RscTypCont::InitClassDateField() -*************************************************************************/ RscTop * RscTypCont::InitClassDateField( RscTop * pSuper, RscTop * pClassDate ) { Atom nId; @@ -1678,9 +1523,6 @@ RscTop * RscTypCont::InitClassDateField( RscTop * pSuper, RscTop * pClassDate ) return pClassDateField; } -/************************************************************************* -|* RscTypCont::InitClassTimeField() -*************************************************************************/ RscTop * RscTypCont::InitClassTimeField( RscTop * pSuper, RscTop * pClassTime ) { Atom nId; @@ -1702,9 +1544,6 @@ RscTop * RscTypCont::InitClassTimeField( RscTop * pSuper, RscTop * pClassTime ) return pClassTimeField; } -/************************************************************************* -|* RscTypCont::InitClassPatternBox() -*************************************************************************/ RscTop * RscTypCont::InitClassPatternBox( RscTop * pSuper ) { Atom nId; @@ -1720,9 +1559,6 @@ RscTop * RscTypCont::InitClassPatternBox( RscTop * pSuper ) return pClassPatternBox; } -/************************************************************************* -|* RscTypCont::InitClassNumericBox() -*************************************************************************/ RscTop * RscTypCont::InitClassNumericBox( RscTop * pSuper ) { Atom nId; @@ -1740,9 +1576,6 @@ RscTop * RscTypCont::InitClassNumericBox( RscTop * pSuper ) return pClassNumericBox; } -/************************************************************************* -|* RscTypCont::InitClassMetricBox() -*************************************************************************/ RscTop * RscTypCont::InitClassMetricBox( RscTop * pSuper ) { Atom nId; @@ -1760,9 +1593,6 @@ RscTop * RscTypCont::InitClassMetricBox( RscTop * pSuper ) return pClassMetricBox; } -/************************************************************************* -|* RscTypCont::InitClassCurrencyBox() -*************************************************************************/ RscTop * RscTypCont::InitClassCurrencyBox ( const char * pClassName, @@ -1785,9 +1615,6 @@ RscTop * RscTypCont::InitClassCurrencyBox return pClassCurrencyBox; } -/************************************************************************* -|* RscTypCont::InitClassDateBox() -*************************************************************************/ RscTop * RscTypCont::InitClassDateBox( RscTop * pSuper ) { Atom nId; @@ -1805,9 +1632,6 @@ RscTop * RscTypCont::InitClassDateBox( RscTop * pSuper ) return pClassDateBox; } -/************************************************************************* -|* RscTypCont::InitClassTimeBox() -*************************************************************************/ RscTop * RscTypCont::InitClassTimeBox( RscTop * pSuper ) { Atom nId; @@ -1825,9 +1649,6 @@ RscTop * RscTypCont::InitClassTimeBox( RscTop * pSuper ) return pClassTimeBox; } -/************************************************************************* -|* RscTypCont::InitClassDockWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper, RscEnum * pMapUnit ) { @@ -1865,9 +1686,6 @@ RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper, return pClassDockWindow; } -/************************************************************************* -|* RscTypCont::InitClassToolBoxItem() -*************************************************************************/ RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper, RscTop * pClassBitmap, RscTop * pClassImage, @@ -1998,9 +1816,6 @@ RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper, return pClassToolBoxItem; } -/************************************************************************* -|* RscTypCont::InitClassToolBox() -*************************************************************************/ RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper, RscTop * pClassToolBoxItem, RscTop * pClassImageList ) @@ -2082,9 +1897,6 @@ RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper, return pClassToolBox; } -/************************************************************************* -|* RscTypCont::InitClassStatusBar() -*************************************************************************/ RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper ) { Atom nId; @@ -2103,9 +1915,6 @@ RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper ) return pClassStatusBar; } -/************************************************************************* -|* RscTypCont::InitClassMoreButton() -*************************************************************************/ RscTop * RscTypCont::InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit ) { Atom nId; @@ -2131,9 +1940,6 @@ RscTop * RscTypCont::InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit ) return pClassMoreButton; } -/************************************************************************* -|* RscTypCont::InitClassFloatingWindow() -*************************************************************************/ RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper, RscEnum * pMapUnit ) { @@ -2168,9 +1974,6 @@ RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper, return pClassFloatingWindow; } -/************************************************************************* -|* RscTypCont::InitClassTabControlItem() -*************************************************************************/ RscTop * RscTypCont::InitClassTabControlItem( RscTop * pSuper ) { Atom nId; @@ -2195,9 +1998,6 @@ RscTop * RscTypCont::InitClassTabControlItem( RscTop * pSuper ) return pClassTabControlItem; } -/************************************************************************* -|* RscTypCont::InitClassTabControl() -*************************************************************************/ RscTop * RscTypCont::InitClassTabControl( RscTop * pSuper, RscTop * pClassTabControlItem ) { @@ -2226,9 +2026,6 @@ RscTop * RscTypCont::InitClassTabControl( RscTop * pSuper, return pClassTabControl; } -/************************************************************************* -|* RscTypCont::InitClassSfxFamilyStyleItem() -*************************************************************************/ RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper, RscTop * pClassBitmap, RscTop * pClassImage, @@ -2276,9 +2073,6 @@ RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper, return pClassSfxFamilyStyleItem; } -/************************************************************************* -|* RscTypCont::InitClassSfxTemplateDialogm() -*************************************************************************/ RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper, RscTop * pClassFamilyStyleItem ) { @@ -2305,9 +2099,6 @@ RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper, return pClassSfxTemplateDialog; } -/************************************************************************* -|* RscTypCont::InitClassSfxSlotInfo() -*************************************************************************/ RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper ) { Atom nId; diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx index 541af05c6ee5..8803a01f3e99 100644 --- a/rsc/source/parser/rscinit.cxx +++ b/rsc/source/parser/rscinit.cxx @@ -18,8 +18,6 @@ */ -/****************** I N C L U D E S **************************************/ -// C and C++ Includes. #include <stdlib.h> #include <stdio.h> @@ -27,7 +25,6 @@ #include <vclrsc.hxx> -// Programmabhaengige Includes. #include <rsctree.hxx> #include <rsctop.hxx> #include <rscrange.hxx> @@ -43,15 +40,9 @@ #include <rsclex.hxx> #include <rscyacc.hxx> -/****************** M a c r o s ******************************************/ #define INS_WINBIT( pClass, WinBit ) \ InsWinBit( pClass, #WinBit, n##WinBit##Id ); -/************************************************************************* -|* -|* RscTypCont::Init() -|* -*************************************************************************/ void RscTypCont::Init() { RscEnum * pFieldUnits; @@ -159,7 +150,6 @@ void RscTypCont::Init() aNmTb.SetSort( sal_False ); { - /********** C O M P I L E R T Y P E N ******************************/ aNmTb.Put( "LINE", LINE, (long)0 ); aNmTb.Put( "NOT", NOT, (long)0 ); aNmTb.Put( "DEFINE", DEFINE, (long)0 ); @@ -182,29 +172,21 @@ void RscTypCont::Init() aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(long)0 ); aNmTb.Put( "FloatingPos", FLOATINGPOS, (long)0 ); } - /********** B A S I S T Y P E N ************************************/ { - /********** S H O R T ************************************************/ aShort.SetRange( -32768, 32767 ); - /********** U S H O R T **********************************************/ aUShort.SetRange( 0, 0xFFFF ); - /********** L O N G **************************************************/ aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); - /********** I D U S H O R T ******************************************/ aIdUShort.SetRange( 0, 0xFFFF ); - /********** I D N O Z E R O U S H O R T ******************************/ aIdNoZeroUShort.SetRange( 1, 0xFFFF ); - /********** N O Z E R O S H O R T ************************************/ aNoZeroShort.SetRange( -32768, 32767 ); aNoZeroShort.SetOutRange( 0 ); - /********** R A N G E S H O R T **************************************/ a1to12Short.SetRange( 1, 12 ); a0to23Short.SetRange( 0, 23 ); a1to31Short.SetRange( 1, 31 ); @@ -212,11 +194,9 @@ void RscTypCont::Init() a0to99Short.SetRange( 0, 99 ); a0to9999Short.SetRange( 0, 9999 ); - /********** I D R A N G E ********************************************/ aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); } { - /********** W I N B I T S F L A G ************************************/ // Variablenname fuer WinBits nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME ); @@ -335,7 +315,6 @@ void RscTypCont::Init() aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<sal_Int32>(WB_STDPOPUP) ); } { - /********** I n i t B a s i c T y p e s **************************/ InitLangType(); aBaseLst.push_back( pFieldUnits = InitFieldUnitsType() ); aBaseLst.push_back( pTimeFieldFormat = InitTimeFieldFormat() ); @@ -358,23 +337,18 @@ void RscTypCont::Init() aBaseLst.push_back( pLangStringLongTupelList = InitLangStringLongTupelList( pStringLongTupelList ) ); } { - /********** R E S O U R C E T Y P E N ******************************/ - /********** R S C M G R **********************************************/ pRoot = pClassMgr = InitClassMgr(); - /********** V e r s i o n s k o n t r o l l e ************************/ aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ), RSC_VERSIONCONTROL, pClassMgr ); aVersion = aVersion.pClass->Create( NULL, RSCINST() ); - /********** S T R I N G **********************************************/ pClassString = InitClassString( pClassMgr ); pRoot->Insert( pClassString ); // String als Referenzklasse des Basisstrings einsetzen aString.SetRefClass( pClassString ); - /********** S T R I N G L I S T **************************************/ // Klasse anlegen nId = pHS->getID( "StringArray" ); pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr ); @@ -386,64 +360,52 @@ void RscTypCont::Init() nId = aNmTb.Put( "ItemList", VARNAME ); pClassStringArray->SetVariable( nId, pLangStringLongTupelList ); - /********** B I T M A P **********************************************/ pClassBitmap = InitClassBitmap( pClassMgr ); pRoot->Insert( pClassBitmap ); } { - /********** C O L O R ************************************************/ pClassColor = InitClassColor( pClassMgr, pColor ); pRoot->Insert( pClassColor ); - /********** I M A G E ************************************************/ pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor ); pRoot->Insert( pClassImage ); - /********** I M A G E L I S T ****************************************/ pClassImageList = InitClassImageList( pClassMgr, pClassColor, pStringLongTupelList ); pRoot->Insert( pClassImageList ); - /********** W I N D O W **********************************************/ pClassWindow = InitClassWindow( pClassMgr, pMapUnit, pLangGeometry ); pRoot->Insert( pClassWindow ); } { - /********** S Y S T E M W I N D O W **********************************/ pClassSystemWindow = InitClassSystemWindow( pClassWindow ); //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND ); pRoot->Insert( pClassSystemWindow ); - /********** W O R K W I N D O W **************************************/ pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow ); pRoot->Insert( pClassWorkWindow ); - /********** D I A L O G **********************************************/ // Klasse anlegen pClassDialog = new RscClass( pHS->getID( "Dialog" ), RSC_DIALOG, pClassSystemWindow ); pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); aBaseLst.push_back( pClassDialog ); - /********** M O D A L D I A L O G ***********************************/ // Klasse anlegen pClassModalDialog = InitClassModalDialog( pClassDialog ); pRoot->Insert( pClassModalDialog ); - /********** M O D E L E S S D I A L O G ******************************/ // Klasse anlegen pClassModelessDialog = InitClassModelessDialog( pClassDialog ); pRoot->Insert( pClassModelessDialog ); } { - /********** C O N T R O L ********************************************/ pClassControl = InitClassControl( pClassWindow ); pRoot->Insert( pClassControl ); - /********** B U T T O N **********************************************/ // Klasse anlegen nId = pHS->getID( "Button" ); pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl ); @@ -451,16 +413,13 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassButton ); pRoot->Insert( pClassButton ); - /********** C H E C K B O X ******************************************/ pClassCheckBox = InitClassCheckBox( pClassButton ); pRoot->Insert( pClassCheckBox ); - /********** P U S H B U T T O N **************************************/ // Klasse anlegen pClassPushButton = InitClassPushButton( pClassButton ); pRoot->Insert( pClassPushButton ); - /********** H E L P B U T T O N **************************************/ // Klasse anlegen nId = pHS->getID( "HelpButton" ); pClassHelpButton = new RscClass( nId, RSC_HELPBUTTON, @@ -469,7 +428,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassHelpButton ); pRoot->Insert( pClassHelpButton ); - /********** O K B U T T O N ******************************************/ // Klasse anlegen nId = pHS->getID( "OKButton" ); pClassOKButton = new RscClass( nId, RSC_OKBUTTON, @@ -478,7 +436,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassOKButton ); pRoot->Insert( pClassOKButton ); - /********** C A N C E L B U T T O N **********************************/ // Klasse anlegen nId = pHS->getID( "CancelButton" ); pClassCancelButton = new RscClass( nId, RSC_CANCELBUTTON, @@ -488,64 +445,50 @@ void RscTypCont::Init() pRoot->Insert( pClassCancelButton ); } { - /********** R A D I O B U T T O N ************************************/ pClassRadioButton = InitClassRadioButton( pClassButton ); pRoot->Insert( pClassRadioButton ); - /********** I m a g e R a d i o B u t t o n **************************/ nId = pHS->getID( "ImageRadioButton" ); pClassImageRadioButton = InitClassImageRadioButton( pClassRadioButton, pClassImage ); pRoot->Insert( pClassImageRadioButton ); - /********** T R I S T A T E B O X ************************************/ pClassTriStateBox = InitClassTriStateBox( pClassControl, pTriState ); pRoot->Insert( pClassTriStateBox ); - /********** I M A G E B U T T O N ************************************/ pClassImageButton = InitClassImageButton( pClassPushButton, pClassImage, pTriState ); pRoot->Insert( pClassImageButton ); - /********** E D I T **************************************************/ pClassEdit = InitClassEdit( pClassControl ); pRoot->Insert( pClassEdit ); - /********** M U L T I L I N E E D I T ********************************/ pClassMultiLineEdit = InitClassMultiLineEdit( pClassEdit ); pRoot->Insert( pClassMultiLineEdit ); - /********** S C R O L L B A R ****************************************/ pClassScrollBar = InitClassScrollBar( pClassControl ); pRoot->Insert( pClassScrollBar ); } { - /********** L I S T B O X ********************************************/ pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList ); pRoot->Insert( pClassListBox ); - /********** M U L T I L I S T B O X **********************************/ pClassMultiListBox = InitClassMultiListBox( pClassListBox); pRoot->Insert( pClassMultiListBox ); - /********** C O M B O B O X ******************************************/ pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList ); pRoot->Insert( pClassComboBox ); - /********** F I X E D T E X T ****************************************/ pClassFixedText = InitClassFixedText( pClassControl ); pRoot->Insert( pClassFixedText ); - /********** F i x e d B i t m a p ************************************/ pClassFixedBitmap = InitClassFixedBitmap( pClassControl, pClassBitmap ); pRoot->Insert( pClassFixedBitmap ); - /********** F i x e d I m a g e **************************************/ pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage ); pRoot->Insert( pClassFixedImage ); - /********** G R O U P B O X ******************************************/ // Klasse anlegen nId = pHS->getID( "GroupBox" ); pClassGroupBox = new RscClass( nId, RSC_GROUPBOX, pClassControl ); @@ -553,7 +496,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassGroupBox ); pRoot->Insert( pClassGroupBox ); - /********** K E Y C O D E ********************************************/ pClassKeyCode = InitClassKeyCode( pClassMgr, pKey ); pRoot->Insert( pClassKeyCode ); { @@ -562,47 +504,38 @@ void RscTypCont::Init() aBaseLst.push_back( pLangClassKeyCode ); } - /********** A C C E L I T E M ***************************************/ pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode ); pRoot->Insert( pClassAccelItem ); } { - /********** A C C E L E R A T O R ************************************/ pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem ); pRoot->Insert( pClassAccel ); nAcceleratorType = pClassAccel->GetId(); - /********** A C C E L I T E M ***************************************/ // pClassAccel ist erst hier definiert nId = aNmTb.Put( "SubAccelerator", VARNAME ); pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC, ACCELITEM_ACCEL ); - /********** M E N U I T E M ******************************************/ pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap, pLangClassKeyCode ); pRoot->Insert( pClassMenuItem ); - /********** M E N U **************************************************/ pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem ); pRoot->Insert( pClassMenu ); - /********** M E N U I T E M ******************************************/ // pClassMenu ist erst hier definiert nId = aNmTb.Put( "SubMenu", VARNAME ); pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC, RSC_MENUITEM_MENU ); - /********** M E N U B U T T O N **************************************/ pClassMenuButton = InitClassMenuButton( pClassControl, pClassMenu ); pRoot->Insert( pClassMenuButton ); - /********** M E S S A G E B O X **************************************/ pClassMessBox = InitClassMessBox( pClassMgr, pMessButtons, pMessDefButton ); pRoot->Insert( pClassMessBox ); - /********** I N F O B O X ********************************************/ // Klasse anlegen nId = pHS->getID( "InfoBox" ); pClassInfoBox = new RscClass( nId, RSC_INFOBOX, pClassMessBox ); @@ -610,7 +543,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassInfoBox ); pRoot->Insert( pClassInfoBox ); - /********** W A R N I N G B O X **************************************/ // Klasse anlegen nId = pHS->getID( "WarningBox" ); pClassWarningBox = new RscClass( nId, RSC_WARNINGBOX, pClassMessBox ); @@ -618,7 +550,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassWarningBox ); pRoot->Insert( pClassWarningBox ); - /********** E R R O R B O X ******************************************/ // Klasse anlegen nId = pHS->getID( "ErrorBox" ); pClassErrorBox = new RscClass( nId, RSC_ERRORBOX, pClassMessBox ); @@ -626,7 +557,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassErrorBox ); pRoot->Insert( pClassErrorBox ); - /********** Q U E R Y B O X ******************************************/ // Klasse anlegen nId = pHS->getID( "QueryBox" ); pClassQueryBox = new RscClass( nId, RSC_QUERYBOX, pClassMessBox ); @@ -635,15 +565,12 @@ void RscTypCont::Init() pRoot->Insert( pClassQueryBox ); } { - /********** S P L I T T E R ******************************************/ pClassSplitter = InitClassSplitter( pClassWindow ); pRoot->Insert( pClassSplitter ); - /********** S P L I T W I N D O W ************************************/ pClassSplitWindow = InitClassSplitWindow( pClassWindow ); pRoot->Insert( pClassSplitWindow ); - /********** S P I N B U T T O N **************************************/ // Klasse anlegen nId = pHS->getID( "SpinButton" ); pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl ); @@ -664,21 +591,17 @@ void RscTypCont::Init() pRoot->Insert( pClassSpinButton ); } { - /********** T I M E **************************************************/ pClassTime = InitClassTime( pClassMgr ); pRoot->Insert( pClassTime ); - /********** D A T E **************************************************/ pClassDate = InitClassDate( pClassMgr ); pRoot->Insert( pClassDate ); } { - /********** S P I N F I E L D ****************************************/ pClassSpinField = InitClassSpinField( pClassEdit ); pRoot->Insert( pClassSpinField ); } { - /********** P A T T E R N F I E L D **********************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassPatternFormatter( pClassSpinField ); aBaseLst.push_back( pClassTmp ); @@ -686,7 +609,6 @@ void RscTypCont::Init() pClassPatternField = InitClassPatternField( pClassTmp ); pRoot->Insert( pClassPatternField ); } - /********** N U M E R I C F I E L D **********************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); aBaseLst.push_back( pClassTmp ); @@ -694,7 +616,6 @@ void RscTypCont::Init() pClassNumericField = InitClassNumericField( pClassTmp ); pRoot->Insert( pClassNumericField ); } - /********** M E T R I C F I E L D ************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); aBaseLst.push_back( pClassTmp ); @@ -704,7 +625,6 @@ void RscTypCont::Init() pClassMetricField = InitClassMetricField( pClassTmp ); pRoot->Insert( pClassMetricField ); } - /********** C U R R E N C Y F I E L D ********************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); aBaseLst.push_back( pClassTmp ); @@ -718,7 +638,6 @@ void RscTypCont::Init() pRoot->Insert( pClassLongCurrencyField ); } - /********** D A T E F I E L D ****************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassDateFormatter( pClassSpinField, pClassDate ); aBaseLst.push_back( pClassTmp ); @@ -726,7 +645,6 @@ void RscTypCont::Init() pClassDateField = InitClassDateField( pClassTmp, pClassDate ); pRoot->Insert( pClassDateField ); } - /********** T I M E F I E L D ****************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime, pTimeFieldFormat ); @@ -735,7 +653,6 @@ void RscTypCont::Init() pClassTimeField = InitClassTimeField( pClassTmp, pClassTime ); pRoot->Insert( pClassTimeField ); } - /********** P A T T E R N B O X **************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassPatternFormatter( pClassComboBox ); aBaseLst.push_back( pClassTmp ); @@ -743,7 +660,6 @@ void RscTypCont::Init() pClassPatternBox = InitClassPatternBox( pClassTmp ); pRoot->Insert( pClassPatternBox ); } - /********** N U M E R I C B O X **************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); aBaseLst.push_back( pClassTmp ); @@ -753,7 +669,6 @@ void RscTypCont::Init() } } { - /********** M E T R I C B O X ****************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); aBaseLst.push_back( pClassTmp ); @@ -763,7 +678,6 @@ void RscTypCont::Init() pClassMetricBox = InitClassMetricBox( pClassTmp ); pRoot->Insert( pClassMetricBox ); } - /********** C U R R E N C Y B O X ************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); aBaseLst.push_back( pClassTmp ); @@ -776,7 +690,6 @@ void RscTypCont::Init() pClassLongCurrencyBox = InitClassCurrencyBox( "LongCurrencyBox", RSC_LONGCURRENCYBOX, pClassTmp ); pRoot->Insert( pClassLongCurrencyBox ); } - /********** D A T E B O X ********************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassDateFormatter( pClassComboBox, pClassDate ); aBaseLst.push_back( pClassTmp ); @@ -784,7 +697,6 @@ void RscTypCont::Init() pClassDateBox = InitClassDateBox( pClassTmp ); pRoot->Insert( pClassDateBox ); } - /********** T I M E B O X ********************************************/ { // Mehrfachvererbung von Hand RscTop * pClassTmp = InitClassTimeFormatter( pClassComboBox, pClassTime, pTimeFieldFormat ); @@ -793,34 +705,27 @@ void RscTypCont::Init() pClassTimeBox = InitClassTimeBox( pClassTmp ); pRoot->Insert( pClassTimeBox ); } - /********** D O C K I N G W I N D O W ********************************/ pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit ); pRoot->Insert( pClassDockingWindow ); - /********** T O O L B O X I T E M ************************************/ pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap, pClassImage, pTriState ); pRoot->Insert( pClassToolBoxItem ); - /********** T O O L B O X ********************************************/ pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem, pClassImageList ); pRoot->Insert( pClassToolBox ); - /********** S T A T U S B A R ****************************************/ pClassStatusBar = InitClassStatusBar( pClassWindow ); pRoot->Insert( pClassStatusBar ); - /********** M O R E B U T T O N **************************************/ pClassMoreButton = InitClassMoreButton( pClassPushButton, pMapUnit ); pRoot->Insert( pClassMoreButton ); - /********** F L O A T W I N D O W ************************************/ pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow, pMapUnit ); pRoot->Insert( pClassFloatingWindow ); - /********** T A B P A G E ********************************************/ // Klasse anlegen nId = pHS->getID( "TabPage" ); pClassTabPage = @@ -829,7 +734,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassTabPage ); pRoot->Insert( pClassTabPage ); - /********** T A B D I A L O G ****************************************/ // Klasse anlegen nId = pHS->getID( "TabDialog" ); pClassTabDialog = @@ -838,16 +742,13 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassTabDialog ); pRoot->Insert( pClassTabDialog ); - /********** T A B C O N T R O L I T E M *******************************/ pClassTabControlItem = InitClassTabControlItem( pClassMgr ); pRoot->Insert( pClassTabControlItem ); - /********** T A B C O N T R O L **************************************/ pClassTabControl = InitClassTabControl( pClassControl, pClassTabControlItem ); pRoot->Insert( pClassTabControl ); - /********** F I X E D L I N E ****************************************/ // Klasse anlegen nId = pHS->getID( "FixedLine" ); pClassFixedLine = @@ -859,7 +760,6 @@ void RscTypCont::Init() aNmTb.Put( nId, CLASSNAME, pClassFixedLine ); pRoot->Insert( pClassFixedLine ); - /********** S C R O L L B A R B O X **********************************/ // Klasse anlegen nId = pHS->getID( "ScrollBarBox" ); pClassScrollBarBox = @@ -869,19 +769,16 @@ void RscTypCont::Init() pRoot->Insert( pClassScrollBarBox ); INS_WINBIT(pClassScrollBarBox,Sizeable) - /********** S F X S T Y L E F A M I L Y I T E M **********************/ pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr, pClassBitmap, pClassImage, pLangStringLongTupelList ); pRoot->Insert( pClassSfxStyleFamilyItem ); - /********** S F X T E M P L A T E D I A L O G ************************/ pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr, pClassSfxStyleFamilyItem ); pRoot->Insert( pClassSfxTemplateDialog ); - /********** S F X I N F O I T E M ************************************/ pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr ); pRoot->Insert( pClassSfxSlotInfo ); } diff --git a/rsc/source/parser/rsckey.cxx b/rsc/source/parser/rsckey.cxx index 6667ee058fe9..c9ed1c44dc32 100644 --- a/rsc/source/parser/rsckey.cxx +++ b/rsc/source/parser/rsckey.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -/****************** I N C L U D E S **************************************/ #include <stdlib.h> #include <stdio.h> #include <ctype.h> @@ -31,8 +30,6 @@ #define _cdecl __cdecl #endif -/****************** C o d e **********************************************/ -/****************** keyword sort function ********************************/ extern "C" { int SAL_CALL KeyCompare( const void * pFirst, const void * pSecond ); } @@ -47,33 +44,18 @@ int SAL_CALL KeyCompare( const void * pFirst, const void * pSecond ) return( 0 ); } -/************************************************************************* -|* -|* RscNameTable::RscNameTable() -|* -*************************************************************************/ RscNameTable::RscNameTable() { bSort = sal_True; nEntries = 0; pTable = NULL; }; -/************************************************************************* -|* -|* RscNameTable::~RscNameTable() -|* -*************************************************************************/ RscNameTable::~RscNameTable() { if( pTable ) rtl_freeMemory( pTable ); }; -/************************************************************************* -|* -|* RscNameTable::SetSort() -|* -*************************************************************************/ void RscNameTable::SetSort( sal_Bool bSorted ){ bSort = bSorted; if( bSort && pTable){ @@ -83,11 +65,6 @@ void RscNameTable::SetSort( sal_Bool bSorted ){ }; }; -/************************************************************************* -|* -|* RscNameTable::Put() -|* -*************************************************************************/ Atom RscNameTable::Put( Atom nName, sal_uInt32 nTyp, long nValue ){ if( pTable ) pTable = (KEY_STRUCT *) @@ -124,11 +101,6 @@ Atom RscNameTable::Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass ) return( Put( nName, nTyp, (long)pClass ) ); }; -/************************************************************************* -|* -|* RscNameTable::Get() -|* -*************************************************************************/ sal_Bool RscNameTable::Get( Atom nName, KEY_STRUCT * pEle ){ KEY_STRUCT * pKey = NULL; KEY_STRUCT aSearchName; diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index a78301ac1b36..fcf0733670f4 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -54,7 +54,6 @@ const char* StringContainer::putString( const char* pString ) return aInsert.first->getStr(); } -/*************************************************************************/ int c; sal_Bool bLastInclude;// War letztes Symbol INCLUDE RscFileInst* pFI; @@ -69,7 +68,6 @@ sal_Bool bTargetDefined; StringContainer* pStringContainer = NULL; -/****************** C O D E **********************************************/ sal_uInt32 GetNumber(){ sal_uInt32 l = 0; sal_uInt32 nLog = 10; @@ -307,7 +305,6 @@ int yylex() return( aKeyVal[ 0 ].nKeyWord ); } -/****************** yyerror **********************************************/ #ifdef RS6000 extern "C" void yyerror( char* pMessage ) #elif defined SOLARIS @@ -319,7 +316,6 @@ void yyerror( char* pMessage ) pTC->pEH->Error( ERR_YACC, NULL, RscId(), pMessage ); } -/****************** parser start function ********************************/ void InitParser( RscFileInst * pFileInst ) { pTC = pFileInst->pTypCont; // Datenkontainer setzten diff --git a/rsc/source/parser/rscpar.cxx b/rsc/source/parser/rscpar.cxx index 069ba3d870d4..3c000be49754 100644 --- a/rsc/source/parser/rscpar.cxx +++ b/rsc/source/parser/rscpar.cxx @@ -17,19 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -/****************** I N C L U D E S **************************************/ -// C and C++ Includes. #include <string.h> #include <rscpar.hxx> #include <rscdb.hxx> -/****************** R s c F i l e I n s t ********************************/ -/****************** C O D E **********************************************/ -/************************************************************************* -|* -|* RscFileInst::Init() -|* -*************************************************************************/ void RscFileInst::Init() { nLineNo = 0; @@ -41,11 +32,6 @@ void RscFileInst::Init() bEof = sal_False; }; -/************************************************************************* -|* -|* RscFileInst::RscFileInst() -|* -*************************************************************************/ RscFileInst::RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc, sal_uLong lFIndex, FILE * fFile ) { @@ -61,11 +47,6 @@ RscFileInst::RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc, pInput = (char *)rtl_allocateMemory( nInputBufLen ); } -/************************************************************************* -|* -|* RscFileInst::~RscFileInst() -|* -*************************************************************************/ RscFileInst::~RscFileInst(){ if( pInput ) rtl_freeMemory( pInput ); @@ -73,11 +54,6 @@ RscFileInst::~RscFileInst(){ rtl_freeMemory( pLine ); } -/************************************************************************* -|* -|* RscFileInst::GetChar() -|* -*************************************************************************/ int RscFileInst::GetChar() { if( pLine[ nScanPos ] ) @@ -95,11 +71,6 @@ int RscFileInst::GetChar() } } -/************************************************************************* -|* -|* RscFileInst::GetNewLine() -|* -*************************************************************************/ void RscFileInst::GetNewLine() { nLineNo++; @@ -172,11 +143,6 @@ END: } } -/************************************************************************* -|* -|* RscFileInst::SetError() -|* -*************************************************************************/ void RscFileInst::SetError( ERRTYPE aError ) { if( aError.IsOk() ) diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y index 16d2833f53ac..742f58b42581 100644 --- a/rsc/source/parser/rscyacc.y +++ b/rsc/source/parser/rscyacc.y @@ -37,13 +37,11 @@ #include <rsclex.hxx> -/************** V a r i a b l e n ****************************************/ ObjectStack S; RscTop * pCurClass; sal_uInt32 nCurMask; char szErrBuf[ 100 ]; -/************** H i l f s F u n k t i o n e n ****************************/ RSCINST GetVarInst( const RSCINST & rInst, const char * pVarName ) { RSCINST aInst; @@ -242,7 +240,6 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop ) return aInst; } -/************** Y a c c C o d e ****************************************/ //#define YYDEBUG 1 #define TYPE_Atom 0 @@ -355,7 +352,6 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop ) %% -/********************** D E F I N I T I O N S ****************************/ resource_definitions : | resource_definitions resource_definition @@ -1137,7 +1133,6 @@ var_body | var_bodycomplex ; -/********************** work on yacc stack *******************************/ string_multiline : STRING { |