diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-27 23:26:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-28 13:08:55 +0100 |
commit | effda59a12cedd3cf200d2e9f5186a623b0855bb (patch) | |
tree | 74ed24c833d0fd1de6c77e20fecc4b0dc6fe25f1 /l10ntools | |
parent | 2ecae2b9b4d5b7280e308cbabed715f5d5042c46 (diff) |
callcatcher: regenerate list
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/xmlparse.hxx | 8 | ||||
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 28 |
2 files changed, 0 insertions, 36 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx index 0731a9f453e8..eeb86193c0e5 100644 --- a/l10ntools/inc/xmlparse.hxx +++ b/l10ntools/inc/xmlparse.hxx @@ -303,18 +303,10 @@ public: void AddAttribute( const rtl::OUString &rAttribute, const rtl::OUString &rValue ); void ChangeLanguageTag( const rtl::OUString &rValue ); - // Return a ASCII String representation of this object - OString ToOString(); // Return a Unicode String representation of this object OUString ToOUString(); - bool Equals(OUString refStr); - - /// returns a attribute - XMLAttribute *GetAttribute( - const rtl::OUString &rName // the attribute name - ); void SetProject ( rtl::OString const & prj ){ project = prj; } void SetFileName ( rtl::OString const & fn ){ filename = fn; } void SetId ( rtl::OString const & theId ){ id = theId; } diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 5be1f0e66e21..31a75540130a 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -692,17 +692,6 @@ void XMLElement::ChangeLanguageTag( const rtl::OUString &rValue ) pCList = NULL; } } -/*****************************************************************************/ -XMLAttribute *XMLElement::GetAttribute( const rtl::OUString &rName ) -/*****************************************************************************/ -{ - if ( pAttributes ) - for ( size_t i = 0; i < pAttributes->size(); i++ ) - if ( (*pAttributes)[ i ]->GetName() == rName ) - return (*pAttributes)[ i ]; - - return NULL; -} /*****************************************************************************/ XMLElement::~XMLElement() @@ -716,25 +705,8 @@ XMLElement::~XMLElement() pAttributes = NULL; } } -/*****************************************************************************/ -bool XMLElement::Equals(OUString refStr){ -/*****************************************************************************/ - return refStr.equals( ToOUString() ); -} /*****************************************************************************/ -OString XMLElement::ToOString(){ -/*****************************************************************************/ - OUString ouEmpty; - - OUStringBuffer* buffer = new OUStringBuffer(); - Print( this, *buffer , true ); - - OString result( (sal_Unicode* )buffer->getStr(), buffer->getLength() , RTL_TEXTENCODING_UTF8 ); - delete buffer; - return result; -} -/*****************************************************************************/ OUString XMLElement::ToOUString(){ /*****************************************************************************/ OUStringBuffer* buffer = new OUStringBuffer(); |