diff options
Diffstat (limited to 'autodoc/source/ary/doc')
-rw-r--r-- | autodoc/source/ary/doc/d_boolean.cxx | 55 | ||||
-rw-r--r-- | autodoc/source/ary/doc/d_docu.cxx | 59 | ||||
-rw-r--r-- | autodoc/source/ary/doc/d_node.cxx | 69 | ||||
-rw-r--r-- | autodoc/source/ary/doc/d_oldcppdocu.cxx | 336 | ||||
-rw-r--r-- | autodoc/source/ary/doc/d_oldidldocu.cxx | 76 | ||||
-rw-r--r-- | autodoc/source/ary/doc/makefile.mk | 58 |
6 files changed, 653 insertions, 0 deletions
diff --git a/autodoc/source/ary/doc/d_boolean.cxx b/autodoc/source/ary/doc/d_boolean.cxx new file mode 100644 index 000000000000..9d28b822ce1b --- /dev/null +++ b/autodoc/source/ary/doc/d_boolean.cxx @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/doc/d_boolean.hxx> + + +// NOT FULLY DEFINED SERVICES + + + +namespace ary +{ +namespace doc +{ + +Boolean::~Boolean() +{ +} + +void +Boolean::do_Accept(csv::ProcessorIfc & io_processor ) const +{ + csv::CheckedCall(io_processor,*this); +} + + + + +} // namespace doc +} // namespace ary diff --git a/autodoc/source/ary/doc/d_docu.cxx b/autodoc/source/ary/doc/d_docu.cxx new file mode 100644 index 000000000000..50c841e2fb00 --- /dev/null +++ b/autodoc/source/ary/doc/d_docu.cxx @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/doc/d_docu.hxx> + + +// NOT FULLY DEFINED SERVICES +#include <ary/doc/d_node.hxx> + +namespace ary +{ +namespace doc +{ + +Documentation::Documentation() + : pData(0) +{ +} + +Documentation::~Documentation() +{ +} + +void +Documentation::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 new file mode 100644 index 000000000000..23e30c6ca286 --- /dev/null +++ b/autodoc/source/ary/doc/d_node.cxx @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/doc/d_node.hxx> + + +namespace ary +{ +namespace doc +{ + + + +Node::~Node() +{ +} + +Node::Node(nodetype::id i_type) + : nType(i_type), + pNext(0) +{ +} + +void +Node::Add_toChain( DYN Node & pass_nextNode ) +{ + if (NOT pNext) + pNext = &pass_nextNode; + else + pNext->Add_toChain(pass_nextNode); +} + +uintt +Node::ListSize() const +{ + return pNext + ? pNext->ListSize() + 1 + : 1; +} + + + +} // namespace doc +} // namespace ary diff --git a/autodoc/source/ary/doc/d_oldcppdocu.cxx b/autodoc/source/ary/doc/d_oldcppdocu.cxx new file mode 100644 index 000000000000..26ab84fb768e --- /dev/null +++ b/autodoc/source/ary/doc/d_oldcppdocu.cxx @@ -0,0 +1,336 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/doc/d_oldcppdocu.hxx> + + +// NOT FULLY DEFINED SERVICES +#include <ary/info/all_tags.hxx> +#include <ary/info/docstore.hxx> +#include <ary/info/infodisp.hxx> +#include <docu_node_ids.hxx> + + + + +namespace ary +{ +namespace doc +{ + +using namespace info; + + + + +unsigned char C_ucNO_INDEX = 255; +typedef DYN StdTag * (F_CREATE)(); + + +OldCppDocu::OldCppDocu() + : Node(docnt::nt_OldCppDocu), + bIsObsolete(false), + bIsInternal(false), + bIsInterface(false) +{ + memset( nTags, C_ucNO_INDEX, size_t(C_eAtTag_NrOfClasses) ); +} + +OldCppDocu::~OldCppDocu() +{ +} + +void +OldCppDocu::Store2( info::DocuStore & o_rDocuStore ) +{ + o_rDocuStore.Store2ConnectedDeclaration(*this); +} + +AtTag * +OldCppDocu::Create_StdTag( E_AtTagId i_eId ) +{ + UINT8 nIndex = static_cast<UINT8>(i_eId); + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new StdTag(i_eId); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::CheckIn_BaseTag() +{ + UINT8 nIndex = atc_base; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new BaseTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::CheckIn_ExceptionTag() +{ + UINT8 nIndex = atc_exception; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new ExceptionTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::Create_ImplementsTag() +{ + UINT8 nIndex = atc_implements; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new ImplementsTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::Create_KeywordTag() +{ + UINT8 nIndex = atc_keyword; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new KeywordTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::CheckIn_ParameterTag() +{ + UINT8 nIndex = atc_parameter; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new ParameterTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::CheckIn_SeeTag() +{ + UINT8 nIndex = atc_see; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new SeeTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::CheckIn_TemplateTag() +{ + UINT8 nIndex = atc_template; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new TemplateTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::Create_LabelTag() +{ + UINT8 nIndex = atc_label; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new LabelTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::Create_DefaultTag() +{ + UINT8 nIndex = atid_descr; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new StdTag(atid_descr); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + +AtTag * +OldCppDocu::Create_SinceTag() +{ + UINT8 nIndex = atc_since; + if ( nTags[nIndex] == C_ucNO_INDEX ) + { + AtTag * ret = new SinceTag(); + NewTag(nIndex) = ret; + return ret; + } + else + { + return GetTag(nIndex).GetFollower(); + } +} + + +void +OldCppDocu::Replace_AtShort_By_AtDescr() +{ + unsigned char nPosInTags = nTags[atid_short]; + if ( nPosInTags == C_ucNO_INDEX ) + return; + + AtTag * pTag = aTags[ nPosInTags ]; + if ( pTag == 0 ) // Should be csv_assert(). + return; + + csv_assert( dynamic_cast< StdTag* >(pTag) != 0 ); + StdTag * pStdTag = static_cast< StdTag* >(pTag); + + pStdTag->ChangeId2(atid_descr); + nTags[atid_short] = C_ucNO_INDEX; + nTags[atid_descr] = nPosInTags; +} + +void +OldCppDocu::Set_Obsolete() +{ + bIsObsolete = true; +} + +void +OldCppDocu::Set_Internal() +{ + bIsInternal = true; +} + +const AtTag & +OldCppDocu::Short() const +{ + static const StdTag aNull_(atid_short); + + unsigned char nPosInTags = nTags[atid_short]; + if ( nPosInTags != C_ucNO_INDEX ) + { + AtTag * pTag = aTags[ nPosInTags ]; + if ( pTag != 0 ) // Should be csv_assert(). + { + return *pTag; + } + } + + return aNull_; +} + +AtTag * & +OldCppDocu::NewTag(UINT8 i_nIndex) +{ + nTags[i_nIndex] = static_cast<UINT8>(aTags.size()); + aTags.push_back(0); + return aTags.back(); +} + +AtTag & +OldCppDocu::GetTag( UINT8 i_nIndex ) +{ + csv_assert( i_nIndex < C_eAtTag_NrOfClasses ); + csv_assert( nTags[i_nIndex] != C_ucNO_INDEX ); + csv_assert( aTags[nTags[i_nIndex]] != 0 ); + return * aTags[nTags[i_nIndex]]; +} + +bool +OldCppDocu::IsInternal() const +{ + return bIsInternal; +} + +bool +OldCppDocu::IsInterface() const +{ + return bIsInterface; +} + +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_oldidldocu.cxx b/autodoc/source/ary/doc/d_oldidldocu.cxx new file mode 100644 index 000000000000..1c61a6ac0fb0 --- /dev/null +++ b/autodoc/source/ary/doc/d_oldidldocu.cxx @@ -0,0 +1,76 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/doc/d_oldidldocu.hxx> + +// NOT FULLY DEFINED SERVICES +#include <docu_node_ids.hxx> + + + +namespace ary +{ +namespace doc +{ + +using namespace ::ary::inf; + + +OldIdlDocu::OldIdlDocu() + : Node(docnt::nt_OldIdlDocu), + aShort(), + aDescription(), + aDeprecatedText(), + aTags(), + pExternShort(0), + bIsPublished(false), + bIsDeprecated(false), + bIsOptional(false) +{ +} + +OldIdlDocu::~OldIdlDocu() +{ +} + +void +OldIdlDocu::AddToken2DeprecatedText( DYN DocuToken & let_drToken ) +{ + aDeprecatedText.AddToken(let_drToken); +} + +void +OldIdlDocu::do_Accept(csv::ProcessorIfc & io_processor) const +{ + csv::CheckedCall(io_processor, *this); +} + + + +} // namespace info +} // namespace ary diff --git a/autodoc/source/ary/doc/makefile.mk b/autodoc/source/ary/doc/makefile.mk new file mode 100644 index 000000000000..21989dcc5827 --- /dev/null +++ b/autodoc/source/ary/doc/makefile.mk @@ -0,0 +1,58 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/.. + +PRJNAME=autodoc +TARGET=ary_doc + + + +# --- Settings ----------------------------------------------------- + +ENABLE_EXCEPTIONS=true +PRJINC=$(PRJ)$/source + +.INCLUDE : settings.mk +.INCLUDE : $(PRJ)$/source$/mkinc$/fullcpp.mk + + + +# --- Files -------------------------------------------------------- + + +OBJFILES= \ + $(OBJ)$/d_boolean.obj \ + $(OBJ)$/d_docu.obj \ + $(OBJ)$/d_node.obj \ + $(OBJ)$/d_oldcppdocu.obj \ + $(OBJ)$/d_oldidldocu.obj + + +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk |