diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-07-27 01:02:03 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-07-27 01:02:03 -0400 |
commit | ef540f976b32f6ff814c77e3884b3d7229356fa1 (patch) | |
tree | 51ff694d46e53211724256d3c69ad780792af463 /sw/source/filter/html/svxcss1.cxx | |
parent | bd2fffd0b74a7edb3f094fc77e467042893fcf2c (diff) |
Let's not make these methods inline....
Diffstat (limited to 'sw/source/filter/html/svxcss1.cxx')
-rw-r--r-- | sw/source/filter/html/svxcss1.cxx | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx index 5bc96844f9d2..9c7ae867f6f3 100644 --- a/sw/source/filter/html/svxcss1.cxx +++ b/sw/source/filter/html/svxcss1.cxx @@ -802,8 +802,65 @@ SvxCSS1Parser::~SvxCSS1Parser() delete pSearchEntry; } +void SvxCSS1Parser::InsertId( const String& rId, + const SfxItemSet& rItemSet, + const SvxCSS1PropertyInfo& rProp ) +{ + InsertMapEntry( rId, rItemSet, rProp, aIds ); +} -/* */ +const SvxCSS1MapEntry* SvxCSS1Parser::GetId( const String& rId ) const +{ + CSS1Map::const_iterator itr = aIds.find(rId); + return itr == aIds.end() ? NULL : itr->second; +} + +void SvxCSS1Parser::InsertClass( const String& rClass, + const SfxItemSet& rItemSet, + const SvxCSS1PropertyInfo& rProp ) +{ + InsertMapEntry( rClass, rItemSet, rProp, aClasses ); +} + +const SvxCSS1MapEntry* SvxCSS1Parser::GetClass( const String& rClass ) const +{ + CSS1Map::const_iterator itr = aClasses.find(rClass); + return itr == aClasses.end() ? NULL : itr->second; +} + +void SvxCSS1Parser::InsertPage( const String& rPage, + sal_Bool bPseudo, + const SfxItemSet& rItemSet, + const SvxCSS1PropertyInfo& rProp ) +{ + String aKey( rPage ); + if( bPseudo ) + aKey.Insert( ':', 0 ); + InsertMapEntry( aKey, rItemSet, rProp, aPages ); +} + +SvxCSS1MapEntry* SvxCSS1Parser::GetPage( const String& rPage, bool bPseudo ) +{ + String aKey( rPage ); + if( bPseudo ) + aKey.Insert( ':', 0 ); + + CSS1Map::iterator itr = aPages.find(aKey); + return itr == aPages.end() ? NULL : itr->second; +} + +void SvxCSS1Parser::InsertTag( const String& rTag, + const SfxItemSet& rItemSet, + const SvxCSS1PropertyInfo& rProp ) +{ + InsertMapEntry( rTag, rItemSet, rProp, aTags ); +} + +SvxCSS1MapEntry* SvxCSS1Parser::GetTag( const String& rTag ) +{ + CSS1Map::iterator itr = aTags.find(rTag); + return itr == aTags.end() ? NULL : itr->second; +} sal_Bool SvxCSS1Parser::ParseStyleSheet( const String& rIn ) { |