diff options
Diffstat (limited to 'autodoc/source/ary/doc')
20 files changed, 1 insertions, 1691 deletions
diff --git a/autodoc/source/ary/doc/d_docu.cxx b/autodoc/source/ary/doc/d_docu.cxx index f242c03c..868e8252 100644 --- a/autodoc/source/ary/doc/d_docu.cxx +++ b/autodoc/source/ary/doc/d_docu.cxx @@ -34,10 +34,6 @@ // NOT FULLY DEFINED SERVICES #include <ary/doc/d_node.hxx> -#include <ary/doc/d_hypertext.hxx> - - - namespace ary { @@ -49,11 +45,6 @@ Documentation::Documentation() { } -Documentation::Documentation(DYN Node & pass_data) - : pData(&pass_data) -{ -} - Documentation::~Documentation() { } diff --git a/autodoc/source/ary/doc/d_hypertext.cxx b/autodoc/source/ary/doc/d_hypertext.cxx deleted file mode 100644 index e61302ab..00000000 --- a/autodoc/source/ary/doc/d_hypertext.cxx +++ /dev/null @@ -1,82 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/d_hypertext.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <cosv/tpl/funcall.hxx> -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> - - -namespace ary -{ -namespace doc -{ - - - -void -Accept( const HyperText & i_text, - csv::ProcessorIfc & io_processor ) -{ - csv::CheckedCall(io_processor, i_text); -} - - -namespace ht -{ - -void -Processor::do_Process( const HyperText & i_client ) -{ - csv::for_each_in( i_client, - csv::make_func(&Component::Accept, *this) ); -} - - -} // namespace ht - - - - -const HyperText & -NullText() -{ - static const HyperText aNullText_; - return aNullText_; -} - - - -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/d_namedlist.cxx b/autodoc/source/ary/doc/d_namedlist.cxx deleted file mode 100644 index e1e7f4c3..00000000 --- a/autodoc/source/ary/doc/d_namedlist.cxx +++ /dev/null @@ -1,148 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/d_namedlist.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <algorithm> - - - -namespace ary -{ -namespace doc -{ - - -typedef StringVector::const_iterator name_const_iterator; -typedef StringVector::iterator name_iterator; -typedef NodeList::iterator node_iterator; - - -NamedList::NamedList(nodetype::id i_id) - : Node(i_id), - aNames(), - aElements() -{ -} - -NamedList::~NamedList() -{ -} - -const Node * -NamedList::operator[](const String & i_name) const -{ - name_const_iterator - itFound = std::find(aNames.begin(), aNames.end(), i_name); - if (itFound != aNames.end()) - return & aElements[itFound - aNames.begin()]; - return 0; -} - -void -NamedList::Add_Node( const String & i_name, - DYN Node & pass_Element, - E_HandleDuplicateNames eHandleDuplicateNames ) -{ - switch (eHandleDuplicateNames) - { - case hdn_normal: - AddNode_normal(i_name,pass_Element); - break; - case hdn_put_together: - AddNode_put_together(i_name,pass_Element); - break; - case hdn_keep_only_first: - AddNode_keep_only_first(i_name,pass_Element); - break; - default: - csv_assert(false); - } -} - -void -NamedList::AddNode_normal( const String & i_name, - DYN Node & pass_Element ) -{ - aNames.push_back(i_name); - aElements.push_back(pass_Element); -} - -void -NamedList::AddNode_put_together( const String & i_name, - DYN Node & pass_Element ) -{ - name_iterator - itFound = std::find(aNames.begin(), aNames.end(), i_name); - if (itFound == aNames.end()) - { - AddNode_normal(i_name, pass_Element); - return; - } - - // Find position after last equal name: - for ( ++itFound; - itFound != aNames.end() - ? *itFound == i_name - : false; - ++itFound ) {} - - // Calculate same position in aElements: - node_iterator - itElem = aElements.begin() + (itFound - aNames.begin()); - - aNames.insert(itFound, i_name); - aElements.insert(itElem, pass_Element); -} - -void -NamedList::AddNode_keep_only_first( const String & i_name, - DYN Node & pass_Element ) -{ - if (std::find(aNames.begin(), aNames.end(), i_name) == aNames.end()) - AddNode_normal(i_name, pass_Element); - else - delete &pass_Element; -} - -void -NamedList::do_Accept(csv::ProcessorIfc & io_processor ) const -{ - csv::CheckedCall(io_processor,*this); -} - - - - -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/d_node.cxx b/autodoc/source/ary/doc/d_node.cxx index baac62de..dd326815 100644 --- a/autodoc/source/ary/doc/d_node.cxx +++ b/autodoc/source/ary/doc/d_node.cxx @@ -32,11 +32,6 @@ #include <ary/doc/d_node.hxx> -// NOT FULLY DEFINED SERVICES -#include <ary/doc/d_hypertext.hxx> - - - namespace ary { namespace doc diff --git a/autodoc/source/ary/doc/d_oldcppdocu.cxx b/autodoc/source/ary/doc/d_oldcppdocu.cxx index 05a60df8..820b48a2 100644 --- a/autodoc/source/ary/doc/d_oldcppdocu.cxx +++ b/autodoc/source/ary/doc/d_oldcppdocu.cxx @@ -329,23 +329,11 @@ OldCppDocu::IsInterface() const return bIsInterface; } - -const OldCppDocu & -OldCppDocu::Null_() -{ - static const OldCppDocu - aNull_; - return aNull_; -} - void OldCppDocu::do_Accept(csv::ProcessorIfc & io_processor) const { csv::CheckedCall(io_processor, *this); } - - - } // namespace doc } // namespace ary diff --git a/autodoc/source/ary/doc/d_struct.cxx b/autodoc/source/ary/doc/d_struct.cxx deleted file mode 100644 index 7b9c12f0..00000000 --- a/autodoc/source/ary/doc/d_struct.cxx +++ /dev/null @@ -1,121 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/d_struct.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <algorithm> - - -namespace ary -{ -namespace doc -{ - - - - - -Struct::Struct( nodetype::id i_id ) - : Node(i_id), - aElements() -{ -} - -Struct::~Struct() -{ -} - - -struct GetSlotId -{ - GetSlotId( - Struct::slot_id i_slot ) - : nSlot(i_slot) {} - - bool operator()( - const Node & i_node ) const - { return i_node.Type() == nSlot; } - - private: - Struct::slot_id nSlot; -}; - -Node & -Struct::Add_Node( DYN Node & pass_node ) -{ - NodeList::iterator - itFind = std::find_if( aElements.begin(), - aElements.end(), - GetSlotId(pass_node.Type()) ); - if ( itFind == aElements.end() ) - aElements.push_back(pass_node); - else - (*itFind).Add_toChain(pass_node); - return pass_node; -} - -const Node * -Struct::Slot( slot_id i_slot ) const -{ - NodeList::const_iterator - itFind = std::find_if( aElements.begin(), - aElements.end(), - GetSlotId(i_slot) ); - if ( itFind != aElements.end() ) - return &(*itFind); - return 0; -} - -Node * -Struct::Slot(slot_id i_slot) -{ - NodeList::iterator - itFind = std::find_if( aElements.begin(), - aElements.end(), - GetSlotId(i_slot) ); - if ( itFind != aElements.end() ) - return &(*itFind); - return 0; -} - -void -Struct::do_Accept(csv::ProcessorIfc & io_processor ) const -{ - csv::CheckedCall(io_processor,*this); -} - - - - -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/d_summary.cxx b/autodoc/source/ary/doc/d_summary.cxx deleted file mode 100644 index 9b34dfed..00000000 --- a/autodoc/source/ary/doc/d_summary.cxx +++ /dev/null @@ -1,88 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/d_summary.hxx> - - -// NOT FULLY DEFINED SERVICES - - - -namespace ary -{ -namespace doc -{ - - - -Summary::Summary(nodetype::id i_slot) - : Node(i_slot), - pText(0), - bIncomplete(false), - nOrigin(0) -{ -} - -Summary::~Summary() -{ -} - -const HyperText & -Summary::Text() const -{ - static const HyperText aTextNull_; - return pText - ? *pText - : aTextNull_; -} - - -void -Summary::Set( const HyperText & i_text, - bool i_isIncomplete, - nodetype::id i_origin ) -{ - pText = &i_text; - bIncomplete = i_isIncomplete; - nOrigin = i_origin; -} - -void -Summary::do_Accept(csv::ProcessorIfc & io_processor ) const -{ - csv::CheckedCall(io_processor,*this); -} - - - - -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/d_unit.cxx b/autodoc/source/ary/doc/d_unit.cxx deleted file mode 100644 index 5a0d9f3c..00000000 --- a/autodoc/source/ary/doc/d_unit.cxx +++ /dev/null @@ -1,63 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/d_unit.hxx> - - -// NOT FULLY DEFINED SERVICES - - - -namespace ary -{ -namespace doc -{ - - -Unit::Unit(nodetype::id i_id) - : Node(i_id), - aDoc() -{ -} - -Unit::~Unit() -{ -} - -void -Unit::do_Accept(csv::ProcessorIfc & io_processor ) const -{ - csv::CheckedCall(io_processor,*this); -} - - -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_component.cxx b/autodoc/source/ary/doc/dht_component.cxx deleted file mode 100644 index 34d2cfca..00000000 --- a/autodoc/source/ary/doc/dht_component.cxx +++ /dev/null @@ -1,117 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_component.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_interpreter.hxx> -#include <ary/doc/ht/dht_processor.hxx> - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -class Null_Interpreter : public Interpreter -{ - public: - virtual ~Null_Interpreter(); - private: - virtual void do_Accept( - Processor & io_processor, - const String & i_data ) const; -}; - -namespace -{ - -static const Null_Interpreter - C_aTheNullInterpreter_; -} - - -Component::Component() - : aData(String::Null_()), - pInterpreter(&C_aTheNullInterpreter_) -{ -} - -Component::Component( const Interpreter & i_interpreter ) - : aData(String::Null_()), // Makes sure, no extra memory - // is used for this string. - pInterpreter(&i_interpreter) -{ -} - -Component::Component( const Interpreter & i_interpreter, - const String & i_data ) - : aData(i_data), - pInterpreter(&i_interpreter) -{ -} - -Component::~Component() -{ -} - -void -Component::Accept( Processor & io_processor ) const -{ - csv_assert(pInterpreter != 0); - pInterpreter->Accept(io_processor, aData); -} - - - -//***************** Null_Interpreter **********************// - -Null_Interpreter::~Null_Interpreter() -{ -} - -void -Null_Interpreter::do_Accept( Processor & , - const String & ) const -{ - // Does nothing. -} - - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_helper.cxx b/autodoc/source/ary/doc/dht_helper.cxx deleted file mode 100644 index b129d921..00000000 --- a/autodoc/source/ary/doc/dht_helper.cxx +++ /dev/null @@ -1,88 +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_helper.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include "dht_helper.hxx" - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -Component -Create_Component( const Interpreter & i_intepreter, - const String & i_str1, - char i_separator, - const String & i_str2 ) -{ - if (i_str2.empty()) - return Component(i_intepreter, i_str1); - - StreamLock - sl(700); - sl() << i_str1 << i_separator << i_str2; - return Component( i_intepreter, String(sl().c_str()) ); -} - -void -Resolve_ComponentData( String & o_1, - String & o_2, - char i_separator, - const String & i_data ) -{ - const char * - p_begin = i_data.begin(); - const char * - p_separator = strchr(p_begin, i_separator); - if (p_separator != 0) - { - o_1 = String(p_begin, p_separator); - o_2 = String(p_separator+1, i_data.end()); - } - else - { - o_1 = i_data; - o_2 = i_data; - } -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_helper.hxx b/autodoc/source/ary/doc/dht_helper.hxx deleted file mode 100644 index 1e9cf7f0..00000000 --- a/autodoc/source/ary/doc/dht_helper.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_helper.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_HELPER_HXX -#define ARY_DOC_DHT_HELPER_HXX - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -class Component; -class Interpreter; - - -/** Joins two strings with a separator and creates a component - from the result. - - If ->i_str2 is empty, only i_str1 is used without the separator. -*/ -Component Create_Component( - const Interpreter & i_intepreter, - const String & i_str1, - char i_separator, - const String & i_str2 ); - -/** Joins two strings with a separator and creates a component - from the result. - - If ->i_str2 is empty, only i_str1 is used without the separator. -*/ -void Resolve_ComponentData( - String & o_1, - String & o_2, - char i_separator, - const String & i_data ); - - - -} // namespace ht -} // namespace doc -} // namespace ary - -#endif diff --git a/autodoc/source/ary/doc/dht_html.cxx b/autodoc/source/ary/doc/dht_html.cxx deleted file mode 100644 index 9d5df423..00000000 --- a/autodoc/source/ary/doc/dht_html.cxx +++ /dev/null @@ -1,71 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_html.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - - - -HtmlText::~HtmlText() -{ -} - -Component -HtmlText::Create_Component_( const String & i_text ) -{ - static const HtmlText aTheInstance_; - return Component(aTheInstance_, i_text); -} - -void -HtmlText::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_link2ce.cxx b/autodoc/source/ary/doc/dht_link2ce.cxx deleted file mode 100644 index 8873185f..00000000 --- a/autodoc/source/ary/doc/dht_link2ce.cxx +++ /dev/null @@ -1,91 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_link2ce.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> -#include "dht_helper.hxx" - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -const char C_cSeparator = '#'; - - -Link2Ce::~Link2Ce() -{ -} - -Component -Link2Ce::Create_Component_( const String & i_ceAbsolutePath, - const String & i_display ) -{ - static const Link2Ce - aTheInstance_; - return Create_Component( - aTheInstance_, - i_ceAbsolutePath, - C_cSeparator, - i_display ); -} - -void -Link2Ce::Resolve_( String & o_absolutePath, - String & o_display, - const String & i_data) -{ - Resolve_ComponentData( o_absolutePath, - o_display, - C_cSeparator, - i_data ); -} - -void -Link2Ce::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_link2param.cxx b/autodoc/source/ary/doc/dht_link2param.cxx deleted file mode 100644 index a5e074a7..00000000 --- a/autodoc/source/ary/doc/dht_link2param.cxx +++ /dev/null @@ -1,80 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_link2param.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> -#include "dht_helper.hxx" - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -const char C_cSeparator = '#'; - - - -Link2Param::~Link2Param() -{ -} - -Component -Link2Param::Create_Component_( const String & i_parameterName, - const String & i_display ) -{ - static const Link2Param - aTheInstance_; - return Create_Component( - aTheInstance_, - i_parameterName, - C_cSeparator, - i_display ); -} - -void -Link2Param::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_link2unknown.cxx b/autodoc/source/ary/doc/dht_link2unknown.cxx deleted file mode 100644 index adfb938b..00000000 --- a/autodoc/source/ary/doc/dht_link2unknown.cxx +++ /dev/null @@ -1,91 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_link2unknown.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> -#include "dht_helper.hxx" - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - - -const char C_cSeparator = '#'; - - -Link2Unknown::~Link2Unknown() -{ -} - -Component -Link2Unknown::Create_Component_( const String & i_typeText, - const String & i_display ) -{ - static const Link2Unknown - aTheInstance_; - return Create_Component( - aTheInstance_, - i_typeText, - C_cSeparator, - i_display ); -} - -void -Link2Unknown::Resolve_( String & o_typeText, - String & o_display, - const String & i_data) -{ - Resolve_ComponentData( o_typeText, - o_display, - C_cSeparator, - i_data ); -} - -void -Link2Unknown::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_link2url.cxx b/autodoc/source/ary/doc/dht_link2url.cxx deleted file mode 100644 index b6cfb652..00000000 --- a/autodoc/source/ary/doc/dht_link2url.cxx +++ /dev/null @@ -1,91 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_link2url.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> -#include "dht_helper.hxx" - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - - -const char C_cSeparator = ' '; - - -Link2Url::~Link2Url() -{ -} - -Component -Link2Url::Create_Component_( const String & i_url, - const String & i_display ) -{ - static const Link2Url - aTheInstance_; - return Create_Component( - aTheInstance_, - i_url, - C_cSeparator, - i_display ); -} - -void -Link2Url::Resolve_( String & o_url, - String & o_display, - const String & i_data) -{ - Resolve_ComponentData( o_url, - o_display, - C_cSeparator, - i_data ); -} - -void -Link2Url::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_plain.cxx b/autodoc/source/ary/doc/dht_plain.cxx deleted file mode 100644 index f9a13d21..00000000 --- a/autodoc/source/ary/doc/dht_plain.cxx +++ /dev/null @@ -1,71 +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_plain.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_plain.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - - - -PlainText::~PlainText() -{ -} - -Component -PlainText::Create_Component_( const String & i_text ) -{ - static const PlainText aTheInstance_; - return Component(aTheInstance_, i_text); -} - -void -PlainText::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_stream.cxx b/autodoc/source/ary/doc/dht_stream.cxx deleted file mode 100644 index 91cb87dd..00000000 --- a/autodoc/source/ary/doc/dht_stream.cxx +++ /dev/null @@ -1,222 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_stream.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_html.hxx> -#include <ary/doc/ht/dht_link2ce.hxx> -#include <ary/doc/ht/dht_link2param.hxx> -#include <ary/doc/ht/dht_link2url.hxx> -#include <ary/doc/ht/dht_link2unknown.hxx> -#include <ary/doc/ht/dht_plain.hxx> -#include <ary/doc/ht/dht_white.hxx> - - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - - -inline HyperText & -Stream::Out() -{ - return mrOut; -} - - - - -Stream::Stream( HyperText & o_Receiver, - E_TextMode i_initialTextMode ) - : mrOut(o_Receiver), - mfCurTextFlusher( i_initialTextMode == tm_plain - ? &Stream::PlainTextFlusher - : &Stream::HtmlTextFlusher ), - mText(300) -{ -} - -Stream::~Stream() -{ - -} - -Stream & -Stream::operator<<( F_StreamModifier i_modifier ) -{ - (*i_modifier)(*this); - return *this; -} - -Stream & -Stream::operator<<( const char * i_text ) -{ - mText << i_text; - return *this; -} - -Stream & -Stream::operator<<( const String & i_text ) -{ - mText << i_text; - return *this; -} - -void -Stream::Add_Indentation( uintt i_count ) -{ - Flush(); - Out().push_back( - Indentation::Create_Component_(i_count) ); -} - -void -Stream::Add_Link2Ce( const String & i_absolutePath, - const String & i_display ) -{ - Flush(); - Out().push_back( - Link2Ce::Create_Component_(i_absolutePath, i_display) ); -} - -void -Stream::Add_Link2Unknown( const String & i_type, - const String & i_display ) -{ - Flush(); - Out().push_back( - Link2Unknown::Create_Component_(i_type, i_display) ); -} - -void -Stream::Add_Link2Url( const String & i_url, - const String & i_display) -{ - Flush(); - Out().push_back( - Link2Url::Create_Component_(i_url, i_display) ); -} - -void -Stream::Add_Link2Param( const String & i_parameter, - const String & i_display ) -{ - Flush(); - Out().push_back( - Link2Param::Create_Component_(i_parameter, i_display) ); -} - -Stream::E_TextMode -Stream::CurrentMode() const -{ - return mfCurTextFlusher == &Stream::PlainTextFlusher - ? tm_plain - : tm_html; -} - -void -Stream::Flush() -{ - if (mText.size() == 0) - return; - - if ( mText.size() > 1 - OR *mText.c_str() != ' ') - { - (this->*mfCurTextFlusher)(); - } - else - { - Out().push_back(Blank::Create_Component_()); - } - - mText.reset(); -} - -void -Stream::PlainTextFlusher() -{ - Out().push_back( - PlainText::Create_Component_(String(mText.c_str())) ); -} - -void -Stream::HtmlTextFlusher() -{ - Out().push_back( - HtmlText::Create_Component_(String(mText.c_str())) ); -} - - -void -flush(Stream& io_stream) -{ - io_stream.Flush(); -} - -void -newline(Stream& io_stream) -{ - io_stream.Flush(); - io_stream.Out().push_back(NewParagraph::Create_Component_()); -} - -void -blank(Stream& io_stream) -{ - io_stream.mText << ' '; -} - -void -plain(Stream& io_stream) -{ - io_stream.Flush(); - io_stream.mfCurTextFlusher = &Stream::PlainTextFlusher; -} - -void -html(Stream& io_stream) -{ - io_stream.Flush(); - io_stream.mfCurTextFlusher = &Stream::HtmlTextFlusher; -} - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/dht_white.cxx b/autodoc/source/ary/doc/dht_white.cxx deleted file mode 100644 index 311ad8c2..00000000 --- a/autodoc/source/ary/doc/dht_white.cxx +++ /dev/null @@ -1,149 +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.cxx,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. - * - ************************************************************************/ - -#include <precomp.h> -#include <ary/doc/ht/dht_white.hxx> - - -// NOT FULLY DEFINED SERVICES -#include <ary/doc/ht/dht_component.hxx> -#include <ary/doc/ht/dht_processor.hxx> - - -namespace ary -{ -namespace doc -{ -namespace ht -{ - -const String - C_sMore(" (...)"); - -//********************** Blank *********************// - -Blank::~Blank() -{ -} - -Component -Blank::Create_Component_() -{ - static const Blank aTheInstance_; - return Component(aTheInstance_); -} - -void -Blank::do_Accept( Processor & io_processor, - const String & ) const -{ - io_processor.Process(*this); -} - - - - - -//******************** NewParagraph ********************// - -NewParagraph::~NewParagraph() -{ -} - -Component -NewParagraph::Create_Component_() -{ - static const NewParagraph aTheInstance_; - return Component(aTheInstance_); -} - -void -NewParagraph::do_Accept( Processor & io_processor, - const String & ) const -{ - io_processor.Process(*this); -} - - -//************** Indentation ****************// - -Indentation::~Indentation() -{ -} - -Component -Indentation::Create_Component_(uintt i_size) -{ - static const Indentation aTheInstance_; - StreamLock sl(100); - sl() << i_size; - return Component( aTheInstance_, - String(sl().c_str()) ); -} - -void -Indentation::do_Accept( Processor & io_processor, - const String & i_data ) const -{ - io_processor.Process(*this, i_data); -} - - - -//********************** SummarySeparator *********************// - -SummarySeparator::~SummarySeparator() -{ -} - -Component -SummarySeparator::Create_Component_(bool i_interrupted) -{ - static const SummarySeparator aTheInstance_; - return Component( aTheInstance_, - i_interrupted - ? C_sMore - : String::Null_() ); -} - -void -SummarySeparator::do_Accept( Processor & io_processor, - const String & ) const -{ - io_processor.Process(*this); -} - - - - - -} // namespace ht -} // namespace doc -} // namespace ary diff --git a/autodoc/source/ary/doc/makefile.mk b/autodoc/source/ary/doc/makefile.mk index 70463171..f64ba078 100644 --- a/autodoc/source/ary/doc/makefile.mk +++ b/autodoc/source/ary/doc/makefile.mk @@ -52,25 +52,9 @@ PRJINC=$(PRJ)$/source OBJFILES= \ $(OBJ)$/d_boolean.obj \ $(OBJ)$/d_docu.obj \ - $(OBJ)$/d_hypertext.obj \ - $(OBJ)$/d_namedlist.obj \ $(OBJ)$/d_node.obj \ $(OBJ)$/d_oldcppdocu.obj \ - $(OBJ)$/d_oldidldocu.obj \ - $(OBJ)$/d_summary.obj \ - $(OBJ)$/d_struct.obj \ - $(OBJ)$/d_unit.obj \ - $(OBJ)$/dht_component.obj \ - $(OBJ)$/dht_helper.obj \ - $(OBJ)$/dht_html.obj \ - $(OBJ)$/dht_link2ce.obj \ - $(OBJ)$/dht_link2param.obj \ - $(OBJ)$/dht_link2unknown.obj \ - $(OBJ)$/dht_link2url.obj \ - $(OBJ)$/dht_plain.obj \ - $(OBJ)$/dht_stream.obj \ - $(OBJ)$/dht_white.obj - + $(OBJ)$/d_oldidldocu.obj # --- Targets ------------------------------------------------------ |