diff options
author | Akash Shetye <shetyeakash@gmail.com> | 2013-06-25 18:06:08 +0530 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-05 14:30:19 -0400 |
commit | 9d29ba1b3c76cc9a88dd9f52aa79495dbcaeb38d (patch) | |
tree | aab1fdbab099bb5cabbe8fad41a5a22caae46f2a | |
parent | f2dd5e1e3f43a2dc113ca2e7201878efa3fc451f (diff) |
Add methods to get table name and Formatting and TableStyle.
Change-Id: Ifb9011a4734810ac1f6ea64b676cb52a3e251a8d
-rw-r--r-- | sc/source/filter/oox/stylesbuffer.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index 218e000aff0a..854cdb3c01cc 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -2658,6 +2658,16 @@ void TableStyle::importTableStyleElement( const AttributeList& rAttribs ) //is not showing up. } +const OUString& TableStyle::getTableStyleName() const +{ + return mxTableFormatting->GetTableStyleName(); +} + +ScDBDataFormatting& TableStyle::getTableFormatting() +{ + return (*mxTableFormatting); +} + void TableStyle::finalizeImport() { } @@ -3425,6 +3435,18 @@ void StylesBuffer::writeStyleXfToPropertySet( PropertySet& rPropSet, sal_Int32 n pXf->writeToPropertySet( rPropSet ); } +TableStyleRef StylesBuffer::getTableStyle( OUString& rTableStyleName ) +{ + for( ::std::vector< TableStyleRef >::iterator i = maTableStyles.begin(); i < maTableStyles.end(); ++i) + { + if( ((*i)->getTableStyleName() ).equals(rTableStyleName) ) + { + return(*i); + } + } + return 0; +} + // ============================================================================ } // namespace xls |