27#ifndef _CEGUIFormattingSetting_h_
28#define _CEGUIFormattingSetting_h_
30#include "CEGUI/Window.h"
31#include "CEGUI/falagard/XMLEnumHelper.h"
48 d_propertySource(property_name)
57 T get(
const Window& wnd)
const
59 if (d_propertySource.
empty())
70 d_propertySource.
clear();
80 const String& getPropertySource()
const
82 return d_propertySource;
86 void setPropertySource(
const String& property_name)
88 d_propertySource = property_name;
92 bool isFetchedFromProperty()
const
94 return !d_propertySource.
empty();
100 writeXMLTagToStream(xml_stream);
101 writeXMLAttributesToStream(xml_stream);
107 virtual void writeXMLAttributesToStream(
XMLSerializer& )
const;
112 return d_value == rhs.d_value &&
113 d_propertySource == rhs.d_propertySource;
119 return !operator==(rhs);
134void FormattingSetting<T>::writeXMLAttributesToStream(XMLSerializer& )
const
139template<>
void CEGUIEXPORT FormattingSetting<VerticalFormatting>::writeXMLTagToStream(
140 XMLSerializer& xml_stream)
const;
141template<>
void CEGUIEXPORT FormattingSetting<VerticalFormatting>::writeXMLAttributesToStream(
142 XMLSerializer& xml_stream)
const;
143template<>
void CEGUIEXPORT FormattingSetting<HorizontalFormatting>::writeXMLTagToStream(
144 XMLSerializer& xml_stream)
const;
145template<>
void CEGUIEXPORT FormattingSetting<HorizontalFormatting>::writeXMLAttributesToStream(
146 XMLSerializer& xml_stream)
const;
147template<>
void CEGUIEXPORT FormattingSetting<VerticalTextFormatting>::writeXMLTagToStream(
148 XMLSerializer& xml_stream)
const;
149template<>
void CEGUIEXPORT FormattingSetting<VerticalTextFormatting>::writeXMLAttributesToStream(
150 XMLSerializer& xml_stream)
const;
151template<>
void CEGUIEXPORT FormattingSetting<HorizontalTextFormatting>::writeXMLTagToStream(
152 XMLSerializer& xml_stream)
const;
153template<>
void CEGUIEXPORT FormattingSetting<HorizontalTextFormatting>::writeXMLAttributesToStream(
154 XMLSerializer& xml_stream)
const;
Definition XMLEnumHelper.h:37
String getProperty(const String &name) const
Gets the current value of the specified Property.
String class used within the GUI system.
Definition String.h:64
bool empty(void) const
Returns true if the String is empty.
Definition String.h:633
void clear(void)
Removes all data from the String.
Definition String.h:2348
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition Window.h:151
Class used to create XML Document.
Definition XMLSerializer.h:87
XMLSerializer & closeTag(void)
Close the current tag.
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1