diff options
Diffstat (limited to 'autodoc/source/ary_i/kernel')
-rw-r--r-- | autodoc/source/ary_i/kernel/ci_atag2.cxx | 59 | ||||
-rw-r--r-- | autodoc/source/ary_i/kernel/ci_text2.cxx | 141 | ||||
-rw-r--r-- | autodoc/source/ary_i/kernel/d_token.cxx | 190 | ||||
-rw-r--r-- | autodoc/source/ary_i/kernel/makefile.mk | 60 |
4 files changed, 450 insertions, 0 deletions
diff --git a/autodoc/source/ary_i/kernel/ci_atag2.cxx b/autodoc/source/ary_i/kernel/ci_atag2.cxx new file mode 100644 index 000000000000..6eabded958ed --- /dev/null +++ b/autodoc/source/ary_i/kernel/ci_atag2.cxx @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary_i/ci_atag2.hxx> + + +// NOT FULLY DEFINED SERVICES +#include <ary_i/disdocum.hxx> + + +namespace ary +{ +namespace inf +{ + +void DocuTag_Display::Display_TextToken( + const csi::dsapi::DT_TextToken & ) {} +void DocuTag_Display::Display_White() {} +void DocuTag_Display::Display_MupType( + const csi::dsapi::DT_MupType & ) {} +void DocuTag_Display::Display_MupMember( + const csi::dsapi::DT_MupMember & ) {} +void DocuTag_Display::Display_MupConst( + const csi::dsapi::DT_MupConst & ) {} +void DocuTag_Display::Display_Style( + const csi::dsapi::DT_Style & ) {} +void DocuTag_Display::Display_EOL() {} + + +} // namespace inf +} // namespace ary + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx new file mode 100644 index 000000000000..d5d60c7b2399 --- /dev/null +++ b/autodoc/source/ary_i/kernel/ci_text2.cxx @@ -0,0 +1,141 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary_i/ci_text2.hxx> + + +// NOT FULLY DEFINED SERVICES +#include <ary_i/disdocum.hxx> +#include <ary_i/d_token.hxx> + + +namespace ary +{ +namespace inf +{ + +DocuTex2::DocuTex2() +{ +} + +DocuTex2::~DocuTex2() +{ + for ( TokenList::iterator iter = aTokens.begin(); + iter != aTokens.end(); + ++iter ) + { + delete (*iter); + } +} + +void +DocuTex2::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + for ( ary::inf::DocuTex2::TokenList::const_iterator + iter = aTokens.begin(); + iter != aTokens.end(); + ++iter ) + { + (*iter)->DisplayAt(o_rDisplay); + } +} + +void +DocuTex2::AddToken( DYN DocuToken & let_drToken ) +{ + if (aTokens.empty()) + { + if (let_drToken.IsWhiteOnly()) + return; + } + aTokens.push_back(&let_drToken); +} + +bool +DocuTex2::IsEmpty() const +{ + for ( ary::inf::DocuTex2::TokenList::const_iterator + iter = aTokens.begin(); + iter != aTokens.end(); + ++iter ) + { + return false; + } + return true; +} + +using csi::dsapi::DT_TextToken; + +const String & +DocuTex2::TextOfFirstToken() const +{ + if (NOT aTokens.empty()) + { + const DT_TextToken * + pTok = dynamic_cast< const DT_TextToken* >(*aTokens.begin()); + + if (pTok != 0) + return pTok->GetTextStr(); + } + return String::Null_(); +} + +String & +DocuTex2::Access_TextOfFirstToken() +{ + if (NOT aTokens.empty()) + { + DT_TextToken * + pTok = dynamic_cast< DT_TextToken* >(*aTokens.begin()); + + if (pTok != 0) + return pTok->Access_Text(); + } + + static String sDummy_; + return sDummy_; +} + + + +void DocuText_Display::Display_StdAtTag( + const csi::dsapi::DT_StdAtTag & ) {} +void DocuText_Display::Display_SeeAlsoAtTag( + const csi::dsapi::DT_SeeAlsoAtTag & ) {} +void DocuText_Display::Display_ParameterAtTag( + const csi::dsapi::DT_ParameterAtTag & ) {} +void DocuText_Display::Display_SinceAtTag( + const csi::dsapi::DT_SinceAtTag & ) {} + + + +} // namespace inf +} // namespace ary + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/ary_i/kernel/d_token.cxx b/autodoc/source/ary_i/kernel/d_token.cxx new file mode 100644 index 000000000000..6157614ef30a --- /dev/null +++ b/autodoc/source/ary_i/kernel/d_token.cxx @@ -0,0 +1,190 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include <precomp.h> +#include <ary_i/d_token.hxx> + + +// NOT FULLY DEFINED SERVICES +#include <ary_i/disdocum.hxx> + + + + +namespace csi +{ +namespace dsapi +{ + +bool +DT_Dsapi::IsWhiteOnly() const +{ + return false; +} + +DT_TextToken::~DT_TextToken() +{ +} + +void +DT_TextToken::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_TextToken( *this ); +} + +bool +DT_TextToken::IsWhiteOnly() const +{ + for ( const char * it = sText.c_str(); + static_cast<UINT8>(*it) > 32; + ++it ) + { + return false; + } + return true; +} + +DT_White::~DT_White() +{ +} + +void +DT_White::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_White(); +} + +bool +DT_White::IsWhiteOnly() const +{ + return true; +} + +DT_MupType::~DT_MupType() +{ +} + +void +DT_MupType::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_MupType( *this ); +} + +DT_MupMember::~DT_MupMember() +{ +} + +void +DT_MupMember::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_MupMember( *this ); +} + +DT_MupConst::~DT_MupConst() +{ +} + +void +DT_MupConst::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_MupConst( *this ); +} + +DT_Style::~DT_Style() +{ +} + +void +DT_Style::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_Style( *this ); +} + +DT_EOL::~DT_EOL() +{ +} + +void +DT_EOL::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_EOL(); +} + +bool +DT_EOL::IsWhiteOnly() const +{ + return true; +} + +DT_StdAtTag::~DT_StdAtTag() +{ +} + +void +DT_StdAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_StdAtTag( *this ); +} + +DT_SeeAlsoAtTag::~DT_SeeAlsoAtTag() +{ +} + +void +DT_SeeAlsoAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_SeeAlsoAtTag( *this ); +} + +DT_ParameterAtTag::~DT_ParameterAtTag() +{ +} + +void +DT_ParameterAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_ParameterAtTag( *this ); +} + +DT_SinceAtTag::~DT_SinceAtTag() +{ +} + +void +DT_SinceAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const +{ + o_rDisplay.Display_SinceAtTag( *this ); +} + + + + +} // namespace dsapi +} // namespace csi + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/ary_i/kernel/makefile.mk b/autodoc/source/ary_i/kernel/makefile.mk new file mode 100644 index 000000000000..79675bc03c81 --- /dev/null +++ b/autodoc/source/ary_i/kernel/makefile.mk @@ -0,0 +1,60 @@ +#************************************************************************* +# +# 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=ary2_cinfo + + + +# --- Settings ----------------------------------------------------- + +ENABLE_EXCEPTIONS=true +PRJINC=$(PRJ)$/source + +.INCLUDE : settings.mk +.INCLUDE : $(PRJ)$/source$/mkinc$/fullcpp.mk + + + +# --- Files -------------------------------------------------------- + + +OBJFILES= \ + $(OBJ)$/ci_atag2.obj \ + $(OBJ)$/ci_text2.obj \ + $(OBJ)$/d_token.obj + + + +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk + + + |