diff options
Diffstat (limited to 'autodoc/source/parser/inc')
29 files changed, 389 insertions, 389 deletions
diff --git a/autodoc/source/parser/inc/adoc/a_rdocu.hxx b/autodoc/source/parser/inc/adoc/a_rdocu.hxx index bf49609f29c4..8a5c56fc7286 100644 --- a/autodoc/source/parser/inc/adoc/a_rdocu.hxx +++ b/autodoc/source/parser/inc/adoc/a_rdocu.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -52,14 +52,14 @@ class DocuExplorer public: DocuExplorer(); ~DocuExplorer(); - void StartNewFile( - DocuDealer & o_rDocuDistributor ); + void StartNewFile( + DocuDealer & o_rDocuDistributor ); - void Process_Token( - DYN adoc::Token & let_drToken ); + void Process_Token( + DYN adoc::Token & let_drToken ); private: - DocuDealer * pDocuDistributor; - Dyn<Adoc_PE> pPE; + DocuDealer * pDocuDistributor; + Dyn<Adoc_PE> pPE; bool bIsPassedFirstDocu; }; diff --git a/autodoc/source/parser/inc/adoc/adoc_tok.hxx b/autodoc/source/parser/inc/adoc/adoc_tok.hxx index fa4a143eaf73..c70220395ed3 100644 --- a/autodoc/source/parser/inc/adoc/adoc_tok.hxx +++ b/autodoc/source/parser/inc/adoc/adoc_tok.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,13 +46,13 @@ class Token : public TextToken { public: // LIFECYCLE - virtual ~Token() {} + virtual ~Token() {} // OPERATIONS - virtual void DealOut( - ::TokenDealer & o_rDealer ); - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const = 0; + virtual void DealOut( + ::TokenDealer & o_rDealer ); + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const = 0; }; diff --git a/autodoc/source/parser/inc/adoc/atokdeal.hxx b/autodoc/source/parser/inc/adoc/atokdeal.hxx index db2765f54e56..7e514698d3cd 100644 --- a/autodoc/source/parser/inc/adoc/atokdeal.hxx +++ b/autodoc/source/parser/inc/adoc/atokdeal.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -48,8 +48,8 @@ class TokenDealer : virtual public ::TokenDealer { public: - virtual void Deal_AdcDocu( - adoc::Token & let_drToken ) = 0; + virtual void Deal_AdcDocu( + adoc::Token & let_drToken ) = 0; }; diff --git a/autodoc/source/parser/inc/adoc/cx_a_std.hxx b/autodoc/source/parser/inc/adoc/cx_a_std.hxx index c9a6c1443b12..b7479f5b0473 100644 --- a/autodoc/source/parser/inc/adoc/cx_a_std.hxx +++ b/autodoc/source/parser/inc/adoc/cx_a_std.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,48 +53,48 @@ class Context_AdocStd : public autodoc::TkpDocuContext, private StateMachineContext { public: - // LIFECYCLE + // LIFECYCLE Context_AdocStd(); - virtual void SetParentContext( - TkpContext & io_rParentContext, - const char * i_sMultiLineEndToken ); + virtual void SetParentContext( + TkpContext & io_rParentContext, + const char * i_sMultiLineEndToken ); ~Context_AdocStd(); - // OPERATIONS - virtual void AssignDealer( - TokenDealer & o_rDealer ); + // OPERATIONS + virtual void AssignDealer( + TokenDealer & o_rDealer ); - virtual void ReadCharChain( - CharacterSource & io_rText ); - virtual bool PassNewToken(); - virtual void SetMode_IsMultiLine( - bool i_bTrue ); - // INQUIRY + virtual void ReadCharChain( + CharacterSource & io_rText ); + virtual bool PassNewToken(); + virtual void SetMode_IsMultiLine( + bool i_bTrue ); + // INQUIRY virtual TkpContext & FollowUpContext(); private: - // SERVICE FUNCTIONS - virtual void PerformStatusFunction( - uintt i_nStatusSignal, - F_CRTOK i_fTokenCreateFunction, - CharacterSource & io_rText ); + // SERVICE FUNCTIONS + virtual void PerformStatusFunction( + uintt i_nStatusSignal, + F_CRTOK i_fTokenCreateFunction, + CharacterSource & io_rText ); - void SetupStateMachine(); + void SetupStateMachine(); - // DATA - StateMachine aStateMachine; - TokenDealer * pDealer; + // DATA + StateMachine aStateMachine; + TokenDealer * pDealer; // Contexts - TkpContext * pParentContext; - TkpContext * pFollowUpContext; - Dyn<Cx_LineStart> pCx_LineStart; - Dyn<Cx_CheckStar> pCx_CheckStar; + TkpContext * pParentContext; + TkpContext * pFollowUpContext; + Dyn<Cx_LineStart> pCx_LineStart; + Dyn<Cx_CheckStar> pCx_CheckStar; Dyn<Cx_AtTagCompletion> pCx_AtTagCompletion; // Temporary data, used during ReadCharChain() - Dyn<TextToken> pNewToken; + Dyn<TextToken> pNewToken; bool bIsMultiline; }; diff --git a/autodoc/source/parser/inc/adoc/cx_a_sub.hxx b/autodoc/source/parser/inc/adoc/cx_a_sub.hxx index 43fe2fca8449..5e649c420f76 100644 --- a/autodoc/source/parser/inc/adoc/cx_a_sub.hxx +++ b/autodoc/source/parser/inc/adoc/cx_a_sub.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,28 +47,28 @@ class Cx_LineStart : public TkpContext { public: Cx_LineStart( - TkpContext & i_rFollowUpContext ); + TkpContext & i_rFollowUpContext ); - virtual void ReadCharChain( - CharacterSource & io_rText ); - virtual bool PassNewToken(); + virtual void ReadCharChain( + CharacterSource & io_rText ); + virtual bool PassNewToken(); virtual TkpContext & FollowUpContext(); - void SetCurToken( - TextToken::F_CRTOK i_fTokenCreateFunction ) + void SetCurToken( + TextToken::F_CRTOK i_fTokenCreateFunction ) { fCur_TokenCreateFunction = i_fTokenCreateFunction; } void AssignDealer( - TokenDealer & o_rDealer ) + TokenDealer & o_rDealer ) { pDealer = &o_rDealer; } private: // DATA - TokenDealer * pDealer; - TkpContext * pFollowUpContext; + TokenDealer * pDealer; + TkpContext * pFollowUpContext; - Dyn<TextToken> pNewToken; + Dyn<TextToken> pNewToken; - TextToken::F_CRTOK fCur_TokenCreateFunction; + TextToken::F_CRTOK fCur_TokenCreateFunction; }; @@ -81,33 +81,33 @@ class Cx_CheckStar : public TkpContext public: // LIFECYCLE Cx_CheckStar( - TkpContext & i_rFollowUpContext ); - void Set_End_FollowUpContext( - TkpContext & i_rEnd_FollowUpContext ) + TkpContext & i_rFollowUpContext ); + void Set_End_FollowUpContext( + TkpContext & i_rEnd_FollowUpContext ) { pEnd_FollowUpContext = &i_rEnd_FollowUpContext; } - virtual void ReadCharChain( - CharacterSource & io_rText ); - virtual bool PassNewToken(); + virtual void ReadCharChain( + CharacterSource & io_rText ); + virtual bool PassNewToken(); - void SetCanBeEnd( - bool i_bCanBeEnd ) + void SetCanBeEnd( + bool i_bCanBeEnd ) { bCanBeEnd = i_bCanBeEnd; } virtual TkpContext & FollowUpContext(); void AssignDealer( - TokenDealer & o_rDealer ) + TokenDealer & o_rDealer ) { pDealer = &o_rDealer; } private: // DATA - TokenDealer * pDealer; - TkpContext * pFollowUpContext; - TkpContext * pEnd_FollowUpContext; + TokenDealer * pDealer; + TkpContext * pFollowUpContext; + TkpContext * pEnd_FollowUpContext; - Dyn<TextToken> pNewToken; + Dyn<TextToken> pNewToken; - bool bCanBeEnd; - bool bEndTokenFound; + bool bCanBeEnd; + bool bEndTokenFound; }; @@ -115,28 +115,28 @@ class Cx_AtTagCompletion : public TkpContext { public: Cx_AtTagCompletion( - TkpContext & i_rFollowUpContext ); + TkpContext & i_rFollowUpContext ); - virtual void ReadCharChain( - CharacterSource & io_rText ); - virtual bool PassNewToken(); + virtual void ReadCharChain( + CharacterSource & io_rText ); + virtual bool PassNewToken(); virtual TkpContext & FollowUpContext(); - void SetCurToken( - TextToken::F_CRTOK i_fTokenCreateFunction ) + void SetCurToken( + TextToken::F_CRTOK i_fTokenCreateFunction ) { fCur_TokenCreateFunction = i_fTokenCreateFunction; } void AssignDealer( - TokenDealer & o_rDealer ) + TokenDealer & o_rDealer ) { pDealer = &o_rDealer; } private: // DATA - TokenDealer * pDealer; - TkpContext * pFollowUpContext; + TokenDealer * pDealer; + TkpContext * pFollowUpContext; - Dyn<TextToken> pNewToken; + Dyn<TextToken> pNewToken; - TextToken::F_CRTOK fCur_TokenCreateFunction; + TextToken::F_CRTOK fCur_TokenCreateFunction; }; diff --git a/autodoc/source/parser/inc/adoc/docu_pe.hxx b/autodoc/source/parser/inc/adoc/docu_pe.hxx index ef49b2594c79..c4487e69b8cf 100644 --- a/autodoc/source/parser/inc/adoc/docu_pe.hxx +++ b/autodoc/source/parser/inc/adoc/docu_pe.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -61,81 +61,81 @@ class Adoc_PE : public TokenInterpreter Adoc_PE(); ~Adoc_PE(); - virtual void Hdl_at_std( - const Tok_at_std & i_rTok ); - virtual void Hdl_at_base( - const Tok_at_base & i_rTok ); - virtual void Hdl_at_exception( + virtual void Hdl_at_std( + const Tok_at_std & i_rTok ); + virtual void Hdl_at_base( + const Tok_at_base & i_rTok ); + virtual void Hdl_at_exception( const Tok_at_exception & i_rTok ); - virtual void Hdl_at_impl( - const Tok_at_impl & i_rTok ); - virtual void Hdl_at_key( - const Tok_at_key & i_rTok ); - virtual void Hdl_at_param( + virtual void Hdl_at_impl( + const Tok_at_impl & i_rTok ); + virtual void Hdl_at_key( + const Tok_at_key & i_rTok ); + virtual void Hdl_at_param( const Tok_at_param & i_rTok ); - virtual void Hdl_at_see( - const Tok_at_see & i_rTok ); - virtual void Hdl_at_template( + virtual void Hdl_at_see( + const Tok_at_see & i_rTok ); + virtual void Hdl_at_template( const Tok_at_template & i_rTok ); - virtual void Hdl_at_interface( + virtual void Hdl_at_interface( const Tok_at_interface & i_rTok ); - virtual void Hdl_at_internal( + virtual void Hdl_at_internal( const Tok_at_internal & i_rTok ); - virtual void Hdl_at_obsolete( + virtual void Hdl_at_obsolete( const Tok_at_obsolete & i_rTok ); - virtual void Hdl_at_module( + virtual void Hdl_at_module( const Tok_at_module & i_rTok ); - virtual void Hdl_at_file( - const Tok_at_file & i_rTok ); - virtual void Hdl_at_gloss( + virtual void Hdl_at_file( + const Tok_at_file & i_rTok ); + virtual void Hdl_at_gloss( const Tok_at_gloss & i_rTok ); - virtual void Hdl_at_global( + virtual void Hdl_at_global( const Tok_at_global & i_rTok ); - virtual void Hdl_at_include( + virtual void Hdl_at_include( const Tok_at_include & i_rTok ); - virtual void Hdl_at_label( + virtual void Hdl_at_label( const Tok_at_label & i_rTok ); - virtual void Hdl_at_since( + virtual void Hdl_at_since( const Tok_at_since & i_rTok ); - virtual void Hdl_at_HTML( + virtual void Hdl_at_HTML( const Tok_at_HTML & i_rTok ); - virtual void Hdl_at_NOHTML( + virtual void Hdl_at_NOHTML( const Tok_at_NOHTML & i_rTok ); - virtual void Hdl_DocWord( - const Tok_DocWord & i_rTok ); + virtual void Hdl_DocWord( + const Tok_DocWord & i_rTok ); - virtual void Hdl_Whitespace( + virtual void Hdl_Whitespace( const Tok_Whitespace & i_rTok ); - virtual void Hdl_LineStart( + virtual void Hdl_LineStart( const Tok_LineStart & i_rTok ); - virtual void Hdl_Eol( - const Tok_Eol & i_rTok ); + virtual void Hdl_Eol( + const Tok_Eol & i_rTok ); - virtual void Hdl_EoDocu( - const Tok_EoDocu & i_rTok ); + virtual void Hdl_EoDocu( + const Tok_EoDocu & i_rTok ); DYN ary::doc::OldCppDocu * ReleaseJustParsedDocu(); - bool IsComplete() const; + bool IsComplete() const; private: void InstallAtTag( @@ -144,7 +144,7 @@ class Adoc_PE : public TokenInterpreter bool i_bImplicit = false ); /// True for implicit @short and @descr. ary::doc::OldCppDocu & CurDocu(); - ary::info::AtTag & CurAtTag(); + ary::info::AtTag & CurAtTag(); bool UsesHtmlInDocuText(); void RenameCurShortTag(); @@ -168,10 +168,10 @@ class Adoc_PE : public TokenInterpreter Dyn<ary::doc::OldCppDocu> pCurDocu; - ary::info::AtTag * pCurAtTag; + ary::info::AtTag * pCurAtTag; uintt nLineCountInDocu; - UINT8 nCurSpecialMeaningTokens; - UINT8 nCurSubtractFromLineStart; + UINT8 nCurSpecialMeaningTokens; + UINT8 nCurSubtractFromLineStart; E_TagState eCurTagState; E_DocuState eDocuState; bool bIsComplete; diff --git a/autodoc/source/parser/inc/adoc/prs_adoc.hxx b/autodoc/source/parser/inc/adoc/prs_adoc.hxx index 5326552dd017..35d601b23062 100644 --- a/autodoc/source/parser/inc/adoc/prs_adoc.hxx +++ b/autodoc/source/parser/inc/adoc/prs_adoc.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,7 +41,7 @@ class DocuParser_AutodocStyle : public autodoc::DocumentationParser_Ifc { public: DocuParser_AutodocStyle(); - virtual ~DocuParser_AutodocStyle(); + virtual ~DocuParser_AutodocStyle(); virtual DYN autodoc::TkpDocuContext * Create_DocuContext() const; diff --git a/autodoc/source/parser/inc/adoc/tk_attag.hxx b/autodoc/source/parser/inc/adoc/tk_attag.hxx index 11c21124e67d..923c4018171c 100644 --- a/autodoc/source/parser/inc/adoc/tk_attag.hxx +++ b/autodoc/source/parser/inc/adoc/tk_attag.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,24 +45,24 @@ class Tok_at_std : public Token { public: Tok_at_std( - E_AtTagId i_nId ) + E_AtTagId i_nId ) : eId(i_nId) {} - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; virtual const char * Text() const; - E_AtTagId Id() const { return eId; } + E_AtTagId Id() const { return eId; } private: - E_AtTagId eId; + E_AtTagId eId; }; #define DECL_TOKEN_CLASS(name) \ class Tok_##name : public Token \ { public: \ - virtual void Trigger( \ - TokenInterpreter & io_rInterpreter ) const; \ + virtual void Trigger( \ + TokenInterpreter & io_rInterpreter ) const; \ virtual const char * \ Text() const; \ } diff --git a/autodoc/source/parser/inc/adoc/tk_docw.hxx b/autodoc/source/parser/inc/adoc/tk_docw.hxx index fa53d8968826..f8c8f2bc4783 100644 --- a/autodoc/source/parser/inc/adoc/tk_docw.hxx +++ b/autodoc/source/parser/inc/adoc/tk_docw.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,18 +43,18 @@ class Tok_DocWord : public Token public: // Spring and Fall Tok_DocWord( - const char * i_sText ) - : sText(i_sText) {} + const char * i_sText ) + : sText(i_sText) {} // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; // INQUIRY - virtual const char* Text() const; + virtual const char* Text() const; uintt Length() const { return sText.length(); } private: // DATA - String sText; + String sText; }; class Tok_Whitespace : public Token @@ -62,18 +62,18 @@ class Tok_Whitespace : public Token public: // Spring and Fall Tok_Whitespace( - UINT8 i_nSize ) - : nSize(i_nSize) {} + UINT8 i_nSize ) + : nSize(i_nSize) {} // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; // INQUIRY - virtual const char* Text() const; - UINT8 Size() const { return nSize; } + virtual const char* Text() const; + UINT8 Size() const { return nSize; } private: // DATA - UINT8 nSize; + UINT8 nSize; }; class Tok_LineStart : public Token @@ -81,32 +81,32 @@ class Tok_LineStart : public Token public: // Spring and Fall Tok_LineStart( - UINT8 i_nSize ) - : nSize(i_nSize) {} + UINT8 i_nSize ) + : nSize(i_nSize) {} // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; // INQUIRY - virtual const char* Text() const; - UINT8 Size() const { return nSize; } + virtual const char* Text() const; + UINT8 Size() const { return nSize; } private: // DATA - UINT8 nSize; + UINT8 nSize; }; class Tok_Eol : public Token { public: - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; virtual const char * Text() const; }; class Tok_EoDocu : public Token { public: - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; + virtual void Trigger( + TokenInterpreter & io_rInterpreter ) const; virtual const char * Text() const; }; diff --git a/autodoc/source/parser/inc/adoc/tokintpr.hxx b/autodoc/source/parser/inc/adoc/tokintpr.hxx index f24b2ea80a97..5fc0ca8aec6c 100644 --- a/autodoc/source/parser/inc/adoc/tokintpr.hxx +++ b/autodoc/source/parser/inc/adoc/tokintpr.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -68,7 +68,7 @@ class Tok_EoDocu; #define DECL_TOK_HANDLER(token) \ - virtual void Hdl_##token( \ + virtual void Hdl_##token( \ const Tok_##token & i_rTok ) = 0 @@ -76,7 +76,7 @@ class Tok_EoDocu; class TokenInterpreter { public: - virtual ~TokenInterpreter() {} + virtual ~TokenInterpreter() {} DECL_TOK_HANDLER(at_std); DECL_TOK_HANDLER(at_base); diff --git a/autodoc/source/parser/inc/cpp/ctokdeal.hxx b/autodoc/source/parser/inc/cpp/ctokdeal.hxx index 9d1f59c08e53..9b1e89403cca 100644 --- a/autodoc/source/parser/inc/cpp/ctokdeal.hxx +++ b/autodoc/source/parser/inc/cpp/ctokdeal.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,8 +49,8 @@ class TokenDealer : virtual public ::TokenDealer { public: - virtual void Deal_CppCode( - cpp::Token & let_drToken ) = 0; + virtual void Deal_CppCode( + cpp::Token & let_drToken ) = 0; /** This is to be used only by the internal macro expander ( ::cpp::PreProcessor ). diff --git a/autodoc/source/parser/inc/cpp/prs_cpp.hxx b/autodoc/source/parser/inc/cpp/prs_cpp.hxx index 61512f24b54f..fe2525cff354 100644 --- a/autodoc/source/parser/inc/cpp/prs_cpp.hxx +++ b/autodoc/source/parser/inc/cpp/prs_cpp.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,15 +46,15 @@ class Cpluplus_Parser : public autodoc::CodeParser_Ifc { public: Cpluplus_Parser(); - virtual ~Cpluplus_Parser(); + virtual ~Cpluplus_Parser(); - virtual void Setup( + virtual void Setup( ary::Repository & o_rRepository, const autodoc::DocumentationParser_Ifc & i_rDocumentationInterpreter ); - virtual void Run( + virtual void Run( const autodoc::FileCollector_Ifc & i_rFiles ); private: diff --git a/autodoc/source/parser/inc/doc_deal.hxx b/autodoc/source/parser/inc/doc_deal.hxx index f9b12c8b2299..4f94016fc28e 100644 --- a/autodoc/source/parser/inc/doc_deal.hxx +++ b/autodoc/source/parser/inc/doc_deal.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,7 +49,7 @@ class DocuDealer { public: // INQUIRY - virtual ~DocuDealer() {} + virtual ~DocuDealer() {} // OPERATIONS /** @descr diff --git a/autodoc/source/parser/inc/semantic/callf.hxx b/autodoc/source/parser/inc/semantic/callf.hxx index 6a8c829e00ee..6f06d36a16bf 100644 --- a/autodoc/source/parser/inc/semantic/callf.hxx +++ b/autodoc/source/parser/inc/semantic/callf.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ -/** This represents a function to be called, if a specific kind of token +/** This represents a function to be called, if a specific kind of token arrives in the semantic parser. @descr This class is only to be used as member of PeStatus<PE>. @@ -49,20 +49,20 @@ class CallFunction typedef void (PE::*F_Tok)(const char *); CallFunction( - F_Tok i_f2Call, - INT16 i_nTokType ); + F_Tok i_f2Call, + INT16 i_nTokType ); - F_Tok GetF() const; - INT16 TokType() const; + F_Tok GetF() const; + INT16 TokType() const; private: // DATA - F_Tok f2Call; - INT16 nTokType; + F_Tok f2Call; + INT16 nTokType; }; -/** One state within a ParseEnvironment. +/** One state within a ParseEnvironment. @template PE The owning ParseEnvironment. @@ -74,27 +74,27 @@ class PeStatus typedef typename CallFunction<PE>::F_Tok F_Tok; PeStatus( - PE & i_rMyPE, - uintt i_nSize, - F_Tok * i_pFuncArray, + PE & i_rMyPE, + uintt i_nSize, + F_Tok * i_pFuncArray, INT16 * i_pTokTypeArray, - F_Tok i_pDefault ); + F_Tok i_pDefault ); virtual ~PeStatus(); - virtual void Call_Handler( - INT16 i_nTokTypeId, - const char * i_sTokenText ) const; + virtual void Call_Handler( + INT16 i_nTokTypeId, + const char * i_sTokenText ) const; private: - bool CheckForCall( - uintt i_nPos, - INT16 i_nTokTypeId, - const char * i_sTokenText ) const; + bool CheckForCall( + uintt i_nPos, + INT16 i_nTokTypeId, + const char * i_sTokenText ) const; - PE * pMyPE; + PE * pMyPE; std::vector< CallFunction<PE> > aBranches; - F_Tok fDefault; + F_Tok fDefault; }; @@ -102,26 +102,26 @@ template <class PE> class PeStatusArray { public: - typedef typename PE::E_State State; + typedef typename PE::E_State State; PeStatusArray(); - void InsertState( - State i_ePosition, - DYN PeStatus<PE> & let_drState ); + void InsertState( + State i_ePosition, + DYN PeStatus<PE> & let_drState ); ~PeStatusArray(); const PeStatus<PE> & operator[]( - State i_ePosition ) const; + State i_ePosition ) const; - void SetCur( - State i_eCurState ); + void SetCur( + State i_eCurState ); const PeStatus<PE> & Cur() const; private: - DYN PeStatus<PE> * aStati[PE::size_of_states]; - State eState; + DYN PeStatus<PE> * aStati[PE::size_of_states]; + State eState; }; @@ -132,9 +132,9 @@ class PeStatusArray // CallFunction template <class PE> -CallFunction<PE>::CallFunction( F_Tok i_f2Call, - INT16 i_nTokType ) - : f2Call(i_f2Call), +CallFunction<PE>::CallFunction( F_Tok i_f2Call, + INT16 i_nTokType ) + : f2Call(i_f2Call), nTokType(i_nTokType) { } @@ -158,18 +158,18 @@ CallFunction<PE>::TokType() const // PeStatus template <class PE> -PeStatus<PE>::PeStatus( PE & i_rMyPE, - uintt i_nSize, - F_Tok * i_pFuncArray, +PeStatus<PE>::PeStatus( PE & i_rMyPE, + uintt i_nSize, + F_Tok * i_pFuncArray, INT16 * i_pTokTypeArray, - F_Tok i_fDefault ) - : pMyPE(&i_rMyPE), + F_Tok i_fDefault ) + : pMyPE(&i_rMyPE), fDefault(i_fDefault) { aBranches.reserve(i_nSize); for ( uintt i = 0; i < i_nSize; ++i ) { -// csv_assert(i > 0 ? i_pTokTypeArray[i] > i_pTokTypeArray[i-1] : true); +// csv_assert(i > 0 ? i_pTokTypeArray[i] > i_pTokTypeArray[i-1] : true); aBranches.push_back( CallFunction<PE>( i_pFuncArray[i], i_pTokTypeArray[i]) ); } // end for } @@ -182,8 +182,8 @@ PeStatus<PE>::~PeStatus() template <class PE> void -PeStatus<PE>::Call_Handler( INT16 i_nTokTypeId, - const char * i_sTokenText ) const +PeStatus<PE>::Call_Handler( INT16 i_nTokTypeId, + const char * i_sTokenText ) const { uintt nSize = aBranches.size(); uintt nPos = nSize / 2; @@ -210,9 +210,9 @@ PeStatus<PE>::Call_Handler( INT16 i_nTokTypeId, template <class PE> bool -PeStatus<PE>::CheckForCall( uintt i_nPos, - INT16 i_nTokTypeId, - const char * i_sTokenText ) const +PeStatus<PE>::CheckForCall( uintt i_nPos, + INT16 i_nTokTypeId, + const char * i_sTokenText ) const { if ( aBranches[i_nPos].TokType() == i_nTokTypeId ) { @@ -226,15 +226,15 @@ PeStatus<PE>::CheckForCall( uintt i_nPos, template <class PE> PeStatusArray<PE>::PeStatusArray() - : eState(PE::size_of_states) + : eState(PE::size_of_states) { memset(aStati, 0, sizeof aStati); } template <class PE> void -PeStatusArray<PE>::InsertState( State i_ePosition, - DYN PeStatus<PE> & let_drState ) +PeStatusArray<PE>::InsertState( State i_ePosition, + DYN PeStatus<PE> & let_drState ) { csv_assert(aStati[i_ePosition] == 0); aStati[i_ePosition] = &let_drState; diff --git a/autodoc/source/parser/inc/semantic/parseenv.hxx b/autodoc/source/parser/inc/semantic/parseenv.hxx index 058989ea3739..7f03e1d566f6 100644 --- a/autodoc/source/parser/inc/semantic/parseenv.hxx +++ b/autodoc/source/parser/inc/semantic/parseenv.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,39 +54,39 @@ class SubPeUseIfc; class ParseEnvironment : protected TokenProcessing_Types { public: - virtual ~ParseEnvironment() {} + virtual ~ParseEnvironment() {} // Parsing - void Enter( - E_EnvStackAction i_eWayOfEntering ); - void Leave( - E_EnvStackAction i_eWayOfLeaving ); - void SetCurSPU( - const SubPeUseIfc * i_pCurSPU ); + void Enter( + E_EnvStackAction i_eWayOfEntering ); + void Leave( + E_EnvStackAction i_eWayOfLeaving ); + void SetCurSPU( + const SubPeUseIfc * i_pCurSPU ); - ParseEnvironment * Parent() const; + ParseEnvironment * Parent() const; // ACCESS protected: ParseEnvironment( - ParseEnvironment * i_pParent ); - const SubPeUseIfc * CurSubPeUse() const; + ParseEnvironment * i_pParent ); + const SubPeUseIfc * CurSubPeUse() const; private: - virtual void InitData() = 0; - virtual void TransferData() = 0; + virtual void InitData() = 0; + virtual void TransferData() = 0; - ParseEnvironment * pParent; + ParseEnvironment * pParent; const SubPeUseIfc * pCurSubPe; }; class SubPeUseIfc { public: - virtual ~SubPeUseIfc() {} + virtual ~SubPeUseIfc() {} - virtual void InitParse() const = 0; - virtual void GetResults() const = 0; + virtual void InitParse() const = 0; + virtual void GetResults() const = 0; }; diff --git a/autodoc/source/parser/inc/semantic/sub_pe.hxx b/autodoc/source/parser/inc/semantic/sub_pe.hxx index 0aef6804eafe..4885a5fa05ce 100644 --- a/autodoc/source/parser/inc/semantic/sub_pe.hxx +++ b/autodoc/source/parser/inc/semantic/sub_pe.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,20 +43,20 @@ template <class PE, class SUB> class SubPe { public: - typedef SubPe< PE, SUB > self; + typedef SubPe< PE, SUB > self; SubPe( - PE & i_rParent ); - PE & Parent() const; - SUB & Child() const; + PE & i_rParent ); + PE & Parent() const; + SUB & Child() const; - ParseEnvironment & Get() const; + ParseEnvironment & Get() const; private: - SUB & CreateChild() const; + SUB & CreateChild() const; - PE & rParent; - Dyn<SUB> pChild; + PE & rParent; + Dyn<SUB> pChild; }; @@ -64,11 +64,11 @@ class SubPe // IMPLEMENTATION -// SubPe +// SubPe template <class PE, class SUB> SubPe<PE,SUB>::SubPe( PE & i_rParent ) - : rParent(i_rParent) + : rParent(i_rParent) { } diff --git a/autodoc/source/parser/inc/semantic/sub_peu.hxx b/autodoc/source/parser/inc/semantic/sub_peu.hxx index 9960e3e751e2..ac641ac6d25e 100644 --- a/autodoc/source/parser/inc/semantic/sub_peu.hxx +++ b/autodoc/source/parser/inc/semantic/sub_peu.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,24 +50,24 @@ class SubPeUse : public SubPeUseIfc, typedef void (PE::*F_RETURN)(); SubPeUse( - SubPe<PE,SUB> & i_rSubPeCreator, - F_INIT i_fInit, - F_RETURN i_fReturn ); + SubPe<PE,SUB> & i_rSubPeCreator, + F_INIT i_fInit, + F_RETURN i_fReturn ); ~SubPeUse(); - void Push( - E_TokenDone i_eDone ); - virtual void InitParse() const; - virtual void GetResults() const; + void Push( + E_TokenDone i_eDone ); + virtual void InitParse() const; + virtual void GetResults() const; PE & Parent() const; SUB & Child() const; private: // DATA - SubPe<PE,SUB> & rSubPeCreator; + SubPe<PE,SUB> & rSubPeCreator; F_INIT fInit; - F_RETURN fReturn; + F_RETURN fReturn; }; @@ -75,10 +75,10 @@ class SubPeUse : public SubPeUseIfc, template <class PE, class SUB> -SubPeUse<PE,SUB>::SubPeUse( SubPe<PE,SUB> & i_rSubPeCreator, - F_INIT i_fInit, - F_RETURN i_fReturn ) - : rSubPeCreator(i_rSubPeCreator), +SubPeUse<PE,SUB>::SubPeUse( SubPe<PE,SUB> & i_rSubPeCreator, + F_INIT i_fInit, + F_RETURN i_fReturn ) + : rSubPeCreator(i_rSubPeCreator), fInit(i_fInit), fReturn(i_fReturn) { diff --git a/autodoc/source/parser/inc/tokens/parseinc.hxx b/autodoc/source/parser/inc/tokens/parseinc.hxx index 0f01fab399c0..73c6c0568518 100644 --- a/autodoc/source/parser/inc/tokens/parseinc.hxx +++ b/autodoc/source/parser/inc/tokens/parseinc.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -177,10 +177,10 @@ jumpOverEol(CharacterSource & io_rText) } -inline char // Finds a matching closing bracket after the opening one is passed +inline char // Finds a matching closing bracket after the opening one is passed jumpToMatchingBracket( CharacterSource & io_rText, - char in_cBegin, - char in_cEnd ) + char in_cBegin, + char in_cEnd ) { intt nCounter = 1; char cNext; diff --git a/autodoc/source/parser/inc/tokens/stmstarr.hxx b/autodoc/source/parser/inc/tokens/stmstarr.hxx index 640177faf363..e4433661244c 100644 --- a/autodoc/source/parser/inc/tokens/stmstarr.hxx +++ b/autodoc/source/parser/inc/tokens/stmstarr.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,32 +44,32 @@ class StmArrayStatus : public StmStatus // LIFECYCLE StmArrayStatus( - intt i_nStatusSize, - const INT16 * in_aArrayModel, - F_CRTOK i_fTokenCreateFunction, - bool in_bIsDefault ); + intt i_nStatusSize, + const INT16 * in_aArrayModel, + F_CRTOK i_fTokenCreateFunction, + bool in_bIsDefault ); ~StmArrayStatus(); // INQUIRY - StmStatus::Branch NextBy( - intt in_nFollowersIndex) const; - F_CRTOK TokenCreateFunction() const + StmStatus::Branch NextBy( + intt in_nFollowersIndex) const; + F_CRTOK TokenCreateFunction() const { return fTokenCreateFunction; } - virtual bool IsADefault() const; + virtual bool IsADefault() const; // ACCESS virtual StmArrayStatus * AsArray(); - bool SetBranch( - intt in_nBranchIx, - StmStatus::Branch in_nBranch ); - void SetTokenCreateFunction( - F_CRTOK i_fTokenCreateFunction ); + bool SetBranch( + intt in_nBranchIx, + StmStatus::Branch in_nBranch ); + void SetTokenCreateFunction( + F_CRTOK i_fTokenCreateFunction ); private: - StmStatus::Branch * dpBranches; - intt nNrOfBranches; - F_CRTOK fTokenCreateFunction; - bool bIsADefault; + StmStatus::Branch * dpBranches; + intt nNrOfBranches; + F_CRTOK fTokenCreateFunction; + bool bIsADefault; }; diff --git a/autodoc/source/parser/inc/tokens/stmstate.hxx b/autodoc/source/parser/inc/tokens/stmstate.hxx index e966b4740b75..f9ce54a554ea 100644 --- a/autodoc/source/parser/inc/tokens/stmstate.hxx +++ b/autodoc/source/parser/inc/tokens/stmstate.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,21 +36,21 @@ class StmArrayStatus; class StmBoundsStatus; -/** A StmStatus is a state within a StateMachine. +/** A StmStatus is a state within a StateMachine. There are two kinds of it. Either its an array of pointers to other states within the state machine - an ArrayStatus. Or it is a BoundsStatus, which shows, the token cannot be followed further within the StateMachine. **/ -class StmStatus // := "State machine status" +class StmStatus // := "State machine status" { public: - typedef intt Branch; /// Values >= 0 give a next #Status' ID. + typedef intt Branch; /// Values >= 0 give a next #Status' ID. /// Values <= 0 tell, that a token is finished. /// a value < 0 returns the status back to an upper level state machine. // LIFECYCLE - virtual ~StmStatus() {} + virtual ~StmStatus() {} // OPERATIONS virtual StmArrayStatus * @@ -59,7 +59,7 @@ class StmStatus // := "State machine status" AsBounds(); // INQUIRY - virtual bool IsADefault() const = 0; + virtual bool IsADefault() const = 0; }; diff --git a/autodoc/source/parser/inc/tokens/stmstfin.hxx b/autodoc/source/parser/inc/tokens/stmstfin.hxx index 7ded64933bb5..846fdf2efcb6 100644 --- a/autodoc/source/parser/inc/tokens/stmstfin.hxx +++ b/autodoc/source/parser/inc/tokens/stmstfin.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -48,13 +48,13 @@ class StmBoundsStatus : public StmStatus StmBoundsStatus( StateMachineContext & o_rOwner, - TkpContext & i_rFollowUpContext, - uintt i_nStatusFunctionNr, - bool i_bIsDefault ); + TkpContext & i_rFollowUpContext, + uintt i_nStatusFunctionNr, + bool i_bIsDefault ); // INQUIRY - TkpContext * FollowUpContext(); - uintt StatusFunctionNr() const; - virtual bool IsADefault() const; + TkpContext * FollowUpContext(); + uintt StatusFunctionNr() const; + virtual bool IsADefault() const; // ACCESS virtual StmBoundsStatus * @@ -63,9 +63,9 @@ class StmBoundsStatus : public StmStatus private: StateMachineContext * pOwner; - TkpContext * pFollowUpContext; - uintt nStatusFunctionNr; - bool bIsDefault; + TkpContext * pFollowUpContext; + uintt nStatusFunctionNr; + bool bIsDefault; }; inline TkpContext * diff --git a/autodoc/source/parser/inc/tokens/tkp.hxx b/autodoc/source/parser/inc/tokens/tkp.hxx index 97fc9578ae5c..eb361e049195 100644 --- a/autodoc/source/parser/inc/tokens/tkp.hxx +++ b/autodoc/source/parser/inc/tokens/tkp.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,37 +55,37 @@ class TokenParser public: // LIFECYCLE TokenParser(); - virtual ~TokenParser() {} + virtual ~TokenParser() {} // OPERATIONS /** Start parsing a character source. Any previously parsed sources are discarded. */ - virtual void Start( + virtual void Start( CharacterSource & i_rSource ); - /** @short Gets the next identifiable token out of the + /** @short Gets the next identifiable token out of the source code. */ - void GetNextToken(); + void GetNextToken(); /// @return true, if there are more tokens to parse. - bool HasMore() const { return bHasMore; } + bool HasMore() const { return bHasMore; } private: void InitSource( CharacterSource & i_rSource ); - virtual void SetStartContext() = 0; + virtual void SetStartContext() = 0; virtual void SetCurrentContext( - TkpContext & io_rContext ) = 0; + TkpContext & io_rContext ) = 0; virtual TkpContext & CurrentContext() = 0; // DATA - CharacterSource * pChars; - bool bHasMore; + CharacterSource * pChars; + bool bHasMore; }; diff --git a/autodoc/source/parser/inc/tokens/tkpcontx.hxx b/autodoc/source/parser/inc/tokens/tkpcontx.hxx index c8818b4bfc20..d838cbe2f5cf 100644 --- a/autodoc/source/parser/inc/tokens/tkpcontx.hxx +++ b/autodoc/source/parser/inc/tokens/tkpcontx.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,7 @@ class CharacterSource; class TkpNullContext; -/** @task +/** @task Specifies a context within which tokens are interpreted in a special way. For example in parsing C++ there could be a context for code, one for comments and a third one for preprocessor statements, because @@ -54,7 +54,7 @@ class TkpContext { public: // LIFECYCLE - virtual ~TkpContext() {} + virtual ~TkpContext() {} // OPERATIONS /** @descr @@ -75,8 +75,8 @@ class TkpContext passes the parsed token to the internally known receiver and returns true. The token is cut from io_rText. **/ - virtual void ReadCharChain( - CharacterSource & io_rText ) = 0; + virtual void ReadCharChain( + CharacterSource & io_rText ) = 0; /** Has to pass the parsed token to a known receiver. If the token is to be parsed further in a different context, PassNewToken() returns false, but the token is NOT cut from io_rText. @@ -85,7 +85,7 @@ class TkpContext false, if the token was not parsed completely by this context or if the token is to be ignored. */ - virtual bool PassNewToken() = 0; + virtual bool PassNewToken() = 0; virtual TkpContext & FollowUpContext() = 0; @@ -101,10 +101,10 @@ class StateMachineContext virtual ~StateMachineContext() {} /// Is used by StmBoundsStatus only. - virtual void PerformStatusFunction( - uintt i_nStatusSignal, - F_CRTOK i_fTokenCreateFunction, - CharacterSource & io_rText ) = 0; + virtual void PerformStatusFunction( + uintt i_nStatusSignal, + F_CRTOK i_fTokenCreateFunction, + CharacterSource & io_rText ) = 0; }; class TkpNullContext : public TkpContext @@ -112,9 +112,9 @@ class TkpNullContext : public TkpContext public: ~TkpNullContext(); - virtual void ReadCharChain( - CharacterSource & io_rText ); - virtual bool PassNewToken(); + virtual void ReadCharChain( + CharacterSource & io_rText ); + virtual bool PassNewToken(); virtual TkpContext & FollowUpContext(); }; @@ -125,13 +125,13 @@ namespace autodoc class TkpDocuContext : public TkpContext { public: - virtual void SetParentContext( - TkpContext & io_rParentContext, - const char * i_sMultiLineEndToken ) = 0; - virtual void AssignDealer( - TokenDealer & o_rDealer ) = 0; - virtual void SetMode_IsMultiLine( - bool i_bTrue ) = 0; + virtual void SetParentContext( + TkpContext & io_rParentContext, + const char * i_sMultiLineEndToken ) = 0; + virtual void AssignDealer( + TokenDealer & o_rDealer ) = 0; + virtual void SetMode_IsMultiLine( + bool i_bTrue ) = 0; }; } // namespace autodoc diff --git a/autodoc/source/parser/inc/tokens/tkpstama.hxx b/autodoc/source/parser/inc/tokens/tkpstama.hxx index 9c09ba6bc808..10d36f38f31e 100644 --- a/autodoc/source/parser/inc/tokens/tkpstama.hxx +++ b/autodoc/source/parser/inc/tokens/tkpstama.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,7 +36,7 @@ #include <tokens/stmstarr.hxx> #include <tokens/stmstfin.hxx> -/** @descr +/** @descr This state-machine models state transitions from one state to another per indices of branches. If the indices represent ascii-char-values, the state-machine can be used for recognising tokens of text. @@ -52,25 +52,25 @@ class StateMachine { public: // Types - typedef StmStatus::Branch Branch; - typedef StmStatus * * StatusList; + typedef StmStatus::Branch Branch; + typedef StmStatus * * StatusList; //# Interface self // LIFECYCLE StateMachine( - intt in_nStatusSize, - intt in_nInitial_StatusListSize ); /// The user of the constructor should guess + intt in_nStatusSize, + intt in_nInitial_StatusListSize ); /// The user of the constructor should guess /// the approximate number of stati here to - /// avoid multiple reallocations. + /// avoid multiple reallocations. /// @#AddStatus - intt AddStatus( /// @return the new #Status' ID - DYN StmStatus * let_dpStatus); + intt AddStatus( /// @return the new #Status' ID + DYN StmStatus * let_dpStatus); /// @#AddToken - void AddToken( - const char * in_sToken, - TextToken::F_CRTOK in_fTokenCreateFunction, - const INT16 * in_aBranches, - INT16 in_nBoundsStatus ); + void AddToken( + const char * in_sToken, + TextToken::F_CRTOK in_fTokenCreateFunction, + const INT16 * in_aBranches, + INT16 in_nBoundsStatus ); ~StateMachine(); @@ -79,37 +79,37 @@ class StateMachine GetCharChain( TextToken::F_CRTOK & o_nTokenCreateFunction, - CharacterSource & io_rText ); + CharacterSource & io_rText ); private: // SERVICE FUNCTIONS - StmStatus & Status( - intt in_nStatusNr) const; + StmStatus & Status( + intt in_nStatusNr) const; StmArrayStatus & CurrentStatus() const; StmBoundsStatus * BoundsStatus() const; /// Sets the PeekedStatus. - void Peek( - intt in_nBranch); + void Peek( + intt in_nBranch); - void ResizeStati(); // Adds space for 32 stati. + void ResizeStati(); // Adds space for 32 stati. // DATA - StatusList pStati; /// List of Status, implemented as simple C-array of length #nStatiSpace + StatusList pStati; /// List of Status, implemented as simple C-array of length #nStatiSpace /// with nStatiLength valid members (beginning from zero). - intt nCurrentStatus; - intt nPeekedStatus; + intt nCurrentStatus; + intt nPeekedStatus; - intt nStatusSize; /// Size of the branch array of a single status. + intt nStatusSize; /// Size of the branch array of a single status. - intt nNrofStati; /// Nr of Stati so far. - intt nStatiSpace; /// Size of allocated array for #pStati (size in items). + intt nNrofStati; /// Nr of Stati so far. + intt nStatiSpace; /// Size of allocated array for #pStati (size in items). }; -/** @#AddToken +/** @#AddToken @descr Adds a token, which will be recogniszeds by the statemachine. diff --git a/autodoc/source/parser/inc/tokens/tokdeal.hxx b/autodoc/source/parser/inc/tokens/tokdeal.hxx index 3d70cdd4ad03..7b6a27e56603 100644 --- a/autodoc/source/parser/inc/tokens/tokdeal.hxx +++ b/autodoc/source/parser/inc/tokens/tokdeal.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,10 +46,10 @@ class TokenDealer { public: - virtual ~TokenDealer() {} + virtual ~TokenDealer() {} - virtual void Deal_Eol() = 0; - virtual void Deal_Eof() = 0; + virtual void Deal_Eol() = 0; + virtual void Deal_Eof() = 0; virtual cpp::Distributor * AsDistributor() = 0; }; diff --git a/autodoc/source/parser/inc/tokens/token.hxx b/autodoc/source/parser/inc/tokens/token.hxx index f44ca2917372..26d4976ae20c 100644 --- a/autodoc/source/parser/inc/tokens/token.hxx +++ b/autodoc/source/parser/inc/tokens/token.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,21 +45,21 @@ class TextToken typedef TextToken * (*F_CRTOK)(const char*); // LIFECYCLE - virtual ~TextToken() {} + virtual ~TextToken() {} // INQUIRY - virtual const char* Text() const = 0; + virtual const char* Text() const = 0; - virtual void DealOut( - ::TokenDealer & o_rDealer ) = 0; + virtual void DealOut( + ::TokenDealer & o_rDealer ) = 0; }; class Tok_Eof : public TextToken { - virtual void DealOut( // Implemented in tokdeal.cxx - TokenDealer & o_rDealer ); - virtual const char* Text() const; + virtual void DealOut( // Implemented in tokdeal.cxx + TokenDealer & o_rDealer ); + virtual const char* Text() const; }; #endif diff --git a/autodoc/source/parser/inc/tokens/tokproct.hxx b/autodoc/source/parser/inc/tokens/tokproct.hxx index 8fdcef957290..401e3fe191bc 100644 --- a/autodoc/source/parser/inc/tokens/tokproct.hxx +++ b/autodoc/source/parser/inc/tokens/tokproct.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,7 +39,7 @@ class ParseEnvironment; -/** is a parent class for classes, which take part in parsing tokens semantically. +/** is a parent class for classes, which take part in parsing tokens semantically. It provides some types for them. */ class TokenProcessing_Types @@ -53,21 +53,21 @@ class TokenProcessing_Types enum E_EnvStackAction { - stay, // same parse environment - push, // push sub environment + stay, // same parse environment + push, // push sub environment pop_success, // return to parent environment, parsing was successful pop_failure // return to parent environment, but an error occured. }; struct TokenProcessing_Result { - E_TokenDone eDone; - E_EnvStackAction eStackAction; - ParseEnvironment * pEnv2Push; + E_TokenDone eDone; + E_EnvStackAction eStackAction; + ParseEnvironment * pEnv2Push; TokenProcessing_Result() : eDone(not_done), eStackAction(stay), pEnv2Push(0) {} - void Reset() { eDone = not_done; eStackAction = stay; pEnv2Push = 0; } + void Reset() { eDone = not_done; eStackAction = stay; pEnv2Push = 0; } }; enum E_ParseResult diff --git a/autodoc/source/parser/inc/x_docu.hxx b/autodoc/source/parser/inc/x_docu.hxx index faf14b0591d2..5967c766259f 100644 --- a/autodoc/source/parser/inc/x_docu.hxx +++ b/autodoc/source/parser/inc/x_docu.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,13 +44,13 @@ class X_Docu : public autodoc::X_Parser_Ifc const char * i_explanation ); ~X_Docu(); // INQUIRY - virtual E_Event GetEvent() const; - virtual void GetInfo( + virtual E_Event GetEvent() const; + virtual void GetInfo( std::ostream & o_rOutputMedium ) const; private: - String sTagName; - String sExplanation; + String sTagName; + String sExplanation; }; diff --git a/autodoc/source/parser/inc/x_parse.hxx b/autodoc/source/parser/inc/x_parse.hxx index 593c7661d9bc..57be17cfaede 100644 --- a/autodoc/source/parser/inc/x_parse.hxx +++ b/autodoc/source/parser/inc/x_parse.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,21 +40,21 @@ class X_Parser : public autodoc::X_Parser_Ifc public: // LIFECYCLE X_Parser( - E_Event i_eEvent, - const char * i_sObject, + E_Event i_eEvent, + const char * i_sObject, const String & i_sCausingFile_FullPath, - uintt i_nCausingLineNr ); + uintt i_nCausingLineNr ); ~X_Parser(); // INQUIRY - virtual E_Event GetEvent() const; - virtual void GetInfo( + virtual E_Event GetEvent() const; + virtual void GetInfo( std::ostream & o_rOutputMedium ) const; private: - E_Event eEvent; - String sObject; - String sCausingFile_FullPath; - uintt nCausingLineNr; + E_Event eEvent; + String sObject; + String sCausingFile_FullPath; + uintt nCausingLineNr; }; |