1*0841af79SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*0841af79SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*0841af79SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*0841af79SAndrew Rist * distributed with this work for additional information 6*0841af79SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*0841af79SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*0841af79SAndrew Rist * "License"); you may not use this file except in compliance 9*0841af79SAndrew Rist * with the License. You may obtain a copy of the License at 10*0841af79SAndrew Rist * 11*0841af79SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*0841af79SAndrew Rist * 13*0841af79SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*0841af79SAndrew Rist * software distributed under the License is distributed on an 15*0841af79SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*0841af79SAndrew Rist * KIND, either express or implied. See the License for the 17*0841af79SAndrew Rist * specific language governing permissions and limitations 18*0841af79SAndrew Rist * under the License. 19*0841af79SAndrew Rist * 20*0841af79SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include "displfct.hxx" 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES 27cdf0e10cSrcweir #include <html/chd_udk2.hxx> 28cdf0e10cSrcweir #include <idl/hi_display.hxx> 29cdf0e10cSrcweir #include <cfrstd.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir DYN DisplayToolsFactory * DisplayToolsFactory::dpTheInstance_ = 0; 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace autodoc 36cdf0e10cSrcweir { 37cdf0e10cSrcweir 38cdf0e10cSrcweir DisplayToolsFactory_Ifc & GetIt_()39cdf0e10cSrcweirDisplayToolsFactory_Ifc::GetIt_() 40cdf0e10cSrcweir { 41cdf0e10cSrcweir if ( DisplayToolsFactory::dpTheInstance_ == 0 ) 42cdf0e10cSrcweir DisplayToolsFactory::dpTheInstance_ = new DisplayToolsFactory; 43cdf0e10cSrcweir return *DisplayToolsFactory::dpTheInstance_; 44cdf0e10cSrcweir } 45cdf0e10cSrcweir 46cdf0e10cSrcweir } // namespace autodoc 47cdf0e10cSrcweir 48cdf0e10cSrcweir DisplayToolsFactory()49cdf0e10cSrcweirDisplayToolsFactory::DisplayToolsFactory() 50cdf0e10cSrcweir { 51cdf0e10cSrcweir } 52cdf0e10cSrcweir ~DisplayToolsFactory()53cdf0e10cSrcweirDisplayToolsFactory::~DisplayToolsFactory() 54cdf0e10cSrcweir { 55cdf0e10cSrcweir } 56cdf0e10cSrcweir 57cdf0e10cSrcweir // DYN autodoc::TextDisplay_FunctionList_Ifc * 58cdf0e10cSrcweir // DisplayToolsFactory::Create_TextDisplay_FunctionList() const 59cdf0e10cSrcweir // { 60cdf0e10cSrcweir // return new CppTextDisplay_FunctionList; 61cdf0e10cSrcweir // } 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweir DYN autodoc::HtmlDisplay_UdkStd * Create_HtmlDisplay_UdkStd() const65cdf0e10cSrcweirDisplayToolsFactory::Create_HtmlDisplay_UdkStd() const 66cdf0e10cSrcweir { 67cdf0e10cSrcweir return new CppHtmlDisplay_Udk2; 68cdf0e10cSrcweir } 69cdf0e10cSrcweir 70cdf0e10cSrcweir DYN autodoc::HtmlDisplay_Idl_Ifc * Create_HtmlDisplay_Idl() const71cdf0e10cSrcweirDisplayToolsFactory::Create_HtmlDisplay_Idl() const 72cdf0e10cSrcweir { 73cdf0e10cSrcweir return new HtmlDisplay_Idl; 74cdf0e10cSrcweir } 75cdf0e10cSrcweir 76cdf0e10cSrcweir const display::CorporateFrame & Create_StdFrame() const77cdf0e10cSrcweirDisplayToolsFactory::Create_StdFrame() const 78cdf0e10cSrcweir { 79cdf0e10cSrcweir static StdFrame aFrame; 80cdf0e10cSrcweir return aFrame; 81cdf0e10cSrcweir } 82cdf0e10cSrcweir 83cdf0e10cSrcweir 84