diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-06-04 15:47:31 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-06-04 15:47:31 +0000 |
commit | c60ba8c007d730f9553e50b70de5696632166392 (patch) | |
tree | 12e20440c86363994fe77fc4aad4dce3f1dd623e /autodoc/inc | |
parent | 4fbb6a8a259b4b3203e5d7d9272531e2ca8bc308 (diff) |
CWS-TOOLING: integrate CWS cmcfixes59
2009-05-18 10:10:11 +0200 cmc r272001 : #i102012# remove extensions warnings, and set as warnings-free
2009-05-16 17:29:59 +0200 cmc r271981 : #i101990# silence warning, logic is unchanged
2009-05-16 17:13:59 +0200 cmc r271980 : #i100412 remove warning, logic is unchanged
2009-05-16 17:08:57 +0200 cmc r271979 : #i100412 remove warning, logic is unchanged, matches comments for intent
2009-05-16 17:01:08 +0200 cmc r271978 : #i86576# remove uncallable code
2009-05-16 15:41:46 +0200 cmc r271977 : #i101988# fix up consts for warning-free
Diffstat (limited to 'autodoc/inc')
40 files changed, 5 insertions, 2053 deletions
diff --git a/autodoc/inc/ary/adoc/a_docuaccess.hxx b/autodoc/inc/ary/adoc/a_docuaccess.hxx deleted file mode 100644 index dc386b51529c..000000000000 --- a/autodoc/inc/ary/adoc/a_docuaccess.hxx +++ /dev/null @@ -1,194 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: a_docuaccess.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_ADOC_DOCUACCESS_HXX -#define ARY_ADOC_DOCUACCESS_HXX - - - -// USED SERVICES - // BASE CLASSES - // OTHER -#include <ary/doc/d_hypertext.hxx> - - -namespace ary -{ -namespace doc -{ - class Documentation; - class NamedList; - class Struct; -} -} - - -namespace ary -{ -namespace adoc -{ - -enum E_LifeCycle -{ - lc_unkown, - lc_owned, - lc_extern, - lc_refcounted -}; - - -class TypeNameReceiver; - - - -/** Semantic access to a documentation whose content follows the rules of - autodoc standard documentation. -*/ -class DocuAccess -{ - public: - enum E_TagId - { - ti_none = 0, - - ti_attention, - ti_author, - ti_base, - ti_change, - ti_collab, - ti_deprecated, - ti_derive, - ti_descr, - ti_docdate, - ti_exception, - ti_instance, - ti_internal, - ti_invariant, - ti_key, - ti_life, - ti_multi, - ti_onerror, - ti_param, - ti_persistence, - ti_postcond, - ti_precond, - ti_published, - ti_resp, - ti_return, - ti_returns, - ti_see, - ti_short, - ti_since, - ti_summary, - ti_throws, - ti_todo, - ti_tpl, - ti_version, - ti_ATTENTION, - ti_UnknownAtTag, - ti_DocuReference, - ti_NVI, - - ti_extra, /// Tag that is not known. - - ti_MAX /// Keep this the highest value. - }; - - explicit DocuAccess( - ary::doc::Documentation * - io_docu = 0 ); - ary::doc::Documentation * - Assign_Container( /// @return Previously assigned container. - ary::doc::Documentation * - io_docu ); - ary::doc::Documentation * - Release_Container(); - - void Set_Deprecated(); - void Set_Internal(); - void Set_Published(); - - ary::doc::HyperText & - Add_Description(); - - ary::doc::HyperText & - Add_StdTag( - E_TagId i_tag ); - ary::doc::HyperText & - Add_base( - const String & i_baseTypeName ); - ary::doc::HyperText & - Add_collab( - const String & i_partner ); - ary::doc::HyperText & - Add_key( - const String & i_keyWord ); - ary::doc::HyperText & - Add_param( - const String & i_parameterName, - const String & i_validRange ); - ary::doc::HyperText & - Add_see( - const String & i_referencedEntity ); - ary::doc::HyperText & - Add_since( - const String & i_versionId, - const String & i_fullVersionText ); - ary::doc::HyperText & - Add_throws( - const String & i_exceptionName ); - ary::doc::HyperText & - Add_tpl( - const String & i_templateParameter ); - ary::doc::HyperText & - Add_ExtraTag( - const String & i_tagName ); - ary::doc::HyperText & - Add_TagWithMissingParameter( - E_TagId i_tag ); - - private: - ary::doc::Struct & Data(); - ary::doc::Struct & Get_Data(); - ary::doc::NamedList & - Get_List( - E_TagId i_tag ); - // DATA - ary::doc::Documentation * - pContainer; - ary::doc::Struct * pData; -}; - - - - -} // namespace adoc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/cpp/c_class.hxx b/autodoc/inc/ary/cpp/c_class.hxx index f093270ec050..491b166ea7a5 100644 --- a/autodoc/inc/ary/cpp/c_class.hxx +++ b/autodoc/inc/ary/cpp/c_class.hxx @@ -89,7 +89,6 @@ class Class : public CodeEntity, // LIFECYCLE - Class(); Class( const String & i_sLocalName, Ce_id i_nOwner, @@ -189,9 +188,6 @@ class Class : public CodeEntity, CIterator_Locals PosOfName( const List_LocalCe& i_rList, const String & i_sName ) const; - Iterator_Locals PosOfName( - List_LocalCe & io_rList, - const String & i_sName ); // DATA CeEssentials aEssentials; node_t aAssignedNode; diff --git a/autodoc/inc/ary/cpp/c_define.hxx b/autodoc/inc/ary/cpp/c_define.hxx index cbc62f4dece7..9322b641b7d3 100644 --- a/autodoc/inc/ary/cpp/c_define.hxx +++ b/autodoc/inc/ary/cpp/c_define.hxx @@ -61,10 +61,6 @@ class Define : public DefineEntity i_definition, loc::Le_id i_declaringFile ); virtual ~Define(); - - // INQUIRY - void GetText( - csv::StreamStr & o_rText ) const; private: // Interface csv::ConstProcessorClient virtual void do_Accept( diff --git a/autodoc/inc/ary/cpp/c_enum.hxx b/autodoc/inc/ary/cpp/c_enum.hxx index ca65f9d35c56..41c291e05283 100644 --- a/autodoc/inc/ary/cpp/c_enum.hxx +++ b/autodoc/inc/ary/cpp/c_enum.hxx @@ -66,7 +66,6 @@ class Enum : public CodeEntity, }; // LIFECYCLE - Enum(); Enum( const String & i_sLocalName, Ce_id i_nOwner, diff --git a/autodoc/inc/ary/cpp/c_enuval.hxx b/autodoc/inc/ary/cpp/c_enuval.hxx index 216da3a915c8..0031eef09327 100644 --- a/autodoc/inc/ary/cpp/c_enuval.hxx +++ b/autodoc/inc/ary/cpp/c_enuval.hxx @@ -56,7 +56,6 @@ class EnumValue : public CodeEntity enum E_ClassId { class_id = 1006 }; // LIFECYCLE - EnumValue(); EnumValue( const String & i_sLocalName, Ce_id i_nOwner, diff --git a/autodoc/inc/ary/cpp/c_funct.hxx b/autodoc/inc/ary/cpp/c_funct.hxx index 038d086adeb8..cfcf48fb519c 100644 --- a/autodoc/inc/ary/cpp/c_funct.hxx +++ b/autodoc/inc/ary/cpp/c_funct.hxx @@ -60,7 +60,6 @@ class Function : public CodeEntity public: enum E_ClassId { class_id = 1004 }; - Function(); Function( const String & i_sLocalName, Ce_id i_nOwner, diff --git a/autodoc/inc/ary/cpp/c_macro.hxx b/autodoc/inc/ary/cpp/c_macro.hxx index d58e5edcfce8..a323543deec9 100644 --- a/autodoc/inc/ary/cpp/c_macro.hxx +++ b/autodoc/inc/ary/cpp/c_macro.hxx @@ -62,11 +62,6 @@ class Macro : public DefineEntity i_definition, loc::Le_id i_declaringFile ); ~Macro(); - // INQUIRY - void GetText( - csv::StreamStr & o_rText, - const StringVector & - i_rGivenArguments ) const; const StringVector & Params() const { return aParams; } private: diff --git a/autodoc/inc/ary/cpp/c_osigna.hxx b/autodoc/inc/ary/cpp/c_osigna.hxx index a4b2e78a0c36..5ae9ae834804 100644 --- a/autodoc/inc/ary/cpp/c_osigna.hxx +++ b/autodoc/inc/ary/cpp/c_osigna.hxx @@ -60,7 +60,6 @@ class OperationSignature public: typedef std::vector<Type_id> ParameterTypeList; - OperationSignature(); OperationSignature( ParameterTypeList i_parameterTypes, // Non const, because it will be swapped with aParameterTypes. E_ConVol i_conVol ); diff --git a/autodoc/inc/ary/cpp/c_traits.hxx b/autodoc/inc/ary/cpp/c_traits.hxx index 51eb09027816..94bc28577e15 100644 --- a/autodoc/inc/ary/cpp/c_traits.hxx +++ b/autodoc/inc/ary/cpp/c_traits.hxx @@ -67,9 +67,6 @@ struct Ce_Traits static entity_base_type & EntityOf_( id_type i_id ); - static id_type IdOf_( - const entity_base_type & - i_entity ); }; @@ -86,10 +83,6 @@ struct CeNode_Traits : public Ce_Traits static symtree::Node<CeNode_Traits> * NodeOf_( entity_base_type & i_entity ); - static const String & - LocalNameOf_( - const entity_base_type & - i_entity ); static entity_base_type * ParentOf_( const entity_base_type & @@ -148,9 +141,6 @@ struct Def_Traits static entity_base_type & EntityOf_( id_type i_id ); - static id_type IdOf_( - const entity_base_type & - i_entity ); }; @@ -181,9 +171,6 @@ struct Type_Traits static entity_base_type & EntityOf_( id_type i_id ); - static id_type IdOf_( - const entity_base_type & - i_entity ); }; /** An instance of COMPARE for ->::ary::SortedIds<>. diff --git a/autodoc/inc/ary/cpp/c_tydef.hxx b/autodoc/inc/ary/cpp/c_tydef.hxx index d29dc9e901a5..6bbd6eddcbd8 100644 --- a/autodoc/inc/ary/cpp/c_tydef.hxx +++ b/autodoc/inc/ary/cpp/c_tydef.hxx @@ -56,7 +56,6 @@ class Typedef : public CodeEntity // LIFECYCLE enum E_ClassId { class_id = 1003 }; - Typedef(); Typedef( const String & i_sLocalName, Ce_id i_nOwner, diff --git a/autodoc/inc/ary/cpp/c_vari.hxx b/autodoc/inc/ary/cpp/c_vari.hxx index d5a5445f67d4..c8a5e0537fba 100644 --- a/autodoc/inc/ary/cpp/c_vari.hxx +++ b/autodoc/inc/ary/cpp/c_vari.hxx @@ -56,7 +56,6 @@ class Variable : public CodeEntity // LIFECYCLE enum E_ClassId { class_id = 1005 }; - Variable(); Variable( const String & i_sLocalName, Ce_id i_nOwner, diff --git a/autodoc/inc/ary/cpp/usedtype.hxx b/autodoc/inc/ary/cpp/usedtype.hxx index f66537c541c5..8df1f106f468 100644 --- a/autodoc/inc/ary/cpp/usedtype.hxx +++ b/autodoc/inc/ary/cpp/usedtype.hxx @@ -81,8 +81,6 @@ class UsedType : public Type const char * i_sSeg ); ut::List_TplParameter & Enter_Template(); - void LeaveTemplate(); - void Set_Unsigned(); void Set_Signed(); void Set_BuiltIn( @@ -191,12 +189,6 @@ class List_TplParameter void AddParam_Type( Type_id i_nType ); - void AddParam_Constant( - const String & i_sConst ); - - const_iterator Begin() const; - const_iterator End() const; - /// puts "< " TemplateArgumentList " >" to o_rOut. void Get_Text( StreamStr & o_rOut, diff --git a/autodoc/inc/ary/doc/d_docu.hxx b/autodoc/inc/ary/doc/d_docu.hxx index 426ab06900c6..11a9c6533029 100644 --- a/autodoc/inc/ary/doc/d_docu.hxx +++ b/autodoc/inc/ary/doc/d_docu.hxx @@ -53,8 +53,6 @@ class Documentation : public csv::ConstProcessorClient { public: Documentation(); - explicit Documentation( - DYN Node & pass_data); ~Documentation(); // OPERATIONS void Clear(); diff --git a/autodoc/inc/ary/doc/d_hypertext.hxx b/autodoc/inc/ary/doc/d_hypertext.hxx deleted file mode 100644 index e8ddb49ddf2c..000000000000 --- a/autodoc/inc/ary/doc/d_hypertext.hxx +++ /dev/null @@ -1,64 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: d_hypertext.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_D_HYPERTEXT_HXX -#define ARY_DOC_D_HYPERTEXT_HXX - -// USED SERVICES -#include <ary/doc/ht/dht_component.hxx> - -namespace csv -{ - class ProcessorIfc; -} - - - - -namespace ary -{ -namespace doc -{ - - -typedef std::vector<ht::Component> HyperText; - -void Accept( - const HyperText & i_text, - csv::ProcessorIfc & io_processor ); - -const HyperText & NullText(); - - - - -} // namspace doc -} // namspace ary -#endif diff --git a/autodoc/inc/ary/doc/d_namedlist.hxx b/autodoc/inc/ary/doc/d_namedlist.hxx deleted file mode 100644 index c60c847b3a8c..000000000000 --- a/autodoc/inc/ary/doc/d_namedlist.hxx +++ /dev/null @@ -1,116 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: d_namedlist.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_D_NAMEDLIST_HXX -#define ARY_DOC_D_NAMEDLIST_HXX - -// BASE CLASSES -#include <ary/doc/d_node.hxx> - -// USED SERVICES - - - - -namespace ary -{ -namespace doc -{ - - -/** Represents a list of documentation elements of the same type, which - are accessible by their names as a key. - - Actually it is not necessary (by the interface of the class) that - all elements have the same type, but that is its intended purpose - and other uses should be carefully reconsidered. - - @example - Elements could be for example a list of base classes or parameters - which are just a list on one hand, but may be accessed via the name - of the base class/parameter as well. - -*/ -class NamedList : public Node -{ - public: - enum E_HandleDuplicateNames - { - hdn_normal = 0, - hdn_put_together, - hdn_keep_only_first - }; - - // LIFECYCLE - explicit NamedList( - nodetype::id i_id ); - virtual ~NamedList(); - - // OPERATORS - const Node * operator[]( - const String & i_name ) const; - // OPERATIONS - /** When Node name already exists, the new ->Node is discarded. - */ - void Add_Node( - const String & i_name, - DYN Node & pass_Element, - E_HandleDuplicateNames - eHandleDuplicateNames = hdn_normal ); - private: - // Interface csv::ConstProcessorClient: - virtual void do_Accept( - csv::ProcessorIfc & io_processor ) const; - // Locals - void AddNode_normal( - const String & i_name, - DYN Node & pass_Element ); - void AddNode_put_together( - const String & i_name, - DYN Node & pass_Element ); - void AddNode_keep_only_first( - const String & i_name, - DYN Node & pass_Element ); - - // DATA - /** aNames is built exactly parallel to ->aElements. Each - element of aNames contains the key to the corresponding - ->Node in ->aElements. - */ - StringVector aNames; - NodeList aElements; -}; - - - - -} // doc -} // ary -#endif diff --git a/autodoc/inc/ary/doc/d_oldcppdocu.hxx b/autodoc/inc/ary/doc/d_oldcppdocu.hxx index dbeceb2afce3..33f15663a2f3 100644 --- a/autodoc/inc/ary/doc/d_oldcppdocu.hxx +++ b/autodoc/inc/ary/doc/d_oldcppdocu.hxx @@ -100,8 +100,6 @@ class OldCppDocu : public Node virtual bool IsInternal() const; virtual bool IsInterface() const; - static const OldCppDocu & - Null_(); private: // Interface csv::ConstProcessorClient: virtual void do_Accept( diff --git a/autodoc/inc/ary/doc/d_parametrized.hxx b/autodoc/inc/ary/doc/d_parametrized.hxx index 9938a099a35b..93337794ebfb 100644 --- a/autodoc/inc/ary/doc/d_parametrized.hxx +++ b/autodoc/inc/ary/doc/d_parametrized.hxx @@ -34,11 +34,6 @@ // USED SERVICES // BASE CLASSES #include <ary/doc/d_node.hxx> - // OTHER -#include <ary/doc/d_hypertext.hxx> - - - namespace ary { diff --git a/autodoc/inc/ary/doc/d_struct.hxx b/autodoc/inc/ary/doc/d_struct.hxx deleted file mode 100644 index fd803234aa70..000000000000 --- a/autodoc/inc/ary/doc/d_struct.hxx +++ /dev/null @@ -1,90 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: d_struct.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_D_STRUCT_HXX -#define ARY_DOC_D_STRUCT_HXX - -// USED SERVICES - // BASE CLASSES -#include <ary/doc/d_node.hxx> - - - - -namespace ary -{ -namespace doc -{ - - -/** Represents a documentation structure whose elements - are accessible by a slot id. - - @attention - Maximum possible number of slots is 254. -*/ -class Struct : public Node -{ - public: - typedef nodetype::id slot_id; - - // LIFECYCLE - explicit Struct( - nodetype::id i_type ); - virtual ~Struct(); - - // OPERATIONS - /** Sorts the new node into the right slot. - - @return pass_node - */ - Node & Add_Node( - DYN Node & pass_node ); - - // INQUIRY - const Node * Slot( - slot_id i_slot ) const; - // ACCESS - Node * Slot( - slot_id i_slot ); - private: - // Interface csv::ConstProcessorClient: - virtual void do_Accept( - csv::ProcessorIfc & io_processor ) const; - // DATA - NodeList aElements; -}; - - - - -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/d_summary.hxx b/autodoc/inc/ary/doc/d_summary.hxx deleted file mode 100644 index 12ea12de8f2f..000000000000 --- a/autodoc/inc/ary/doc/d_summary.hxx +++ /dev/null @@ -1,110 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: d_summary.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_D_SUMMARY_HXX -#define ARY_DOC_D_SUMMARY_HXX - -// BASE CLASSES -#include <ary/doc/d_node.hxx> -// USED SERVICES -#include <ary/doc/d_hypertext.hxx> - - - - -namespace ary -{ -namespace doc -{ - - -/** The summary of a documentation block. - - The summary can be: - - the first paragraph of a description (standard), - which should be contained within 2 lines, - - else the first three lines of the description followed by a "(...)". - - If there is no description, first the @return unit will be chosen, if - both are not there, the @resp unit, else the first unit of the docu. - - With an explicit @summary unit the summary can be forced to be longer than - 3 lines. -*/ -class Summary : public Node -{ - public: - // LIFECYCLE - Summary( - nodetype::id i_slot ); - virtual ~Summary(); - - // INQUIRY - const HyperText & Text() const; - bool IsComplete() const; - nodetype::id Origin() const; - - // ACESS - void Set( - const HyperText & i_text, - bool i_isIncomplete, - nodetype::id i_origin ); - private: - // Interface csv::ConstProcessorClient: - virtual void do_Accept( - csv::ProcessorIfc & io_processor ) const; - // DATA - const HyperText * pText; - bool bIncomplete; - nodetype::id nOrigin; /// For example from: description, @return, @responsibility. -}; - - - - -// IMPLEMENTATION -inline bool -Summary::IsComplete() const -{ - return bIncomplete; -} - -inline nodetype::id -Summary::Origin() const -{ - return nOrigin; -} - - - - -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/d_unit.hxx b/autodoc/inc/ary/doc/d_unit.hxx deleted file mode 100644 index 3d1894375ab4..000000000000 --- a/autodoc/inc/ary/doc/d_unit.hxx +++ /dev/null @@ -1,99 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: d_unit.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_D_UNIT_HXX -#define ARY_DOC_D_UNIT_HXX - -// BASE CLASSES -#include <ary/doc/d_node.hxx> - -// USED SERVICES -#include <ary/doc/d_hypertext.hxx> - - - - -namespace ary -{ -namespace doc -{ - - -/** A documentation with a title and a text. - - @example - ReturnValue - The number of items counted. -*/ -class Unit : public Node -{ - public: - - // LIFECYCLE - explicit Unit( - nodetype::id i_id ); - virtual ~Unit(); - - // INQUIRY - const HyperText & Doc() const; - - // ACESS - HyperText & Doc(); - - private: - // Interface csv::ConstProcessorClient: - virtual void do_Accept( - csv::ProcessorIfc & io_processor ) const; - // DATA - HyperText aDoc; -}; - - - - -// IMPLEMENTATION -inline const HyperText & -Unit::Doc() const -{ - return aDoc; -} - -inline HyperText & -Unit::Doc() -{ - return aDoc; -} - - - - -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_component.hxx b/autodoc/inc/ary/doc/ht/dht_component.hxx deleted file mode 100644 index 60a7e6c49a7a..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_component.hxx +++ /dev/null @@ -1,99 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_component.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_COMPONENT_HXX -#define ARY_DHT_COMPONENT_HXX - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Interpreter; - class Processor; - - -/** Interface for components of a ->HyperText. - - This may be a text, whitespace or link etc. -*/ -class Component -{ - // COPYABLE - public: - Component(); - explicit Component( - const Interpreter & i_interpreter ); - Component( - const Interpreter & i_interpreter, - const String & i_data ); - ~Component(); - - void Accept( - Processor & io_processor ) const; - - const Interpreter & AssociatedInterpreter() const; - const String & Data() const; - - private: - // DATA - String aData; - const Interpreter * pInterpreter; -}; - - - - -// IMPLEMENTATION - -inline const Interpreter & -Component::AssociatedInterpreter() const -{ - csv_assert(pInterpreter != 0); - return *pInterpreter; -} - -inline const String & -Component::Data() const -{ - return aData; -} - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_html.hxx b/autodoc/inc/ary/doc/ht/dht_html.hxx deleted file mode 100644 index d00c684ac516..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_html.hxx +++ /dev/null @@ -1,75 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_html.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_HTML_HXX -#define ARY_DHT_HTML_HXX -// KORR_DEPRECATED_3.0 -// There will be only one kind of documentation in the future -// that gracefully recognizes HTML, but also does simple formatting -// without it. - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** Documentation text in HTML format. -*/ -class HtmlText : public Interpreter -{ - public: - virtual ~HtmlText(); - - static Component Create_Component_( - const String & i_text ); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_link2ce.hxx b/autodoc/inc/ary/doc/ht/dht_link2ce.hxx deleted file mode 100644 index 4329fcf3ad5d..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_link2ce.hxx +++ /dev/null @@ -1,76 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_link2ce.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_DHT_LINK2CE_HXX -#define ARY_DOC_DHT_LINK2CE_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** Link to an ->::ary::Entity. -*/ -class Link2Ce : public Interpreter -{ - public: - virtual ~Link2Ce(); - - static Component Create_Component_( - const String & i_ceAbsolutePath, - const String & i_display ); - static void Resolve_( - String & o_absolutePath, - String & o_display, - const String & i_data); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_link2param.hxx b/autodoc/inc/ary/doc/ht/dht_link2param.hxx deleted file mode 100644 index 07906ac4d089..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_link2param.hxx +++ /dev/null @@ -1,74 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_link2param.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_LINK2PARAM_HXX -#define ARY_DHT_LINK2PARAM_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - -// USED SERVICES - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** Interpretes a link to a parameter of the just described function. -*/ -class Link2Param : public Interpreter -{ - public: - virtual ~Link2Param(); - - static Component Create_Component_( - const String & i_parameterName, - const String & i_display ); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_link2unknown.hxx b/autodoc/inc/ary/doc/ht/dht_link2unknown.hxx deleted file mode 100644 index ec6ed3d88d05..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_link2unknown.hxx +++ /dev/null @@ -1,79 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_link2unknown.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_LINK2UNKNOWN_HXX -#define ARY_DHT_LINK2UNKNOWN_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - -// USED SERVICES - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** Interpretes a link in documentation to a yet unknown target. -*/ -class Link2Unknown : public Interpreter -{ - public: - virtual ~Link2Unknown(); - - static Component Create_Component_( - const String & i_typeText, - const String & i_display ); - static void Resolve_( - String & o_typeText, - String & o_display, - const String & i_data); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_link2url.hxx b/autodoc/inc/ary/doc/ht/dht_link2url.hxx deleted file mode 100644 index e153fc0c9fde..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_link2url.hxx +++ /dev/null @@ -1,79 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_link2url.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_LINK2URL_HXX -#define ARY_DHT_LINK2URL_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - -// USED SERVICES - - - - -namespace ary -{ -namespace doc -{ -namespace ht // Hypertext -{ - class Component; - - - -/** Interpretes a html link within a documentation text. -*/ -class Link2Url : public Interpreter -{ - public: - virtual ~Link2Url(); - - static Component Create_Component_( - const String & i_url, - const String & i_display ); - static void Resolve_( - String & o_url, - String & o_display, - const String & i_data); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_plain.hxx b/autodoc/inc/ary/doc/ht/dht_plain.hxx index 7ce9cf29a159..8b137891791f 100644 --- a/autodoc/inc/ary/doc/ht/dht_plain.hxx +++ b/autodoc/inc/ary/doc/ht/dht_plain.hxx @@ -1,71 +1 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_plain.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_PLAIN_HXX -#define ARY_DHT_PLAIN_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** Documentation text, simple ASCII. -*/ -class PlainText : public Interpreter -{ - public: - virtual ~PlainText(); - - static Component Create_Component_( - const String & i_text ); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_processor.hxx b/autodoc/inc/ary/doc/ht/dht_processor.hxx deleted file mode 100644 index f324aa967e33..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_processor.hxx +++ /dev/null @@ -1,220 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_processor.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_PROCESSOR_HXX -#define ARY_DHT_PROCESSOR_HXX - -// BASE CLASSES -#include <cosv/tpl/processor.hxx> - -// USED SERVICES -#include <ary/doc/d_hypertext.hxx> - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class PlainText; - class HtmlText; - - class Link2Ce; - class Link2Url; - class Link2Unknown; - class Link2Param; - - class Blank; - class Indentation; - class NewParagraph; - class SummarySeparator; - - -/** Interface for processing {->Component}s of a ->HyperText with - the visitor pattern. -*/ -class Processor : public csv::ProcessorIfc, - public csv::ConstProcessor<HyperText> -{ - public: - virtual ~Processor() {} - - using csv::ConstProcessor<HyperText>::Process; - - // Texts - void Process( - const PlainText & i_interpreter, - const String & i_data ); - void Process( - const HtmlText & i_interpreter, - const String & i_data ); - // Links - void Process( - const Link2Ce & i_interpreter, - const String & i_data ); - void Process( - const Link2Url & i_interpreter, - const String & i_data ); - void Process( - const Link2Unknown & - i_interpreter, - const String & i_data ); - void Process( - const Link2Param & i_interpreter, - const String & i_data ); - // Explicit Whitespace - void Process( - const Blank & i_interpreter ); - void Process( - const Indentation & i_interpreter, - const String & i_data ); - void Process( - const NewParagraph & - i_interpreter ); - void Process( - const SummarySeparator & - i_interpreter ); - private: - // Interface csv::ConstProcessor<HyperText>: - virtual void do_Process( - const HyperText & i_cient ); - // Locals - virtual void do_Process( - const PlainText & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const HtmlText & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const Link2Ce & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const Link2Url & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const Link2Unknown & - i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const Link2Param & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const Blank & i_interpreter ) = 0; - virtual void do_Process( - const Indentation & i_interpreter, - const String & i_data ) = 0; - virtual void do_Process( - const NewParagraph & - i_interpreter ) = 0; - virtual void do_Process( - const SummarySeparator & - i_interpreter ) = 0; -}; - - - -// IMPLEMENTATION -inline void -Processor::Process( const PlainText & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const HtmlText & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const Link2Ce & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const Link2Url & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const Link2Unknown & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const Link2Param & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const Blank & i_interpreter ) -{ - do_Process(i_interpreter); -} - -inline void -Processor::Process( const Indentation & i_interpreter, - const String & i_data ) -{ - do_Process(i_interpreter, i_data); -} - -inline void -Processor::Process( const NewParagraph & i_interpreter ) -{ - do_Process(i_interpreter); -} - -inline void -Processor::Process( const SummarySeparator & i_interpreter ) -{ - do_Process(i_interpreter); -} - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_stream.hxx b/autodoc/inc/ary/doc/ht/dht_stream.hxx deleted file mode 100644 index b45d7d7692b8..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_stream.hxx +++ /dev/null @@ -1,166 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_stream.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DOC_DHT_STREAM_HXX -#define ARY_DOC_DHT_STREAM_HXX - -// USED SERVICES -#include <ary/doc/d_hypertext.hxx> - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Stream; - - -typedef void (* F_StreamModifier)(Stream&); - -/// Causes the buffer in ->io_stream to be flushed. -void flush( - Stream & io_stream ); -/// Adds a newline. -void newline( - Stream & io_stream ); -/// Adds a single blank char. -void blank( - Stream & io_stream ); -/// Modifies ->Stream to plain text mode. -void plain( - Stream & io_stream ); -/// Modifies ->Stream to html text mode. -void html( - Stream & io_stream ); - - - - -/** Interface to write items into a ->HyperText. - - Text can be intepreted as plain ASCII or as HTML. The default - is plain ASCII. - Also you can add links and can specify the link's label. - If no label is provided for a link, the most specific part of the - link's name will be used. - - - @example - using ary::doc::HyperText; - using ary::doc::ht::Stream; - - Stream aWriter; - HyperText aText; - StreamGuard aGuard(aWriter,aText); - - Ce_id nId = i_ceid; - aWriter << "Hello," << newline; - aWriter.Add_Link2Ce(GetAbsolutePath(nId), "SomeCodeEntity") - aWriter << " will be transfered." << newline; - aWriter Add_Link2Param("io_someParameter"); - aWriter << " shows something else." - << flush; -*/ -class Stream -{ - NON_COPYABLE(Stream); - - public: - /// Marks the mode how documentation text is interpreted. - enum E_TextMode - { - tm_plain, - tm_html - }; - - Stream( - HyperText & o_Receiver, - E_TextMode i_initialTextMode = tm_plain); - /// Also flushes the stream to the connected ->HyperText, if any. - virtual ~Stream(); - - Stream & operator<<( - F_StreamModifier i_modifier ); - /// Inserts text. - Stream & operator<<( - const char * i_text ); - /// Inserts text. - Stream & operator<<( - const String & i_text ); - - void Add_Indentation( - uintt i_count ); - - void Add_Link2Ce( - const String & i_absolutePath, - const String & i_display = String::Null_() ); - void Add_Link2Unknown( - const String & i_type, - const String & i_display = String::Null_() ); - void Add_Link2Url( - const String & i_url, - const String & i_display = String::Null_() ); - void Add_Link2Param( - const String & i_parameter, - const String & i_display = String::Null_() ); - - E_TextMode CurrentMode() const; - - private: - friend void flush(Stream&); - friend void newline(Stream&); - friend void blank(Stream&); - friend void plain(Stream&); - friend void html(Stream&); - - // Locals - typedef void (Stream::*F_TextFlusher)(); - - void Flush(); - void PlainTextFlusher(); - void HtmlTextFlusher(); - - HyperText & Out(); - - // DATA - HyperText & mrOut; - F_TextFlusher mfCurTextFlusher; - StreamStr mText; -}; - - - -} // namspace ht -} // namspace doc -} // namspace ary -#endif diff --git a/autodoc/inc/ary/doc/ht/dht_white.hxx b/autodoc/inc/ary/doc/ht/dht_white.hxx deleted file mode 100644 index b57f857f6ff4..000000000000 --- a/autodoc/inc/ary/doc/ht/dht_white.hxx +++ /dev/null @@ -1,122 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: dht_white.hxx,v $ - * $Revision: 1.3 $ - * - * 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 ARY_DHT_WHITE_HXX -#define ARY_DHT_WHITE_HXX - -// BASE CLASSES -#include <ary/doc/ht/dht_interpreter.hxx> - - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - class Component; - - -/** One blank character in documentation text. -*/ -class Blank : public Interpreter -{ - public: - virtual ~Blank(); - - static Component Create_Component_(); - - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - -/** New paragraph in documentation text. -*/ -class NewParagraph : public Interpreter -{ - public: - virtual ~NewParagraph(); - - static Component Create_Component_(); - - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - -/** An indentation, beginning a line, in documentation text. -*/ -class Indentation : public Interpreter -{ - public: - virtual ~Indentation(); - - static Component Create_Component_( - uintt i_size ); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - -/** The point where the first paragraph ends. Needed, if this text - has to work as a summary for containing the documentation block. -*/ -class SummarySeparator: public Interpreter -{ - public: - virtual ~SummarySeparator(); - - static Component Create_Component_( - bool i_interrupted ); - private: - // Interface Interpreter: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - - - - -} // namespace ht -} // namespace doc -} // namespace ary -#endif diff --git a/autodoc/inc/ary/idl/i_module.hxx b/autodoc/inc/ary/idl/i_module.hxx index a0a5ec370c56..0f38d6cd057b 100644 --- a/autodoc/inc/ary/idl/i_module.hxx +++ b/autodoc/inc/ary/idl/i_module.hxx @@ -77,8 +77,6 @@ class Module : public CodeEntity const String & i_sName, Ce_id i_nId ); // INQUIRY - /// @return 0 for the global namespace, +1 for each level below the global namespace. - intt Depth() const; Ce_id Search_Name( const String & i_sName ) const; void Get_Names( diff --git a/autodoc/inc/ary/idl/i_namelookup.hxx b/autodoc/inc/ary/idl/i_namelookup.hxx index fd09fb151828..5d5db55ed832 100644 --- a/autodoc/inc/ary/idl/i_namelookup.hxx +++ b/autodoc/inc/ary/idl/i_namelookup.hxx @@ -85,17 +85,6 @@ class NameLookup Ce_id i_id, ClassId i_class, Ce_id i_owner ); - // INQUIRY - /** - */ - bool Has_Name( - const String & i_name, - ClassId i_class, - Ce_id i_owner ) const; - void Get_Names( - Dyn_StdConstIterator<Map_Names::value_type> & - o_rResult, - const String & i_name ) const; private: // DATA Map_Names aNames; diff --git a/autodoc/inc/ary/idl/i_param.hxx b/autodoc/inc/ary/idl/i_param.hxx index 2ba9f3430d0c..260ab454cab0 100644 --- a/autodoc/inc/ary/idl/i_param.hxx +++ b/autodoc/inc/ary/idl/i_param.hxx @@ -49,7 +49,6 @@ class Parameter { public: // LIFECYCLE - Parameter(); Parameter( const String & i_sName, Type_id i_nType, diff --git a/autodoc/inc/ary/idl/i_traits.hxx b/autodoc/inc/ary/idl/i_traits.hxx index 02badaa97d9a..eac0acfc5c99 100644 --- a/autodoc/inc/ary/idl/i_traits.hxx +++ b/autodoc/inc/ary/idl/i_traits.hxx @@ -53,9 +53,6 @@ struct Ce_Traits static entity_base_type & EntityOf_( id_type i_id ); - static id_type IdOf_( - const entity_base_type & - i_entity ); }; diff --git a/autodoc/inc/ary/loc/loc_dir.hxx b/autodoc/inc/ary/loc/loc_dir.hxx index e84632d48329..c6df9171718c 100644 --- a/autodoc/inc/ary/loc/loc_dir.hxx +++ b/autodoc/inc/ary/loc/loc_dir.hxx @@ -82,8 +82,6 @@ class Directory : public LocationEntity Le_id Parent() const; Le_id AssignedRoot() const; - Le_id Search_Child( - const String & i_name ) const; Le_id Search_Dir( const String & i_name ) const; Le_id Search_File( diff --git a/autodoc/inc/ary/loc/loc_filebase.hxx b/autodoc/inc/ary/loc/loc_filebase.hxx index 409cae7c3c0b..2f9d8e3c5dd5 100644 --- a/autodoc/inc/ary/loc/loc_filebase.hxx +++ b/autodoc/inc/ary/loc/loc_filebase.hxx @@ -52,8 +52,6 @@ class FileBase : public LocationEntity public: virtual ~FileBase() {} - String Extension() const; - protected: FileBase( const String & i_localName , diff --git a/autodoc/inc/ary/loc/loc_traits.hxx b/autodoc/inc/ary/loc/loc_traits.hxx index 11e1f01b8404..9a1306eafedf 100644 --- a/autodoc/inc/ary/loc/loc_traits.hxx +++ b/autodoc/inc/ary/loc/loc_traits.hxx @@ -66,9 +66,6 @@ struct Le_Traits static entity_base_type & EntityOf_( id_type i_id ); - static id_type IdOf_( - const entity_base_type & - i_entity ); }; @@ -81,10 +78,7 @@ struct LeNode_Traits : public Le_Traits static symtree::Node<LeNode_Traits> * NodeOf_( entity_base_type & i_entity ); - static const String & - LocalNameOf_( - const entity_base_type & - i_entity ); + static entity_base_type * ParentOf_( const entity_base_type & diff --git a/autodoc/inc/ary/segmentedname.hxx b/autodoc/inc/ary/segmentedname.hxx deleted file mode 100644 index 0988e9bdd930..000000000000 --- a/autodoc/inc/ary/segmentedname.hxx +++ /dev/null @@ -1,153 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: segmentedname.hxx,v $ - * $Revision: 1.4 $ - * - * 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 ARY_SEGMENTEDNAME_HXX -#define ARY_SEGMENTEDNAME_HXX - - -// USED SERVICES - // BASE CLASSES - // OTHER - - - -namespace ary -{ -namespace sn // segmented name -{ - -/** One segment in a name like "::global::abc<hello,xy>::def". - A segment being the part between "::"s. - - @collab implements ->SegmentedName -*/ -class NameSegment -{ - public: - explicit NameSegment( - const char * i_name ); - explicit NameSegment( - const String & i_name ); - NameSegment( - const NameSegment & i_segment ); - ~NameSegment(); - // OPERATORS - NameSegment & operator=( - const NameSegment & i_other ); - bool operator<( - const NameSegment & i_other ) const; - // OPERATIONS - String & Make_Template(); - - // INQUIRY - const String & Name() const; - const String * TemplateArguments() const; - - void Get_Text( - StreamStr & o_out ) const; - private: - // DATA - String sName; - Dyn<String> pTemplateArguments; -}; - - - -typedef std::vector<NameSegment> NameChain; - -} // namespace sn - - -/** A name of the form "::global::abc<hello,xy>::def". -*/ -class SegmentedName -{ - public: - explicit SegmentedName( - const char * i_text ); - explicit SegmentedName( - const String & i_text ); - ~SegmentedName(); - // OPERATIONS - bool operator<( - const SegmentedName & - i_other ) const; - - // INQUIRY - bool IsAbsolute() const; - const sn::NameChain & - Sequence() const; - - void Get_Text( - StreamStr & o_out ) const; - private: - void Interpret_Text( - const char * i_text ); /// [valid C++ or IDL name]. - - // DATA - sn::NameChain aSegments; - bool bIsAbsolute; -}; - - -// IMPLEMENTATION -namespace sn -{ - -inline const String & -NameSegment::Name() const -{ - return sName; -} - -inline const String * -NameSegment::TemplateArguments() const -{ - return pTemplateArguments.Ptr(); -} - -} // namespace sn - -inline bool -SegmentedName::IsAbsolute() const -{ - return bIsAbsolute; -} - -inline const sn::NameChain & -SegmentedName::Sequence() const -{ - return aSegments; -} - - - -} // namespace ary -#endif diff --git a/autodoc/inc/ary/symtreenode.hxx b/autodoc/inc/ary/symtreenode.hxx index c11210ce6369..f43605cd89b5 100644 --- a/autodoc/inc/ary/symtreenode.hxx +++ b/autodoc/inc/ary/symtreenode.hxx @@ -59,22 +59,19 @@ namespace symtree 1. static entity_base_type & EntityOf_( id_type i_id ); - 2. static id_type IdOf_( - const entity_base_type & - i_entity ); - 3. static symtree::Node<LeNode_Traits> * + 2. static symtree::Node<LeNode_Traits> * NodeOf_( const entity_base_type & i_entity ); - 4. static const String & + 3. static const String & LocalNameOf_( const entity_base_type & i_entity ); - 5. static entity_base_type * + 4. static entity_base_type * ParentOf_( const entity_base_type & i_entity ); - 6. template <class KEY> + 5. template <class KEY> static id_t Search_( const entity_base_type & i_entity, diff --git a/autodoc/inc/ary/x_ary.hxx b/autodoc/inc/ary/x_ary.hxx deleted file mode 100644 index dd1d61efbf5b..000000000000 --- a/autodoc/inc/ary/x_ary.hxx +++ /dev/null @@ -1,83 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: x_ary.hxx,v $ - * $Revision: 1.4 $ - * - * 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 ARY_X_ARY_HXX -#define ARY_X_ARY_HXX - - - - -// USED SERVICES - // BASE CLASSES -#include <cosv/x.hxx> - // OTHER - - - -namespace ary -{ - -class X_Ary : public csv::Exception -{ - public: - enum E_Event - { - x_Any, - x_MultipleRepository, - x_MissingRepository, - x_EntityNotFound, - x_ConflictingNames, - x_InvalidId, - x_UnexpectedTypeOfObject, - x_InvalidCast, - x_CorruptData - }; - - // LIFECYCLE - X_Ary( - E_Event i_eEvent ); - // INQUIRY - E_Event GetEvent() const; - virtual void GetInfo( - std::ostream & o_rOutputMedium ) const; - private: - E_Event eEvent; -}; - -// IMPLEMENTATION -inline X_Ary::E_Event -X_Ary::GetEvent() const - { return eEvent; } - - - - -} // namespace ary -#endif |