1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef ADC_DISPLAY_HFIDMAIN_HXX 29*cdf0e10cSrcweir #define ADC_DISPLAY_HFIDMAIN_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir // USED SERVICES 34*cdf0e10cSrcweir // BASE CLASSES 35*cdf0e10cSrcweir #include <cosv/tpl/processor.hxx> 36*cdf0e10cSrcweir // COMPONENTS 37*cdf0e10cSrcweir #include "hi_factory.hxx" 38*cdf0e10cSrcweir // PARAMETERS 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir class HtmlEnvironment_Idl; 42*cdf0e10cSrcweir class HtmlFactory_Idl; 43*cdf0e10cSrcweir class DocuFile_Html; 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir namespace ary 46*cdf0e10cSrcweir { 47*cdf0e10cSrcweir namespace idl 48*cdf0e10cSrcweir { 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir class Module; 51*cdf0e10cSrcweir class Service; 52*cdf0e10cSrcweir class SglIfcService; 53*cdf0e10cSrcweir class Interface; 54*cdf0e10cSrcweir class Struct; 55*cdf0e10cSrcweir class Exception; 56*cdf0e10cSrcweir class Enum; 57*cdf0e10cSrcweir class Typedef; 58*cdf0e10cSrcweir class ConstantsGroup; 59*cdf0e10cSrcweir class Singleton; 60*cdf0e10cSrcweir class SglIfcSingleton; 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir } // namespace idl 63*cdf0e10cSrcweir } // namespace ary 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir class MainDisplay_Idl : public csv::ProcessorIfc, 67*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Module>, 68*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Service>, 69*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::SglIfcService>, 70*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Interface>, 71*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Struct>, 72*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Exception>, 73*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Enum>, 74*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Typedef>, 75*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::ConstantsGroup>, 76*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::Singleton>, 77*cdf0e10cSrcweir public csv::ConstProcessor<ary::idl::SglIfcSingleton> 78*cdf0e10cSrcweir { 79*cdf0e10cSrcweir public: 80*cdf0e10cSrcweir MainDisplay_Idl( 81*cdf0e10cSrcweir HtmlEnvironment_Idl & 82*cdf0e10cSrcweir io_rEnv ); 83*cdf0e10cSrcweir virtual ~MainDisplay_Idl(); 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir void WriteGlobalIndices(); 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir void Display_NamedEntityHierarchy(); 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir private: 90*cdf0e10cSrcweir // Interface csv::ProcessorIfc: 91*cdf0e10cSrcweir virtual void do_Process( 92*cdf0e10cSrcweir const ary::idl::Module & i_client ); 93*cdf0e10cSrcweir virtual void do_Process( 94*cdf0e10cSrcweir const ary::idl::Service & i_client ); 95*cdf0e10cSrcweir virtual void do_Process( 96*cdf0e10cSrcweir const ary::idl::SglIfcService & 97*cdf0e10cSrcweir i_client ); 98*cdf0e10cSrcweir virtual void do_Process( 99*cdf0e10cSrcweir const ary::idl::Interface & i_client ); 100*cdf0e10cSrcweir virtual void do_Process( 101*cdf0e10cSrcweir const ary::idl::Struct & i_client ); 102*cdf0e10cSrcweir virtual void do_Process( 103*cdf0e10cSrcweir const ary::idl::Exception & i_client ); 104*cdf0e10cSrcweir virtual void do_Process( 105*cdf0e10cSrcweir const ary::idl::Enum & i_client ); 106*cdf0e10cSrcweir virtual void do_Process( 107*cdf0e10cSrcweir const ary::idl::Typedef & i_client ); 108*cdf0e10cSrcweir virtual void do_Process( 109*cdf0e10cSrcweir const ary::idl::ConstantsGroup & 110*cdf0e10cSrcweir i_client ); 111*cdf0e10cSrcweir virtual void do_Process( 112*cdf0e10cSrcweir const ary::idl::Singleton & i_client ); 113*cdf0e10cSrcweir virtual void do_Process( 114*cdf0e10cSrcweir const ary::idl::SglIfcSingleton & 115*cdf0e10cSrcweir i_client ); 116*cdf0e10cSrcweir // Locals 117*cdf0e10cSrcweir void do_ServiceDescr( 118*cdf0e10cSrcweir const ary::idl::CodeEntity & 119*cdf0e10cSrcweir i_rData ); 120*cdf0e10cSrcweir void do_SglIfcServiceDescr( 121*cdf0e10cSrcweir const ary::idl::CodeEntity & 122*cdf0e10cSrcweir i_rData ); 123*cdf0e10cSrcweir void do_InterfaceDescr( 124*cdf0e10cSrcweir const ary::idl::CodeEntity & 125*cdf0e10cSrcweir i_rData ); 126*cdf0e10cSrcweir void do_StructDescr( 127*cdf0e10cSrcweir const ary::idl::CodeEntity & 128*cdf0e10cSrcweir i_rData ); 129*cdf0e10cSrcweir void do_ExceptionDescr( 130*cdf0e10cSrcweir const ary::idl::CodeEntity & 131*cdf0e10cSrcweir i_rData ); 132*cdf0e10cSrcweir void do_EnumDescr( 133*cdf0e10cSrcweir const ary::idl::CodeEntity & 134*cdf0e10cSrcweir i_rData ); 135*cdf0e10cSrcweir void do_TypedefDescr( 136*cdf0e10cSrcweir const ary::idl::CodeEntity & 137*cdf0e10cSrcweir i_rData ); 138*cdf0e10cSrcweir void do_SingletonDescr( 139*cdf0e10cSrcweir const ary::idl::CodeEntity & 140*cdf0e10cSrcweir i_rData ); 141*cdf0e10cSrcweir void do_Service2s( 142*cdf0e10cSrcweir const ary::idl::CodeEntity & 143*cdf0e10cSrcweir i_rData ); 144*cdf0e10cSrcweir void do_Interface2s( 145*cdf0e10cSrcweir const ary::idl::CodeEntity & 146*cdf0e10cSrcweir i_rData ); 147*cdf0e10cSrcweir void do_Struct2s( 148*cdf0e10cSrcweir const ary::idl::CodeEntity & 149*cdf0e10cSrcweir i_rData ); 150*cdf0e10cSrcweir void do_Exception2s( 151*cdf0e10cSrcweir const ary::idl::CodeEntity & 152*cdf0e10cSrcweir i_rData ); 153*cdf0e10cSrcweir void do_Enum2s( 154*cdf0e10cSrcweir const ary::idl::CodeEntity & 155*cdf0e10cSrcweir i_rData ); 156*cdf0e10cSrcweir void do_Typedef2s( 157*cdf0e10cSrcweir const ary::idl::CodeEntity & 158*cdf0e10cSrcweir i_rData ); 159*cdf0e10cSrcweir void do_Singleton2s( 160*cdf0e10cSrcweir const ary::idl::CodeEntity & 161*cdf0e10cSrcweir i_rData ); 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir const HtmlEnvironment_Idl & 164*cdf0e10cSrcweir Env() const { return *pEnv; } 165*cdf0e10cSrcweir HtmlEnvironment_Idl & 166*cdf0e10cSrcweir Env() { return *pEnv; } 167*cdf0e10cSrcweir Xml::Element & CurHtmlOut() { return pCurFactory->CurOut(); } 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir // DATA 170*cdf0e10cSrcweir HtmlEnvironment_Idl * 171*cdf0e10cSrcweir pEnv; 172*cdf0e10cSrcweir Dyn<DocuFile_Html> pMyFile; 173*cdf0e10cSrcweir HtmlFactory_Idl * pCurFactory; 174*cdf0e10cSrcweir }; 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir #endif 179