1         /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef ADC_DISPLAY_HFI_METHOD_HXX
29 #define ADC_DISPLAY_HFI_METHOD_HXX
30 
31 
32 
33 // USED SERVICES
34     // BASE CLASSES
35 #include "hi_factory.hxx"
36     // COMPONENTS
37     // PARAMETERS
38 #include <ary/idl/i_param.hxx>
39 #include <ary/doc/d_oldidldocu.hxx>
40 typedef ary::doc::OldIdlDocu CodeInfo;
41 #include "hfi_linklist.hxx"
42 
43 
44 
45 namespace csi
46 {
47     namespace idl
48     {
49         class Parameter;
50     }
51 }
52 
53 class HF_FunctionDeclaration;
54 
55 class HF_IdlMethod : public HtmlFactory_Idl
56 {
57   public:
58     typedef ary::StdConstIterator<ary::idl::Parameter>  param_list;
59 
60                         HF_IdlMethod(
61                             Environment &       io_rEnv,
62                             Xml::Element &      o_cell );
63     virtual             ~HF_IdlMethod();
64 
65     void                Produce_byData(
66                             const String &      i_sName,
67                             type_id             i_nReturnType,
68                             param_list &        i_rParams,
69                             type_list &         i_rExceptions,
70                             bool                i_bOneway,
71                             bool				i_bEllipse,
72                             const client &      i_ce ) const;
73   private:
74     void                write_Declaration(
75                             const String &      i_sName,
76                             type_id             i_nReturnType,
77                             param_list &        i_rParams,
78                             type_list &         i_rExceptions,
79                             bool                i_bOneway,
80                             bool				i_bEllipse ) const;
81 //    void                write_Param(
82 //                            HF_IdlTypeText &    o_type,
83 //                            Xml::Element &      o_names,
84 //                            const ary::idl::Parameter &
85 //                                                i_param ) const;
86 
87     Xml::Element *      write_Param(
88                             HF_FunctionDeclaration &
89                                                 o_decl,
90                             const ary::idl::Parameter &
91                                                 i_param ) const;
92     void                enter_ContentCell() const;
93     void                leave_ContentCell() const;
94 };
95 
96 
97 
98 // IMPLEMENTATION
99 
100 
101 
102 #endif
103 
104 
105