Update ooo320-m1
[ooovba.git] / autodoc / source / parser / cpp / icprivow.hxx
blob1e35e03bae4e5c6548856e928df4f2bc9cc90925
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: icprivow.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ARY_CPP_ICPRIVOW_HXX
32 #define ARY_CPP_ICPRIVOW_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 #include <ary/cpp/inpcontx.hxx>
39 // COMPONENTS
40 // PARAMETERS
42 namespace cpp
47 typedef ary::cpp::Ce_id Cid;
50 class Owner_Namespace : public ary::cpp::InputContext::Owner
52 public:
53 Owner_Namespace();
54 void SetAnotherNamespace(
55 ary::cpp::Namespace &
56 io_rScope );
57 virtual bool HasClass(
58 const String & i_sLocalName );
59 private:
60 virtual void do_Add_Class(
61 const String & i_sLocalName,
62 Cid i_nId );
63 virtual void do_Add_Enum(
64 const String & i_sLocalName,
65 Cid i_nId );
66 virtual void do_Add_Typedef(
67 const String & i_sLocalName,
68 Cid i_nId );
69 virtual void do_Add_Operation(
70 const String & i_sLocalName,
71 Cid i_nId,
72 bool );
73 virtual void do_Add_Variable(
74 const String & i_sLocalName,
75 Cid i_nId,
76 bool i_bIsConst,
77 bool i_bIsStatic );
78 virtual Cid inq_CeId() const;
80 // DATA
81 ary::cpp::Namespace *
82 pScope;
85 class Owner_Class : public ary::cpp::InputContext::Owner
87 public:
88 Owner_Class();
89 void SetAnotherClass(
90 ary::cpp::Class & io_rScope );
92 /** @attention Only a dummy for use at ary::cpp::Gate!
93 Will work nerver!
95 virtual bool HasClass(
96 const String & i_sLocalName );
97 private:
98 virtual void do_Add_Class(
99 const String & i_sLocalName,
100 Cid i_nId );
101 virtual void do_Add_Enum(
102 const String & i_sLocalName,
103 Cid i_nId );
104 virtual void do_Add_Typedef(
105 const String & i_sLocalName,
106 Cid i_nId );
107 virtual void do_Add_Operation(
108 const String & i_sLocalName,
109 Cid i_nId,
110 bool i_bIsStaticMember );
111 virtual void do_Add_Variable(
112 const String & i_sLocalName,
113 Cid i_nId,
114 bool i_bIsConst,
115 bool i_bIsStatic );
116 virtual Cid inq_CeId() const;
118 // DATA
119 ary::cpp::Class * pScope;
125 } // namespace cpp
126 #endif