1*1c78a5d6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1c78a5d6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1c78a5d6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1c78a5d6SAndrew Rist * distributed with this work for additional information 6*1c78a5d6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1c78a5d6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1c78a5d6SAndrew Rist * "License"); you may not use this file except in compliance 9*1c78a5d6SAndrew Rist * with the License. You may obtain a copy of the License at 10*1c78a5d6SAndrew Rist * 11*1c78a5d6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1c78a5d6SAndrew Rist * 13*1c78a5d6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1c78a5d6SAndrew Rist * software distributed under the License is distributed on an 15*1c78a5d6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1c78a5d6SAndrew Rist * KIND, either express or implied. See the License for the 17*1c78a5d6SAndrew Rist * specific language governing permissions and limitations 18*1c78a5d6SAndrew Rist * under the License. 19*1c78a5d6SAndrew Rist * 20*1c78a5d6SAndrew Rist *************************************************************/ 21*1c78a5d6SAndrew Rist 22*1c78a5d6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef ADC_DISPLAY_HFI_PROPERTY_HXX 25cdf0e10cSrcweir #define ADC_DISPLAY_HFI_PROPERTY_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir // USED SERVICES 30cdf0e10cSrcweir // BASE CLASSES 31cdf0e10cSrcweir #include "hi_factory.hxx" 32cdf0e10cSrcweir // COMPONENTS 33cdf0e10cSrcweir // PARAMETERS 34cdf0e10cSrcweir #include <ary/idl/i_comrela.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir class HF_SubTitleTable; 37cdf0e10cSrcweir 38cdf0e10cSrcweir class HF_IdlDataMember : public HtmlFactory_Idl 39cdf0e10cSrcweir { 40cdf0e10cSrcweir public: 41cdf0e10cSrcweir void Produce_byData( 42cdf0e10cSrcweir const client & ce ) const; 43cdf0e10cSrcweir protected: 44cdf0e10cSrcweir HF_IdlDataMember( 45cdf0e10cSrcweir Environment & io_rEnv, 46cdf0e10cSrcweir HF_SubTitleTable & o_table ); ~HF_IdlDataMember()47cdf0e10cSrcweir virtual ~HF_IdlDataMember() {} 48cdf0e10cSrcweir 49cdf0e10cSrcweir private: 50cdf0e10cSrcweir virtual void write_Title( 51cdf0e10cSrcweir const client & i_ce ) const; 52cdf0e10cSrcweir 53cdf0e10cSrcweir virtual void write_Declaration( 54cdf0e10cSrcweir const client & i_ce ) const = 0; 55cdf0e10cSrcweir 56cdf0e10cSrcweir virtual void write_Description( 57cdf0e10cSrcweir const client & i_ce ) const; 58cdf0e10cSrcweir 59cdf0e10cSrcweir void enter_ContentCell() const; 60cdf0e10cSrcweir void leave_ContentCell() const; 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweir 65cdf0e10cSrcweir class HF_IdlProperty : public HF_IdlDataMember 66cdf0e10cSrcweir { 67cdf0e10cSrcweir public: HF_IdlProperty(Environment & io_rEnv,HF_SubTitleTable & o_table)68cdf0e10cSrcweir HF_IdlProperty( 69cdf0e10cSrcweir Environment & io_rEnv, 70cdf0e10cSrcweir HF_SubTitleTable & o_table ) 71cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) {} 72cdf0e10cSrcweir virtual ~HF_IdlProperty(); 73cdf0e10cSrcweir private: 74cdf0e10cSrcweir virtual void write_Declaration( 75cdf0e10cSrcweir const client & i_ce ) const; 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir 78cdf0e10cSrcweir class HF_IdlAttribute : public HF_IdlDataMember 79cdf0e10cSrcweir { 80cdf0e10cSrcweir public: HF_IdlAttribute(Environment & io_rEnv,HF_SubTitleTable & o_table)81cdf0e10cSrcweir HF_IdlAttribute( 82cdf0e10cSrcweir Environment & io_rEnv, 83cdf0e10cSrcweir HF_SubTitleTable & o_table ) 84cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) {} 85cdf0e10cSrcweir virtual ~HF_IdlAttribute(); 86cdf0e10cSrcweir 87cdf0e10cSrcweir private: 88cdf0e10cSrcweir virtual void write_Declaration( 89cdf0e10cSrcweir const client & i_ce ) const; 90cdf0e10cSrcweir }; 91cdf0e10cSrcweir 92cdf0e10cSrcweir 93cdf0e10cSrcweir class HF_IdlEnumValue : public HF_IdlDataMember 94cdf0e10cSrcweir { 95cdf0e10cSrcweir public: HF_IdlEnumValue(Environment & io_rEnv,HF_SubTitleTable & o_table)96cdf0e10cSrcweir HF_IdlEnumValue( 97cdf0e10cSrcweir Environment & io_rEnv, 98cdf0e10cSrcweir HF_SubTitleTable & o_table ) 99cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) {} 100cdf0e10cSrcweir virtual ~HF_IdlEnumValue(); 101cdf0e10cSrcweir 102cdf0e10cSrcweir private: 103cdf0e10cSrcweir virtual void write_Declaration( 104cdf0e10cSrcweir const client & i_ce ) const; 105cdf0e10cSrcweir }; 106cdf0e10cSrcweir 107cdf0e10cSrcweir class HF_IdlConstant : public HF_IdlDataMember 108cdf0e10cSrcweir { 109cdf0e10cSrcweir public: HF_IdlConstant(Environment & io_rEnv,HF_SubTitleTable & o_table)110cdf0e10cSrcweir HF_IdlConstant( 111cdf0e10cSrcweir Environment & io_rEnv, 112cdf0e10cSrcweir HF_SubTitleTable & o_table ) 113cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) {} 114cdf0e10cSrcweir virtual ~HF_IdlConstant(); 115cdf0e10cSrcweir 116cdf0e10cSrcweir private: 117cdf0e10cSrcweir virtual void write_Declaration( 118cdf0e10cSrcweir const client & i_ce ) const; 119cdf0e10cSrcweir }; 120cdf0e10cSrcweir 121cdf0e10cSrcweir 122cdf0e10cSrcweir class HF_IdlStructElement : public HF_IdlDataMember 123cdf0e10cSrcweir { 124cdf0e10cSrcweir public: HF_IdlStructElement(Environment & io_rEnv,HF_SubTitleTable & o_table)125cdf0e10cSrcweir HF_IdlStructElement( 126cdf0e10cSrcweir Environment & io_rEnv, 127cdf0e10cSrcweir HF_SubTitleTable & o_table ) 128cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) {} 129cdf0e10cSrcweir virtual ~HF_IdlStructElement(); 130cdf0e10cSrcweir 131cdf0e10cSrcweir private: 132cdf0e10cSrcweir virtual void write_Declaration( 133cdf0e10cSrcweir const client & i_ce ) const; 134cdf0e10cSrcweir }; 135cdf0e10cSrcweir 136cdf0e10cSrcweir class HF_IdlCommentedRelationElement : public HF_IdlDataMember 137cdf0e10cSrcweir { 138cdf0e10cSrcweir public: HF_IdlCommentedRelationElement(Environment & io_rEnv,HF_SubTitleTable & o_table,const ary::idl::CommentedRelation & i_relation)139cdf0e10cSrcweir HF_IdlCommentedRelationElement( 140cdf0e10cSrcweir Environment & io_rEnv, 141cdf0e10cSrcweir HF_SubTitleTable & o_table, 142cdf0e10cSrcweir const ary::idl::CommentedRelation& i_relation ) 143cdf0e10cSrcweir : HF_IdlDataMember(io_rEnv, o_table) 144cdf0e10cSrcweir , m_relation( i_relation ) 145cdf0e10cSrcweir { 146cdf0e10cSrcweir } 147cdf0e10cSrcweir virtual ~HF_IdlCommentedRelationElement(); 148cdf0e10cSrcweir 149cdf0e10cSrcweir typedef ::ary::idl::CommentedRelation comref; 150cdf0e10cSrcweir 151cdf0e10cSrcweir static void produce_LinkDoc( 152cdf0e10cSrcweir Environment & io_env, 153cdf0e10cSrcweir const client & i_ce, 154cdf0e10cSrcweir Xml::Element & io_context, 155cdf0e10cSrcweir const comref & i_commentedRef, 156cdf0e10cSrcweir const E_DocType i_docType ); 157cdf0e10cSrcweir 158cdf0e10cSrcweir private: 159cdf0e10cSrcweir virtual void write_Title( 160cdf0e10cSrcweir const client & i_ce ) const; 161cdf0e10cSrcweir virtual void write_Declaration( 162cdf0e10cSrcweir const client & i_ce ) const; 163cdf0e10cSrcweir virtual void write_Description( 164cdf0e10cSrcweir const client & i_ce ) const; 165cdf0e10cSrcweir private: 166cdf0e10cSrcweir static void produce_Summary( Environment & io_env, 167cdf0e10cSrcweir Xml::Element & io_context, 168cdf0e10cSrcweir const comref & i_commentedRef, 169cdf0e10cSrcweir const client & i_rScopeGivingCe ); 170cdf0e10cSrcweir 171cdf0e10cSrcweir static String get_LocalLinkName( Environment & io_env, 172cdf0e10cSrcweir const comref & i_commentedRef ); 173cdf0e10cSrcweir 174cdf0e10cSrcweir private: 175cdf0e10cSrcweir const ary::idl::CommentedRelation& m_relation; 176cdf0e10cSrcweir }; 177cdf0e10cSrcweir 178cdf0e10cSrcweir #endif 179