xref: /aoo41x/main/autodoc/inc/ary/idl/i_ce2s.hxx (revision 7925e912)
1cdf0e10cSrcweir /*************************************************************************
2cdf0e10cSrcweir  *
3cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4cdf0e10cSrcweir  *
5cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6cdf0e10cSrcweir  *
7cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8cdf0e10cSrcweir  *
9cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10cdf0e10cSrcweir  *
11cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14cdf0e10cSrcweir  *
15cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20cdf0e10cSrcweir  *
21cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25cdf0e10cSrcweir  *
26cdf0e10cSrcweir  ************************************************************************/
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #ifndef ARY_IDL_I_CE2S_HXX
29cdf0e10cSrcweir #define ARY_IDL_I_CE2S_HXX
30cdf0e10cSrcweir 
31cdf0e10cSrcweir 
32cdf0e10cSrcweir // USED SERVICES
33cdf0e10cSrcweir     // BASE CLASSES
34cdf0e10cSrcweir     // COMPONENTS
35cdf0e10cSrcweir     // PARAMETERS
36cdf0e10cSrcweir #include <ary/idl/i_types4idl.hxx>
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 
39cdf0e10cSrcweir namespace ary
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 
42cdf0e10cSrcweir namespace idl
43cdf0e10cSrcweir {
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 
47cdf0e10cSrcweir /** Abstract base for all secondary productions of code entities
48cdf0e10cSrcweir */
49cdf0e10cSrcweir class Ce_2s
50cdf0e10cSrcweir {
51cdf0e10cSrcweir   public:
52cdf0e10cSrcweir     // LIFECYCLE
53*7925e912SMichael Stahl     explicit Ce_2s () { }
54cdf0e10cSrcweir     virtual             ~Ce_2s();
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     static DYN Ce_2s *  Create_(
57cdf0e10cSrcweir                             ClassId             i_nCeClass );
58cdf0e10cSrcweir     // OPERATIONS
59cdf0e10cSrcweir     void                Add_Link2DescriptionInManual(
60cdf0e10cSrcweir                             const String &      i_link,
61cdf0e10cSrcweir                             const String &      i_linkUI )
62cdf0e10cSrcweir                                                 { aDescriptionsInManual.push_back(i_link); aDescriptionsInManual.push_back(i_linkUI); }
63cdf0e10cSrcweir     void                Add_Link2RefInManual(
64cdf0e10cSrcweir                             const String &      i_link,
65cdf0e10cSrcweir                             const String &      i_linkUI )
66cdf0e10cSrcweir                                                 { aRefsInManual.push_back(i_link); aRefsInManual.push_back(i_linkUI); }
67cdf0e10cSrcweir     std::vector<Ce_id> &
68cdf0e10cSrcweir                         Access_List(
69cdf0e10cSrcweir                             int                 i_indexOfList );
70cdf0e10cSrcweir     // INQUIRY
71cdf0e10cSrcweir     const StringVector &
72cdf0e10cSrcweir                         Links2DescriptionInManual() const
73cdf0e10cSrcweir                                                 { return aDescriptionsInManual; }
74cdf0e10cSrcweir     const StringVector &
75cdf0e10cSrcweir                         Links2RefsInManual() const
76cdf0e10cSrcweir                                                 { return aRefsInManual; }
77cdf0e10cSrcweir     int                 CountXrefLists() const  { return aXrefLists.size(); }
78cdf0e10cSrcweir     const std::vector<Ce_id> &
79cdf0e10cSrcweir                         List(
80cdf0e10cSrcweir                             int                 i_indexOfList ) const;
81cdf0e10cSrcweir   private:
82cdf0e10cSrcweir     typedef DYN std::vector<Ce_id> * ListPtr;
83cdf0e10cSrcweir 
84cdf0e10cSrcweir     // DATA
85cdf0e10cSrcweir     StringVector        aDescriptionsInManual;
86cdf0e10cSrcweir     StringVector        aRefsInManual;
87cdf0e10cSrcweir     std::vector<ListPtr>
88cdf0e10cSrcweir                         aXrefLists;
89cdf0e10cSrcweir };
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 
93cdf0e10cSrcweir 
94cdf0e10cSrcweir }   // namespace idl
95cdf0e10cSrcweir }   // namespace ary
96cdf0e10cSrcweir #endif
97