diff options
Diffstat (limited to 'autodoc/source/parser_i/inc/s2_dsapi')
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx | 235 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx | 125 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx | 183 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx | 67 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx | 90 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx | 123 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx | 75 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx | 203 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx | 96 | ||||
-rw-r--r-- | autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx | 62 |
10 files changed, 0 insertions, 1259 deletions
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx deleted file mode 100644 index 44269613..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx +++ /dev/null @@ -1,235 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_CX_DOCU2_HXX -#define DSAPI_CX_DOCU2_HXX - -// USED SERVICES - // BASE CLASSES -#include <tokens/tkpcont2.hxx> - // COMPONENTS - // PARAMETERS -#include <s2_dsapi/tk_xml.hxx> - -namespace csi -{ -namespace dsapi -{ - -class Token_Receiver; - - -/** -@descr -*/ - -class Cx_Base : public ::TkpContext -{ - public: - virtual bool PassNewToken(); - virtual TkpContext & - FollowUpContext(); - protected: - // LIFECYCLE - Cx_Base( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : rReceiver(o_rReceiver), - pFollowUpContext(&i_rFollowUpContext) - // pNewToken - { } - protected: - void SetToken( - DYN Token * let_dpToken ) - { pNewToken = let_dpToken; } - void Handle_DocuSyntaxError( - CharacterSource & io_rText ); - - private: - // DATA - Token_Receiver & rReceiver; - TkpContext * pFollowUpContext; - Dyn<Token> pNewToken; -}; - - -class Cx_EoHtml : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoHtml( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetIfIsStartOfParagraph( - bool i_bNextTokenProperty ) - { bToken_IsStartOfParagraph = i_bNextTokenProperty; } - - private: - bool bToken_IsStartOfParagraph; -}; - -class Cx_EoXmlConst : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoXmlConst( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetTokenId( - lux::Enum< Tok_XmlConst::E_TokenId > - i_eTokenId ) - { eTokenId = i_eTokenId; } - private: - Tok_XmlConst::EV_TokenId - eTokenId; -}; - -class Cx_EoXmlLink_BeginTag : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoXmlLink_BeginTag( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetTokenId( - Tok_XmlLink_BeginTag::EV_TokenId - i_eTokenId ) - { eTokenId = i_eTokenId; } - private: - Tok_XmlLink_BeginTag::EV_TokenId - eTokenId; -}; - -class Cx_EoXmlLink_EndTag : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoXmlLink_EndTag( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetTokenId( - Tok_XmlLink_EndTag::EV_TokenId - i_eTokenId ) - { eTokenId = i_eTokenId; } - private: - Tok_XmlLink_EndTag::E_TokenId - eTokenId; -}; - -class Cx_EoXmlFormat_BeginTag : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoXmlFormat_BeginTag( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetTokenId( - lux::Enum< Tok_XmlFormat_BeginTag::E_TokenId > - i_eTokenId ) - { eTokenId = i_eTokenId; } - private: - lux::Enum< Tok_XmlFormat_BeginTag::E_TokenId > - eTokenId; -}; - -class Cx_EoXmlFormat_EndTag : public Cx_Base -{ - public: - // LIFECYCLE - Cx_EoXmlFormat_EndTag( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext) {} - // OPERATIONS - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetTokenId( - lux::Enum< Tok_XmlFormat_EndTag::E_TokenId > - i_eTokenId ) - { eTokenId = i_eTokenId; } - private: - lux::Enum< Tok_XmlFormat_EndTag::E_TokenId > - eTokenId; -}; - -class Cx_CheckStar : public Cx_Base -{ - public: - // LIFECYCLE - Cx_CheckStar( - Token_Receiver & o_rReceiver, - TkpContext & i_rFollowUpContext ) - : Cx_Base(o_rReceiver, i_rFollowUpContext), - bIsEnd(false), bEndTokenFound(false) - { } - void Set_End_FolloUpContext( - TkpContext & i_rEnd_FollowUpContext ) - { pEnd_FollowUpContext = &i_rEnd_FollowUpContext; } - - virtual void ReadCharChain( - CharacterSource & io_rText ); - void SetIsEnd( - bool i_bIsEnd ) - { bIsEnd = i_bIsEnd; } - virtual TkpContext & - FollowUpContext(); - private: - TkpContext * pEnd_FollowUpContext; - bool bIsEnd; - bool bEndTokenFound; -}; - - -} // namespace dsapi -} // namespace csi - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx b/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx deleted file mode 100644 index 7cf99190..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx +++ /dev/null @@ -1,125 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef ADC_CX_DSAPI_HXX -#define ADC_CX_DSAPI_HXX - -// USED SERVICES - // BASE CLASSES -#include <tokens/tkpcont2.hxx> - // COMPONENTS -#include <cosv/tpl/dyn.hxx> -#include <tokens/tkpstam2.hxx> - // PARAMETERS - - -namespace csi -{ -namespace dsapi -{ - -class Token_Receiver; -class Token; - -class Cx_EoHtml; -class Cx_EoXmlConst; -class Cx_EoXmlLink_BeginTag; -class Cx_EoXmlLink_EndTag; -class Cx_EoXmlFormat_BeginTag; -class Cx_EoXmlFormat_EndTag; -class Cx_CheckStar; - -/** -@descr -*/ -class Context_Docu : public TkpDocuContext, - private StateMachineContext -{ - public: - // LIFECYCLE - Context_Docu( - Token_Receiver & o_rReceiver ); - virtual void SetParentContext( - TkpContext & io_rParentContext, - const char * i_sMultiLineEndToken ); - - ~Context_Docu(); - // OPERATIONS - 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, - UINT16 i_nTokenId, - CharacterSource & io_rText ); - - void SetupStateMachine(); - - // DATA - StateMachin2 aStateMachine; - Token_Receiver * pReceiver; - - // Contexts - TkpContext * pParentContext; - String sMultiLineEndToken; - - Dyn<Cx_EoHtml> pCx_EoHtml; - Dyn<Cx_EoXmlConst> pCx_EoXmlConst; - Dyn<Cx_EoXmlLink_BeginTag> - pCx_EoXmlLink_BeginTag; - Dyn<Cx_EoXmlLink_EndTag> - pCx_EoXmlLink_EndTag; - Dyn<Cx_EoXmlFormat_BeginTag> - pCx_EoXmlFormat_BeginTag; - Dyn<Cx_EoXmlFormat_EndTag> - pCx_EoXmlFormat_EndTag; - Dyn<Cx_CheckStar> pCx_CheckStar; - - // Temporary data, used during ReadCharChain() - Dyn<Token> pNewToken; - ::TkpContext * pFollowUpContext; - bool bIsMultiline; -}; - - -} // namespace dsapi -} // namespace csi - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx deleted file mode 100644 index 9eace236..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx +++ /dev/null @@ -1,183 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef ADC_DSAPI_DOCU_PE2_HXX -#define ADC_DSAPI_DOCU_PE2_HXX - - - -// USED SERVICES - // BASE CLASSES -#include <s2_dsapi/tokintpr.hxx> - // COMPONENTS - // PARAMETERS - -class ParserInfo; - -namespace ary -{ -namespace doc -{ - class OldIdlDocu; -} - -namespace inf -{ - class DocuToken; -} // namespace info -} // namespace ary - - - -namespace csi -{ -namespace dsapi -{ - - -class Token; -class DT_AtTag; - -class SapiDocu_PE : public TokenInterpreter -{ - public: - SapiDocu_PE( - ParserInfo & io_rPositionInfo ); - ~SapiDocu_PE(); - - void ProcessToken( - DYN csi::dsapi::Token & - let_drToken ); - - virtual void Process_AtTag( - const Tok_AtTag & i_rToken ); - virtual void Process_HtmlTag( - const Tok_HtmlTag & i_rToken ); - virtual void Process_XmlConst( - const Tok_XmlConst & - i_rToken ); - virtual void Process_XmlLink_BeginTag( - const Tok_XmlLink_BeginTag & - i_rToken ); - virtual void Process_XmlLink_EndTag( - const Tok_XmlLink_EndTag & - i_rToken ); - virtual void Process_XmlFormat_BeginTag( - const Tok_XmlFormat_BeginTag & - i_rToken ); - virtual void Process_XmlFormat_EndTag( - const Tok_XmlFormat_EndTag & - i_rToken ); - virtual void Process_Word( - const Tok_Word & i_rToken ); - virtual void Process_Comma(); - virtual void Process_DocuEnd(); - virtual void Process_EOL(); - virtual void Process_White(); - - - DYN ary::doc::OldIdlDocu * - ReleaseJustParsedDocu(); - - bool IsComplete() const; - - private: - enum E_State - { - e_none = 0, - st_short, - st_description, - st_attags, - st_complete - }; - - typedef void ( SapiDocu_PE::*F_TokenAdder )( DYN ary::inf::DocuToken & let_drNewToken ); - - void AddDocuToken2Void( - DYN ary::inf::DocuToken & - let_drNewToken ); - void AddDocuToken2Short( - DYN ary::inf::DocuToken & - let_drNewToken ); - void AddDocuToken2Description( - DYN ary::inf::DocuToken & - let_drNewToken ); - void AddDocuToken2Deprecated( - DYN ary::inf::DocuToken & - let_drNewToken ); - void AddDocuToken2CurAtTag( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurParameterAtTagName( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurSeeAlsoAtTagLinkText( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurSeeAlsoAtTagLinkText_2( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurSeeAlsoAtTagLinkText_3( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurSinceAtTagVersion_OOo( - DYN ary::inf::DocuToken & - let_drNewToken ); - void SetCurSinceAtTagVersion_Number( - DYN ary::inf::DocuToken & - let_drNewToken ); - void AddDocuToken2SinceAtTag( - DYN ary::inf::DocuToken & - let_drNewToken ); - - bool CheckVersionSyntax_OOo( - const String & i_versionPart1 ); - bool CheckVersionSyntax_Number( - const String & i_versionPart2 ); - // DATA - Dyn<ary::doc::OldIdlDocu> - pDocu; - E_State eState; - ParserInfo * pPositionInfo; - F_TokenAdder fCurTokenAddFunction; - - Dyn<DT_AtTag> pCurAtTag; - String sCurDimAttribute; - StreamStr sCurAtSeeType_byXML; -}; - -} // namespace dsapi -} // namespace csi - - -// IMPLEMENTATION - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx b/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx deleted file mode 100644 index 8d8d418b..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_DSAPITOK_HXX -#define DSAPI_DSAPITOK_HXX - -// USED SERVICES - // BASE CLASSES -#include <tokens/token2.hxx> - // COMPONENTS - // PARAMETERS - - -namespace csi -{ -namespace dsapi -{ - - -class TokenInterpreter; - - -class Token : public TextToken -{ - public: - // LIFECYCLE - virtual ~Token() {} - - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const = 0; -}; - - -} // namespace dsapi -} // namespace csi - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx deleted file mode 100644 index dd2e0976..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx +++ /dev/null @@ -1,90 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_TK_ATAG2_HXX -#define DSAPI_TK_ATAG2_HXX - -// USED SERVICES - // BASE CLASSES -#include <s2_dsapi/dsapitok.hxx> - // COMPONENTS - // PARAMETERS -#include <luxenum.hxx> - -namespace csi -{ -namespace dsapi -{ - - -class Tok_AtTag : public Token -{ - public: - // TYPE - enum E_TokenId - { - e_none = 0, - author = 1, - see = 2, - param = 3, - e_return = 4, - e_throw = 5, - example = 6, - deprecated = 7, - suspicious = 8, - missing = 9, - incomplete = 10, - version = 11, - guarantees = 12, - exception = 13, - since = 14 - }; - typedef lux::Enum<E_TokenId> EV_TokenId; - - // Spring and Fall - Tok_AtTag( - EV_TokenId i_eTag ) - : eTag(i_eTag) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - - private: - EV_TokenId eTag; -}; - -} // namespace dsapi -} // namespace csi - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx deleted file mode 100644 index 25ebd547..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx +++ /dev/null @@ -1,123 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_TK_DOCW2_HXX -#define DSAPI_TK_DOCW2_HXX - -// USED SERVICES - // BASE CLASSES -#include <s2_dsapi/dsapitok.hxx> - // COMPONENTS - // PARAMETERS - -namespace csi -{ -namespace dsapi -{ - - -class Tok_Word : public Token -{ - public: - // Spring and Fall - Tok_Word( - const char * i_sText ) - : sText(i_sText) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - - private: - // DATA - String sText; -}; - -class Tok_Comma : public Token -{ - public: - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; -}; - -class Tok_DocuEnd : public Token -{ - public: - // Spring and Fall - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; -}; - -class Tok_EOL : public Token -{ - public: - // Spring and Fall - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; -}; - -class Tok_EOF : public Token -{ - public: - // Spring and Fall - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; -}; - -class Tok_White : public Token -{ - public: - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; -}; - - - -} // namespace dsapi -} // namespace csi - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx deleted file mode 100644 index 7bb8a26a..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_TK_HTML_HXX -#define DSAPI_TK_HTML_HXX - - -// USED SERVICES - // BASE CLASSES -#include <s2_dsapi/dsapitok.hxx> - // COMPONENTS - // PARAMETERS - -namespace csi -{ -namespace dsapi -{ - - -class Tok_HtmlTag : public Token -{ - public: - // Spring and Fall - Tok_HtmlTag( - const char * i_sTag, - bool i_bIsParagraphStarter ) - : sTag(i_sTag), - bIsParagraphStarter(i_bIsParagraphStarter) - {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - bool IsParagraphStarter() const - { return bIsParagraphStarter; } - - private: - String sTag; - bool bIsParagraphStarter; -}; - - -} // namespace dsapi -} // namespace csi - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx deleted file mode 100644 index 50d85212..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx +++ /dev/null @@ -1,203 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_TK_XML_HXX -#define DSAPI_TK_XML_HXX - -// USED SERVICES - // BASE CLASSES -#include <s2_dsapi/dsapitok.hxx> - // COMPONENTS - // PARAMETERS -#include <luxenum.hxx> - - -namespace csi -{ -namespace dsapi -{ - - -class Tok_XmlTag : public Token -{ - public: -}; - -class Tok_XmlConst : public Tok_XmlTag -{ - public: - // TYPE - enum E_TokenId - { - e_none = 0, - e_true = 1, - e_false = 2, - e_null = 3, - e_void = 4 - }; - typedef lux::Enum<E_TokenId> EV_TokenId; - - // Spring and Fall - Tok_XmlConst( - EV_TokenId i_eTag ) - : eTag(i_eTag) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - - private: - // DATA - EV_TokenId eTag; -}; - -class Tok_XmlLink_Tag : public Tok_XmlTag -{ - public: - // TYPE - enum E_TokenId - { - e_none = 0, - e_const = 1, - member = 2, - type = 3 - }; - typedef lux::Enum<E_TokenId> EV_TokenId; -}; - -class Tok_XmlLink_BeginTag : public Tok_XmlLink_Tag -{ - public: - // Spring and Fall - Tok_XmlLink_BeginTag( - EV_TokenId i_eTag, - const String & i_sScope, - const String & i_sDim ) - : eTag(i_eTag), - sScope(i_sScope), - sDim(i_sDim) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - const String & Scope() const { return sScope; } - const String & Dim() const { return sDim; } - - private: - // DATA - EV_TokenId eTag; - String sScope; - String sDim; -}; - -class Tok_XmlLink_EndTag : public Tok_XmlLink_Tag -{ - public: - // Spring and Fall - Tok_XmlLink_EndTag( - EV_TokenId i_eTag ) - : eTag(i_eTag) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - - private: - // DATA - EV_TokenId eTag; -}; - -class Tok_XmlFormat_Tag : public Tok_XmlTag -{ - public: - // TYPE - enum E_TokenId - { - e_none = 0, - code = 1, - listing = 2, - atom = 3 - }; - typedef lux::Enum<E_TokenId> EV_TokenId; -}; - -class Tok_XmlFormat_BeginTag : public Tok_XmlFormat_Tag -{ - public: - // Spring and Fall - Tok_XmlFormat_BeginTag( - EV_TokenId i_eTag, - const String & i_sDim ) - : eTag(i_eTag), - sDim(i_sDim) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - const String & Dim() const { return sDim; } - - private: - // DATA - EV_TokenId eTag; - String sDim; -}; - -class Tok_XmlFormat_EndTag : public Tok_XmlFormat_Tag -{ - public: - // Spring and Fall - Tok_XmlFormat_EndTag( - EV_TokenId i_eTag ) - : eTag(i_eTag) {} - // OPERATIONS - virtual void Trigger( - TokenInterpreter & io_rInterpreter ) const; - // INQUIRY - virtual const char* Text() const; - E_TokenId Id() const { return eTag; } - - private: - // DATA - EV_TokenId eTag; -}; - - -} // namespace dsapi -} // namespace csi - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx deleted file mode 100644 index 8437f4f2..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef ADC_DSAPI_TOKINTPR_HXX -#define ADC_DSAPI_TOKINTPR_HXX - - - -// USED SERVICES - // BASE CLASSES - // COMPONENTS - // PARAMETERS - -namespace csi -{ -namespace dsapi -{ - - -class Tok_AtTag; -class Tok_XmlConst; -class Tok_XmlLink_BeginTag; -class Tok_XmlLink_EndTag; -class Tok_XmlFormat_BeginTag; -class Tok_XmlFormat_EndTag; -class Tok_Word; -class Tok_HtmlTag; - -class TokenInterpreter -{ - public: - virtual ~TokenInterpreter() {} - - virtual void Process_AtTag( - const Tok_AtTag & i_rToken ) = 0; - virtual void Process_HtmlTag( - const Tok_HtmlTag & i_rToken ) = 0; - virtual void Process_XmlConst( - const Tok_XmlConst & - i_rToken ) = 0; - virtual void Process_XmlLink_BeginTag( - const Tok_XmlLink_BeginTag & - i_rToken ) = 0; - virtual void Process_XmlLink_EndTag( - const Tok_XmlLink_EndTag & - i_rToken ) = 0; - virtual void Process_XmlFormat_BeginTag( - const Tok_XmlFormat_BeginTag & - i_rToken ) = 0; - virtual void Process_XmlFormat_EndTag( - const Tok_XmlFormat_EndTag & - i_rToken ) = 0; - virtual void Process_Word( - const Tok_Word & i_rToken ) = 0; - virtual void Process_Comma() = 0; - virtual void Process_DocuEnd() = 0; - virtual void Process_EOL() = 0; - virtual void Process_White() = 0; -}; - - - -// IMPLEMENTATION - - -} // namespace dsapi -} // namespace csi - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx deleted file mode 100644 index be7d7726..00000000 --- a/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * 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 - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef DSAPI_TOKRECV_HXX -#define DSAPI_TOKRECV_HXX - -// USED SERVICES - // BASE CLASSES - // COMPONENTS - // PARAMETERS - -namespace csi -{ -namespace dsapi -{ - - -class Token; -/** -@descr -*/ -class Token_Receiver -{ - public: - virtual ~Token_Receiver() {} - virtual void Receive( - DYN Token & let_drToken ) = 0; - virtual void Increment_CurLine() = 0; -}; - - -} // namespace dsapi -} // namespace csi - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |