28 #ifndef _CEGUIFormattingSetting_h_
29 #define _CEGUIFormattingSetting_h_
31 #include "CEGUI/Window.h"
32 #include "CEGUI/falagard/XMLEnumHelper.h"
49 d_propertySource(property_name)
58 T
get(
const Window& wnd)
const
60 if (d_propertySource.
empty())
64 wnd.getProperty(d_propertySource));
71 d_propertySource.
clear();
75 void setPropertySource(
const String& property_name)
77 d_propertySource = property_name;
81 bool isFetchedFromProperty()
const
83 return !d_propertySource.
empty();
89 writeXMLTagToStream(xml_stream);
90 writeXMLAttributesToStream(xml_stream);
95 virtual void writeXMLTagToStream(
XMLSerializer& xml_stream)
const
101 virtual void writeXMLAttributesToStream(
XMLSerializer& xml_stream)
const
109 return d_value == rhs.d_value &&
110 d_propertySource == rhs.d_propertySource;
116 return !operator==(rhs);