koStyleStack.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KOSTYLESTACK_H
00022 #define KOSTYLESTACK_H
00023
00024
00025 #include <qvaluelist.h>
00026 #include <qdom.h>
00027 #include <qvaluestack.h>
00028
00029 #include <kdemacros.h>
00030
00031 #include "koffice_export.h"
00032
00055 class KOFFICECORE_EXPORT KoStyleStack
00056 {
00057 public:
00061 KoStyleStack();
00065 KoStyleStack( const char* styleNSURI, const char* foNSURI );
00066 virtual ~KoStyleStack();
00067
00071 void clear();
00072
00077 void save();
00078
00082 void restore();
00083
00087 void pop();
00088
00092 void push( const QDomElement& style );
00093
00099 bool hasAttribute( const QString& name, const QString& detail = QString::null ) const KDE_DEPRECATED;
00100
00105 QString attribute( const QString& name, const QString& detail = QString::null ) const KDE_DEPRECATED;
00106
00112 bool hasAttributeNS( const char* nsURI, const char* localName, const char* detail = 0 ) const;
00113
00118 QString attributeNS( const char* nsURI, const char* localName, const char* detail = 0 ) const;
00119
00123 bool hasChildNode( const QString & name ) const KDE_DEPRECATED;
00124
00129 QDomElement childNode( const QString & name ) const KDE_DEPRECATED;
00130
00134 bool hasChildNodeNS( const char* nsURI, const char* localName ) const;
00135
00141 QDomElement childNodeNS( const char* nsURI, const char* localName ) const;
00142
00146 double fontSize() const;
00147
00152 QString userStyleName() const;
00153
00158 QString userStyleDisplayName() const;
00159
00167 void setTypeProperties( const char* typeProperties );
00168
00169 private:
00170 bool isUserStyle( const QDomElement& e ) const;
00171
00172 private:
00174 QValueStack<int> m_marks;
00175
00180 QValueList<QDomElement> m_stack;
00181
00182 QCString m_propertiesTagName;
00183
00184 const char* m_styleNSURI;
00185 const char* m_foNSURI;
00186
00187 class KoStyleStackPrivate;
00188 KoStyleStackPrivate *d;
00189
00190
00191 void operator=( const KoStyleStack& );
00192 KoStyleStack( const KoStyleStack& );
00193 };
00194
00195 #endif
This file is part of the documentation for lib Library Version 1.4.2.