summaryrefslogtreecommitdiff
path: root/autodoc/source/ary/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'autodoc/source/ary/kernel')
-rw-r--r--autodoc/source/ary/kernel/instlist.cxx52
-rw-r--r--autodoc/source/ary/kernel/makefile.mk6
-rw-r--r--autodoc/source/ary/kernel/nametree.cxx106
-rw-r--r--autodoc/source/ary/kernel/segmentedname.cxx272
-rw-r--r--autodoc/source/ary/kernel/slots.cxx63
-rw-r--r--autodoc/source/ary/kernel/x_ary.cxx77
6 files changed, 1 insertions, 575 deletions
diff --git a/autodoc/source/ary/kernel/instlist.cxx b/autodoc/source/ary/kernel/instlist.cxx
deleted file mode 100644
index 8e8512cbdd6b..000000000000
--- a/autodoc/source/ary/kernel/instlist.cxx
+++ /dev/null
@@ -1,52 +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: instlist.cxx,v $
- * $Revision: 1.6 $
- *
- * 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 <instlist.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <instlist.hxx>
-
-
-
-namespace ary
-{
-
-InstanceList::InstanceList()
-{
-}
-
-InstanceList::~InstanceList()
-{
-}
-
-
-} // namespace ary
diff --git a/autodoc/source/ary/kernel/makefile.mk b/autodoc/source/ary/kernel/makefile.mk
index 3f71a8bf316e..b3d99c90068b 100644
--- a/autodoc/source/ary/kernel/makefile.mk
+++ b/autodoc/source/ary/kernel/makefile.mk
@@ -52,14 +52,10 @@ PRJINC=$(PRJ)$/source
OBJFILES= \
$(OBJ)$/ary_disp.obj \
$(OBJ)$/cessentl.obj \
- $(OBJ)$/instlist.obj \
$(OBJ)$/namesort.obj \
- $(OBJ)$/nametree.obj \
$(OBJ)$/qualiname.obj \
$(OBJ)$/reposy.obj \
- $(OBJ)$/segmentedname.obj \
- $(OBJ)$/slots.obj \
- $(OBJ)$/x_ary.obj
+ $(OBJ)$/slots.obj
diff --git a/autodoc/source/ary/kernel/nametree.cxx b/autodoc/source/ary/kernel/nametree.cxx
deleted file mode 100644
index f806001f1966..000000000000
--- a/autodoc/source/ary/kernel/nametree.cxx
+++ /dev/null
@@ -1,106 +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: nametree.cxx,v $
- * $Revision: 1.7 $
- *
- * 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 <nametree.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-
-
-
-namespace ary
-{
-
-
-NameTree::NameTree()
-{
-}
-
-NameTree::~NameTree()
-{
-}
-
-const InstanceList &
-NameTree::operator[]( const String & i_rName ) const
-{
- static InstanceList aNull_;
-
- const_iterator itFound = aNames.find(i_rName);
- if ( itFound != aNames.end() )
- return (*itFound).second;
- return aNull_;
-}
-
-void
-NameTree::insert( const String & i_rName,
- ary::Rid i_nId )
-{
- aNames[i_rName].push_back(i_nId);
-}
-
-NameTree::const_iterator
-NameTree::find( const String & i_rName )
-{
- return aNames.find( i_rName );
-}
-
-NameTree::const_iterator
-NameTree::lower_bound( const String & i_rName ) const
-{
- return aNames.lower_bound(i_rName);
-}
-
-NameTree::const_iterator
-NameTree::begin() const
-{
- return aNames.begin();
-}
-
-NameTree::const_iterator
-NameTree::end() const
-{
- return aNames.end();
-}
-
-NameTree::iterator
-NameTree::begin()
-{
- return aNames.begin();
-}
-
-NameTree::iterator
-NameTree::end()
-{
- return aNames.end();
-}
-
-
-} // namespace ary
diff --git a/autodoc/source/ary/kernel/segmentedname.cxx b/autodoc/source/ary/kernel/segmentedname.cxx
deleted file mode 100644
index 8d4cf4503843..000000000000
--- a/autodoc/source/ary/kernel/segmentedname.cxx
+++ /dev/null
@@ -1,272 +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.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/segmentedname.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-namespace ary
-{
-namespace sn // segmented name
-{
-
-
-//********************* NameSegment ******************//
-
-NameSegment::NameSegment( const char * i_name )
- : sName(i_name),
- pTemplateArguments()
-{
-}
-
-NameSegment::NameSegment( const String & i_name )
- : sName(i_name),
- pTemplateArguments()
-{
-}
-
-NameSegment::NameSegment( const NameSegment & i_other )
- : sName(i_other.sName),
- pTemplateArguments()
-{
- if (i_other.TemplateArguments() != 0)
- pTemplateArguments = new String(*i_other.TemplateArguments());
-}
-
-NameSegment::~NameSegment()
-{
-}
-
-NameSegment &
-NameSegment::operator=( const NameSegment & i_other )
-{
- sName = i_other.sName;
- if (i_other.TemplateArguments() != 0)
- pTemplateArguments = new String(*i_other.TemplateArguments());
- return *this;
-}
-
-bool
-NameSegment::operator<( const NameSegment & i_other ) const
-{
- if (sName < i_other.sName)
- return true;
- else if (sName == i_other.sName)
- {
- if (i_other.TemplateArguments() == 0)
- return false;
- else if (TemplateArguments() == 0)
- return true;
- else
- return *TemplateArguments() < *i_other.TemplateArguments();
- }
-
- return false;
-}
-
-String &
-NameSegment::Make_Template()
-{
- return *(pTemplateArguments = new String);
-}
-
-void
-NameSegment::Get_Text( StreamStr & o_out ) const
-{
- o_out << sName;
- if ( pTemplateArguments )
- o_out << '<' << *pTemplateArguments << '>';
-}
-
-
-} // namespace sn
-
-
-
-
-
-//********************* SegmentedName ******************//
-SegmentedName::SegmentedName( const char * i_text )
- : aSegments(),
- bIsAbsolute(strncmp(i_text,"::",2) == 0)
-{
- Interpret_Text(i_text + (bIsAbsolute ? 2 : 0));
-}
-
-SegmentedName::SegmentedName( const String & i_text )
- : aSegments(),
- bIsAbsolute(strncmp(i_text.c_str(),"::",2) == 0)
-{
- Interpret_Text(i_text.c_str() + (bIsAbsolute ? 2 : 0));
-}
-
-SegmentedName::~SegmentedName()
-{
-}
-
-bool
-SegmentedName::operator<( const SegmentedName & i_other ) const
-{
- if (IsAbsolute() AND NOT i_other.IsAbsolute())
- return true;
- if (NOT IsAbsolute() AND i_other.IsAbsolute())
- return false;
- return aSegments < i_other.aSegments;
-}
-
-void
-SegmentedName::Get_Text( StreamStr & o_out ) const
-{
- if ( IsAbsolute() )
- o_out << "::";
-
- sn::NameChain::const_iterator
- it = aSegments.begin();
- sn::NameChain::const_iterator
- itEnd = aSegments.end();
- if (it != itEnd)
- (*it).Get_Text(o_out);
- for ( ++it;
- it != itEnd;
- ++it )
- {
- o_out << "::";
- (*it).Get_Text(o_out);
- }
- o_out << '>';
-}
-
-
-void
-SegmentedName::Interpret_Text( const char * i_text )
-{
- const int blank = 1;
- const int name = 2;
- const int delimiter = 3;
- const int open_tpl = 4;
-
- const int
- C_aTextInterpreter[128] =
- {
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, blank, blank, 0, 0, blank, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- blank, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- name, name, name, name, name, name, name, name,
- name, name, delimiter, 0, open_tpl, 0, 0, 0,
-
- 0, name, name, name, name, name, name, name,
- name, name, name, name, name, name, name, name,
- name, name, name, name, name, name, name, name,
- name, name, name, 0, 0, 0, 0, name,
- 0, name, name, name, name, name, name, name,
- name, name, name, name, name, name, name, name,
- name, name, name, name, name, name, name, name,
- name, name, name, 0, 0, 0, 0, 0
- };
-
- Dyn<sn::NameSegment>
- pNextSegment(0);
- const char * pTokenStart = i_text;
-
- intt nDelimiterStep = 0; // 0 = in-name,
- // 1 = first ':' found
- uintt nTemplateLevel = 0;
- bool bTokenFinished = false;
-
- const char * iter = i_text;
- for ( ; *iter != 0; ++iter)
- {
- if (nTemplateLevel == 0)
- {
- switch (C_aTextInterpreter[int(*iter)])
- {
- case name:
- if (bTokenFinished)
- {
- aSegments.push_back(*pNextSegment.Release());
- pTokenStart = iter;
- nDelimiterStep = 0;
- bTokenFinished = false;
- }
- break;
- case delimiter:
- if (nDelimiterStep == 0)
- {
- pNextSegment = new sn::NameSegment(String(pTokenStart,iter));
- bTokenFinished = true;
- }
- ++nDelimiterStep;
- break;
- case open_tpl:
- pNextSegment = new sn::NameSegment(String(pTokenStart,iter));
- bTokenFinished = true;
- break;
- default:
- csv_assert(false);
- } // end switch
- }
- else // nTemplateLevel > 0
- {
- if (bTokenFinished)
- {
- pTokenStart = iter;
- bTokenFinished = false;
- }
- if (*iter == '<')
- ++nTemplateLevel;
- else if (*iter == '>')
- {
- --nTemplateLevel;
- if (nTemplateLevel == 0)
- {
- csv_assert(pNextSegment);
- pNextSegment->Make_Template() = String(pTokenStart, iter);
- bTokenFinished = true;
- }
- }
- } // end if (nTemplateLevel == 0)
- } // end for
-
- if (NOT bTokenFinished AND pTokenStart != iter)
- {
- pNextSegment = new sn::NameSegment(String(pTokenStart,iter));
- aSegments.push_back(*pNextSegment.Release());
- }
-}
-
-
-} // namespace ary
diff --git a/autodoc/source/ary/kernel/slots.cxx b/autodoc/source/ary/kernel/slots.cxx
index f4b7fee2a7f5..78c0c8f89ba5 100644
--- a/autodoc/source/ary/kernel/slots.cxx
+++ b/autodoc/source/ary/kernel/slots.cxx
@@ -77,38 +77,6 @@ Slot_Null::StoreEntries( Display & ) const
// Does nothing
}
-
-//*********************** Slot_RidSet ********************//
-
-Slot_RidSet::Slot_RidSet( const Set_Rid & i_rData )
- : pData(&i_rData)
-{
-}
-
-Slot_RidSet::~Slot_RidSet()
-{
-}
-
-uintt
-Slot_RidSet::Size() const
-{
- return pData->size();;
-}
-
-void
-Slot_RidSet::StoreEntries( Display & o_rDestination ) const
-{
- for ( Set_Rid::const_iterator it = pData->begin();
- it != pData->end();
- ++it )
- {
- o_rDestination.DisplaySlot_Rid( *it );
- }
-}
-
-
-
-
//*********************** Slot_MapLocalCe ********************//
Slot_MapLocalCe::Slot_MapLocalCe( const cpp::Map_LocalCe & i_rData )
@@ -167,37 +135,6 @@ Slot_MapOperations::StoreEntries( Display & o_rDestination ) const
}
}
-
-//*********************** Slot_RidList ********************//
-
-Slot_RidList::Slot_RidList( const List_Rid & i_rData )
- : pData(&i_rData)
-{
-}
-
-Slot_RidList::~Slot_RidList()
-{
-}
-
-uintt
-Slot_RidList::Size() const
-{
- return pData->size();;
-}
-
-void
-Slot_RidList::StoreEntries( Display & o_rDestination ) const
-{
- for ( List_Rid::const_iterator it = pData->begin();
- it != pData->end();
- ++it )
- {
- o_rDestination.DisplaySlot_Rid( *it );
- }
-}
-
-
-
//*********************** Slot_ListLocalCe ********************//
Slot_ListLocalCe::Slot_ListLocalCe( const cpp::List_LocalCe & i_rData )
diff --git a/autodoc/source/ary/kernel/x_ary.cxx b/autodoc/source/ary/kernel/x_ary.cxx
deleted file mode 100644
index 360a12023f51..000000000000
--- a/autodoc/source/ary/kernel/x_ary.cxx
+++ /dev/null
@@ -1,77 +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.cxx,v $
- * $Revision: 1.6 $
- *
- * 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/x_ary.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-
-
-
-namespace ary
-{
-
-
-X_Ary::X_Ary( E_Event i_eEvent )
- : eEvent(i_eEvent)
-{
-}
-
-void
-X_Ary::GetInfo( std::ostream & o_rOutputMedium ) const
-{
- switch (eEvent)
- {
- case x_MultipleRepository:
- o_rOutputMedium << "Tried to create a repository instance, though there exists one already.";
- break;
- case x_MissingRepository:
- o_rOutputMedium << "Tried to access the repository, though there exists none.";
- break;
- case x_EntityNotFound:
- o_rOutputMedium << "Code entity not found in repository.";
- break;
- case x_ConflictingNames:
- o_rOutputMedium << "Name of code entity occurs double in different versions.";
- break;
- case x_UnexpectedTypeOfObject:
- o_rOutputMedium << "Name- or id-mismatch: Code entity had other type than expected.";
- break;
- case x_Any:
- default:
- o_rOutputMedium << "Unspecified exception in repository.";
- } // end switch
- o_rOutputMedium << Endl();
-}
-
-
-} // namespace ary
-