fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / display / toolkit / hf_funcdecl.cxx
blobaf7e9469aca0c4063641d705342549313ddd4464
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <precomp.h>
21 #include <toolkit/hf_funcdecl.hxx>
24 // NOT FULLY DEFINED SERVICES
26 const String C_sValignTop("top");
27 const String C_sValignBottom("bottom");
31 HF_FunctionDeclaration::HF_FunctionDeclaration( Xml::Element & o_rParent,
32 const String & i_sRaisesText )
33 : HtmlMaker(o_rParent),
34 sRaisesText(i_sRaisesText),
35 pTable(0),
36 pReturnCell(0),
37 pNameCell(0),
38 pParameterLine(0),
39 pLastParameterCell(0),
40 pExceptionCell(0)
42 pTable = new Html::Table;
43 CurOut()
44 >> *pTable
45 << new Html::ClassAttr("table-in-method")
46 << new Xml::AnAttribute("border","0");
49 HF_FunctionDeclaration::~HF_FunctionDeclaration()
53 Xml::Element &
54 HF_FunctionDeclaration::ReturnCell()
56 if (pReturnCell != 0)
57 return *pReturnCell;
59 pReturnCell = &( *pTable
60 >> *new Html::TableRow
61 >> *new Html::TableCell
62 << new Html::VAlignAttr(C_sValignTop)
63 << new Xml::AnAttribute("colspan", "3")
65 return *pReturnCell;
68 Xml::Element &
69 HF_FunctionDeclaration::NameCell()
71 if (pNameCell != 0)
72 return *pNameCell;
74 pNameCell = &( ParameterLine()
75 >> *new Html::TableCell
76 << new Html::VAlignAttr(C_sValignTop)
78 pLastParameterCell = pNameCell;
80 return *pNameCell;
83 Xml::Element &
84 HF_FunctionDeclaration::NewParamTypeCell()
86 if (pLastParameterCell != pNameCell)
88 pParameterLine = 0;
89 ParameterLine()
90 >> *new Html::TableCell;
93 Xml::Element &
94 rParamType = ParameterLine()
95 >> *new Html::TableCell
96 << new Html::VAlignAttr(C_sValignTop);
97 pLastParameterCell
98 = &( ParameterLine()
99 >> *new Html::TableCell
100 << new Html::VAlignAttr(C_sValignBottom)
101 << new Xml::XmlCode("&nbsp;")
103 return rParamType;
106 Xml::Element &
107 HF_FunctionDeclaration::ParamNameCell()
109 csv_assert(pLastParameterCell != pNameCell);
110 return *pLastParameterCell;
113 Xml::Element &
114 HF_FunctionDeclaration::ExceptionCell()
116 if (pExceptionCell != 0)
117 return *pExceptionCell;
119 Xml::Element &
120 rExceptionRow = *pTable
121 >> *new Html::TableRow;
122 rExceptionRow
123 >> *new Html::TableCell
124 << new Html::VAlignAttr(C_sValignTop)
125 << new Xml::AnAttribute("align", "right")
126 << sRaisesText
127 << "( ";
129 pExceptionCell = &( rExceptionRow
130 >> *new Html::TableCell
131 << new Html::VAlignAttr(C_sValignTop)
132 << new Xml::AnAttribute("colspan", "2")
134 return *pExceptionCell;
137 Html::TableRow &
138 HF_FunctionDeclaration::ParameterLine()
140 if (pParameterLine != 0)
141 return *pParameterLine;
143 pParameterLine = new Html::TableRow;
144 *pTable
145 >> *pParameterLine;
147 return *pParameterLine;
150 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */