1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef ADC_DISPLAY_HFI_PROPERTY_HXX
30 #define ADC_DISPLAY_HFI_PROPERTY_HXX
36 #include "hi_factory.hxx"
39 #include <ary/idl/i_comrela.hxx>
41 class HF_SubTitleTable
;
43 class HF_IdlDataMember
: public HtmlFactory_Idl
47 const client
& ce
) const;
50 Environment
& io_rEnv
,
51 HF_SubTitleTable
& o_table
);
52 virtual ~HF_IdlDataMember() {}
55 virtual void write_Title(
56 const client
& i_ce
) const;
58 virtual void write_Declaration(
59 const client
& i_ce
) const = 0;
61 virtual void write_Description(
62 const client
& i_ce
) const;
64 void enter_ContentCell() const;
65 void leave_ContentCell() const;
70 class HF_IdlProperty
: public HF_IdlDataMember
74 Environment
& io_rEnv
,
75 HF_SubTitleTable
& o_table
)
76 : HF_IdlDataMember(io_rEnv
, o_table
) {}
77 virtual ~HF_IdlProperty();
79 virtual void write_Declaration(
80 const client
& i_ce
) const;
83 class HF_IdlAttribute
: public HF_IdlDataMember
87 Environment
& io_rEnv
,
88 HF_SubTitleTable
& o_table
)
89 : HF_IdlDataMember(io_rEnv
, o_table
) {}
90 virtual ~HF_IdlAttribute();
93 virtual void write_Declaration(
94 const client
& i_ce
) const;
98 class HF_IdlEnumValue
: public HF_IdlDataMember
102 Environment
& io_rEnv
,
103 HF_SubTitleTable
& o_table
)
104 : HF_IdlDataMember(io_rEnv
, o_table
) {}
105 virtual ~HF_IdlEnumValue();
108 virtual void write_Declaration(
109 const client
& i_ce
) const;
112 class HF_IdlConstant
: public HF_IdlDataMember
116 Environment
& io_rEnv
,
117 HF_SubTitleTable
& o_table
)
118 : HF_IdlDataMember(io_rEnv
, o_table
) {}
119 virtual ~HF_IdlConstant();
122 virtual void write_Declaration(
123 const client
& i_ce
) const;
127 class HF_IdlStructElement
: public HF_IdlDataMember
131 Environment
& io_rEnv
,
132 HF_SubTitleTable
& o_table
)
133 : HF_IdlDataMember(io_rEnv
, o_table
) {}
134 virtual ~HF_IdlStructElement();
137 virtual void write_Declaration(
138 const client
& i_ce
) const;
141 class HF_IdlCommentedRelationElement
: public HF_IdlDataMember
144 HF_IdlCommentedRelationElement(
145 Environment
& io_rEnv
,
146 HF_SubTitleTable
& o_table
,
147 const ary::idl::CommentedRelation
& i_relation
)
148 : HF_IdlDataMember(io_rEnv
, o_table
)
149 , m_relation( i_relation
)
152 virtual ~HF_IdlCommentedRelationElement();
154 typedef ::ary::idl::CommentedRelation comref
;
156 static void produce_LinkDoc(
157 Environment
& io_env
,
159 Xml::Element
& io_context
,
160 const comref
& i_commentedRef
,
161 const E_DocType i_docType
);
164 virtual void write_Title(
165 const client
& i_ce
) const;
166 virtual void write_Declaration(
167 const client
& i_ce
) const;
168 virtual void write_Description(
169 const client
& i_ce
) const;
171 static void produce_Summary( Environment
& io_env
,
172 Xml::Element
& io_context
,
173 const comref
& i_commentedRef
,
174 const client
& i_rScopeGivingCe
);
176 static String
get_LocalLinkName( Environment
& io_env
,
177 const comref
& i_commentedRef
);
180 const ary::idl::CommentedRelation
& m_relation
;
185 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */