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