fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / udm / html / htmlitem.hxx
blob1750f5f0cb6a782bc36f87fefaa8069d9901c8af
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 #ifndef CSI_HTML_HTMLITEM_HXX
21 #define CSI_HTML_HTMLITEM_HXX
23 // USED SERVICES
24 // BASE CLASSES
25 #include <udm/xml/xmlitem.hxx>
26 // COMPONENTS
27 // PARAMETERS
30 namespace csi
32 namespace html
35 /** <BODY>
37 class Body : public csi::xml::AnElement
39 public:
40 Body()
41 : csi::xml::AnElement( "body" ) {}
42 private:
43 virtual bool LineBreakAfterBeginTag() const;
46 /** <BR>
48 class HorizontalLine : public xml::XmlCode
50 public:
51 HorizontalLine()
52 : xml::XmlCode("<hr>\n") {}
55 /** <A name="">
57 class Label : public csi::xml::AnElement
59 public:
60 Label(
61 const ::csv::String & i_sLabel )
62 : csi::xml::AnElement("a")
63 { *this << new csi::xml::AnAttribute(String("name"), i_sLabel); }
66 /** <p>
68 class Paragraph : public csi::xml::AnElement
70 public:
71 Paragraph()
72 : csi::xml::AnElement("p") {}
73 private:
74 virtual bool LineBreakAfterEndTag() const;
77 /** <H1-6>
79 class Headline : public csi::xml::APureElement
81 public:
82 Headline(
83 int i_nNr )
84 : csi::xml::APureElement(sTags[i_nNr-1]) { csv_assert(1 <= i_nNr AND i_nNr < 7); }
85 private:
86 static const char * sTags[6];
87 virtual bool LineBreakAfterEndTag() const;
90 /** <BR>
92 class LineBreak : public xml::XmlCode
94 public:
95 LineBreak()
96 : xml::XmlCode("<br>\n") {}
99 /** <b>
101 class Bold : public csi::xml::APureElement
103 public:
104 Bold()
105 : csi::xml::APureElement("b") {}
108 /** <i>
110 class Italic : public csi::xml::APureElement
112 public:
113 Italic()
114 : csi::xml::APureElement("i") {}
117 /** <strong>
119 class Strong : public csi::xml::APureElement
121 public:
122 Strong()
123 : csi::xml::APureElement("strong") {}
126 /** <em>
128 class Emphasized : public csi::xml::APureElement
130 public:
131 Emphasized()
132 : csi::xml::APureElement("em") {}
135 /** <font>
137 class Font : public csi::xml::AnElement
139 public:
140 Font()
141 : csi::xml::AnElement("font") {}
145 /** <A href="">
147 class Link : public csi::xml::AnElement
149 public:
150 Link(
151 const ::csv::String &i_sDestinaton )
152 : csi::xml::AnElement("a")
153 { *this << new csi::xml::AnAttribute(String("href"), i_sDestinaton); }
156 class TableCell : public csi::xml::AnElement
158 public:
159 TableCell()
160 : csi::xml::AnElement("td") {}
161 private:
162 virtual bool LineBreakAfterEndTag() const;
165 class TableRow : public csi::xml::AnElement
167 public:
168 TableRow()
169 : csi::xml::AnElement("tr") {}
171 private:
172 virtual bool LineBreakAfterBeginTag() const;
175 /** <table ....>
177 class Table : public csi::xml::AnElement
179 public:
180 Table()
181 : csi::xml::AnElement("table") {}
182 Table(
183 const ::csv::String & i_sBorder,
184 const ::csv::String & i_sWidth,
185 const ::csv::String & i_sCellPadding,
186 const ::csv::String & i_sCellSpacing );
187 TableRow & AddRow();
188 private:
189 virtual bool FinishEmptyTag_XmlStyle() const;
190 virtual bool LineBreakAfterBeginTag() const;
195 class DefListTerm : public csi::xml::AnElement
197 public:
198 DefListTerm()
199 : csi::xml::AnElement("dt") {}
200 private:
201 virtual bool LineBreakAfterEndTag() const;
204 class DefListDefinition : public csi::xml::AnElement
206 public:
207 DefListDefinition()
208 : csi::xml::AnElement("dd") {}
209 private:
210 virtual bool LineBreakAfterEndTag() const;
213 /** <DL>
215 class DefList : public csi::xml::AnElement
217 public:
218 DefList()
219 : csi::xml::AnElement("dl") {}
221 private:
222 virtual bool LineBreakAfterBeginTag() const;
223 virtual bool FinishEmptyTag_XmlStyle() const;
227 class ListItem : public csi::xml::AnElement
229 public:
230 ListItem()
231 : csi::xml::AnElement("li") {}
232 private:
233 virtual bool LineBreakAfterEndTag() const;
236 /** <OL>
238 class NumeratedList : public csi::xml::AnElement
240 public:
241 NumeratedList()
242 : csi::xml::AnElement("ol") {}
243 private:
244 virtual bool LineBreakAfterBeginTag() const;
247 /** <UL>
249 class SimpleList : public csi::xml::AnElement
251 public:
252 SimpleList()
253 : csi::xml::AnElement("ul") {}
255 private:
256 virtual bool LineBreakAfterBeginTag() const;
260 class ClassAttr : public csi::xml::AnAttribute
262 public:
263 ClassAttr(
264 const ::csv::String & i_sValue )
265 : csi::xml::AnAttribute( String("class"), i_sValue ) {}
268 class StyleAttr : public csi::xml::AnAttribute
270 public:
271 StyleAttr(
272 const ::csv::String & i_sValue )
273 : csi::xml::AnAttribute( String("style"), i_sValue ) {}
276 class SizeAttr : public csi::xml::AnAttribute
278 public:
279 SizeAttr(
280 const ::csv::String & i_sValue )
281 : csi::xml::AnAttribute( String("size"), i_sValue ) {}
284 class ColorAttr : public csi::xml::AnAttribute
286 public:
287 ColorAttr(
288 const ::csv::String & i_sValue )
289 : csi::xml::AnAttribute( String("color"), i_sValue ) {}
292 class BgColorAttr : public csi::xml::AnAttribute
294 public:
295 BgColorAttr(
296 const ::csv::String & i_sValue )
297 : csi::xml::AnAttribute( String("bgcolor"), i_sValue ) {}
300 class AlignAttr : public csi::xml::AnAttribute
302 public:
303 AlignAttr(
304 const ::csv::String & i_sValue )
305 : csi::xml::AnAttribute( String("align"), i_sValue ) {}
308 class VAlignAttr : public csi::xml::AnAttribute
310 public:
311 VAlignAttr(
312 const ::csv::String & i_sValue )
313 : csi::xml::AnAttribute( String("valign"), i_sValue ) {}
316 class WidthAttr : public csi::xml::AnAttribute
318 public:
319 WidthAttr(
320 const ::csv::String & i_sValue )
321 : csi::xml::AnAttribute( String("width"), i_sValue ) {}
326 class Sbr : public csi::xml::XmlCode // Sourcefile lineBreak
328 public:
329 Sbr()
330 : csi::xml::XmlCode("\n") {}
334 } // namespace html
335 } // namespace csi
337 namespace Html = csi::html;
339 #endif
342 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */