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 
23 
24 #ifndef ADC_DISPLAY_HF_FUNCDECL_HXX
25 #define ADC_DISPLAY_HF_FUNCDECL_HXX
26 
27 
28 // USED SERVICES
29 	// BASE CLASSES
30 #include <toolkit/htmlfactory.hxx>
31 	// COMPONENTS
32 	// PARAMETERS
33 
34 
35 #if 0   // old
36 /** @resp
37     Provides three cells to put in a function declaration.
38 */
39 class HF_FunctionDeclaration : public HtmlMaker
40 {
41   public:
42                         HF_FunctionDeclaration(
43                             Xml::Element &      o_rParent );
44     virtual             ~HF_FunctionDeclaration();
45 
46     /// Inserts empty line in 2nd and 3rd cell and returns first.
47     Xml::Element &      Add_ReturnLine();
48 
49     /** Inserts empty line in 1st cell, "raises (" in 2nd
50         and returns 3rd.
51     */
52     Xml::Element &      Add_RaisesLine(
53                             const char *        i_sRaisesText,
54                             bool                i_bSuppressExtraLine = false );
55 
56     Xml::Element &      Front()                 { return *pFront; }
57     Xml::Element &      Types()                 { return *pTypes; }
58     Xml::Element &      Names()                 { return *pNames; }
59 
60   private:
61     Xml::Element *      pFront;
62     Xml::Element *      pTypes;
63     Xml::Element *      pNames;
64 };
65 #endif // 0  old
66 
67 class HF_FunctionDeclaration : public HtmlMaker
68 {
69   public:
70                         HF_FunctionDeclaration(
71                             Xml::Element &      o_rParent,
72                             const String &      i_sRaisesText );
73     virtual             ~HF_FunctionDeclaration();
74 
75     // OPERATIONS
76     Xml::Element &      ReturnCell();
77     Xml::Element &      NameCell();
78     Xml::Element &      NewParamTypeCell();
79     Xml::Element &      ParamNameCell();
80     Xml::Element &      ExceptionCell();
81 
82   private:
83     Html::TableRow &    ParameterLine();
84 
85     // DATA
86     String              sRaisesText;
87     Html::Table *       pTable;
88     Xml::Element *      pReturnCell;
89     Xml::Element *      pNameCell;
90     Html::TableRow *    pParameterLine;
91     Xml::Element *      pLastParameterCell;
92     Xml::Element *      pExceptionCell;
93 };
94 
95 
96 // IMPLEMENTATION
97 
98 
99 
100 #endif
101