Commit 65b16c82 authored by David Faure's avatar David Faure

Remove deprecated (and now unused) methods, which have been replaced by namespace-aware versions.

svn path=/trunk/koffice/; revision=663294
parent 2591fdc9
......@@ -96,47 +96,6 @@ void KoStyleStack::push( const KoXmlElement& style )
#endif
}
bool KoStyleStack::hasAttribute( const QString& name, const QString& detail ) const
{
QString fullName( name );
if ( !detail.isEmpty() )
{
fullName += '-';
fullName += detail;
}
Q3ValueList<KoXmlElement>::ConstIterator it = m_stack.end();
while ( it != m_stack.begin() )
{
--it;
KoXmlElement properties = (*it).namedItem( "style:"+m_propertiesTagName ).toElement();
if ( properties.hasAttribute( name ) ||
( !detail.isEmpty() && properties.hasAttribute( fullName ) ) )
return true;
}
return false;
}
QString KoStyleStack::attribute( const QString& name, const QString& detail ) const
{
QString fullName( name );
if ( !detail.isEmpty() )
{
fullName += '-';
fullName += detail;
}
Q3ValueList<KoXmlElement>::ConstIterator it = m_stack.end();
while ( it != m_stack.begin() )
{
--it;
KoXmlElement properties = (*it).namedItem( "style:"+m_propertiesTagName ).toElement();
if ( properties.hasAttribute( name ) )
return properties.attribute( name );
if ( !detail.isEmpty() && properties.hasAttribute( fullName ) )
return properties.attribute( fullName );
}
return QString();
}
QString KoStyleStack::attributeNS( const char* nsURI, const char* name, const char* detail ) const
{
QString fullName( name );
......@@ -202,35 +161,6 @@ double KoStyleStack::fontSize() const
return 0;
}
bool KoStyleStack::hasChildNode(const QString & name) const
{
Q3ValueList<KoXmlElement>::ConstIterator it = m_stack.end();
while ( it != m_stack.begin() )
{
--it;
KoXmlElement properties = (*it).namedItem( "style:"+m_propertiesTagName ).toElement();
if ( !properties.namedItem( name ).isNull() )
return true;
}
return false;
}
KoXmlElement KoStyleStack::childNode(const QString & name) const
{
Q3ValueList<KoXmlElement>::ConstIterator it = m_stack.end();
while ( it != m_stack.begin() )
{
--it;
KoXmlElement properties = (*it).namedItem( "style:"+m_propertiesTagName ).toElement();
if ( !properties.namedItem( name ).isNull() )
return properties.namedItem( name ).toElement();
}
return KoXmlElement(); // a null element
}
bool KoStyleStack::hasChildNodeNS( const char* nsURI, const char* localName ) const
{
Q3ValueList<KoXmlElement>::ConstIterator it = m_stack.end();
......
......@@ -96,19 +96,6 @@ public:
*/
void push( const KoXmlElement& style );
/**
* Check if any of the styles on the stack has an attribute called 'name'-'detail'
* where detail is e.g. left, right, top or bottom.
* This allows to also find 'name' alone (e.g. padding implies padding-left, padding-right etc.)
*/
bool hasAttribute( const QString& name, const QString& detail = QString() ) const KDE_DEPRECATED;
/**
* Search for the attribute called 'name', starting on top of the stack,
* and return it.
*/
QString attribute( const QString& name, const QString& detail = QString() ) const KDE_DEPRECATED;
/**
* Check if any of the styles on the stack has an attribute called 'name'-'detail'
* where detail is e.g. left, right, top or bottom.
......@@ -122,17 +109,6 @@ public:
*/
QString attributeNS( const char* nsURI, const char* localName, const char* detail = 0 ) const;
/**
* Check if any of the styles on the stack has a child node called 'name'.
*/
bool hasChildNode( const QString & name ) const KDE_DEPRECATED;
/**
* Search for a child node called 'name', starting on top of the stack,
* and return it.
*/
KoXmlElement childNode( const QString & name ) const KDE_DEPRECATED;
/**
* Check if any of the styles on the stack has a child element called 'localName' in the namespace 'nsURI'.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment