sc/inc/dbdataformatting.hxx | 7 ++++++- sc/source/core/tool/dbdataformatting.cxx | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-)
New commits: commit f502c0ea6826fc0e915d8d4c302fe978a4d43a58 Author: Akash Shetye <shetyeak...@gmail.com> Date: Tue Jun 25 02:58:57 2013 +0530 Add the support for Table Style Name in ScDBDataFormatting. Also make the class publicly accessible using SC_DLLPUBLIC. Change-Id: Icdf49007b77368ba5dbb2cab1d8ef56fdda211d7 diff --git a/sc/inc/dbdataformatting.hxx b/sc/inc/dbdataformatting.hxx index aa3bd65..ef8d5fd 100644 --- a/sc/inc/dbdataformatting.hxx +++ b/sc/inc/dbdataformatting.hxx @@ -20,9 +20,11 @@ #define SC_DBDATAFORMATTING_HXX #include "rtl/ustring.hxx" +#include "scdllapi.h" -class ScDBDataFormatting +class SC_DLLPUBLIC ScDBDataFormatting { + OUString maTableStyleName; OUString maFirstRowStripeStyle; OUString maSecondRowStripeStyle; OUString maFirstColStripeStyle; @@ -30,8 +32,11 @@ class ScDBDataFormatting bool bBandedRows; bool bBandedColumns; public: + ScDBDataFormatting(); ScDBDataFormatting(const OUString& rFirstRowStripeStyle, const OUString& rSecondRowStripeStyle, const OUString& rFirstColStripeStyle, const OUString& rSecondColStripeStyle, bool bBRows, bool bBCols); ScDBDataFormatting( const ScDBDataFormatting& rTableFormatData ); + void SetTableStyleName( const OUString& rTableStyleName ); + const OUString& GetTableStyleName(); void SetBandedRows( bool bBRows ); bool GetBandedRows(); void SetBandedColumns( bool bBCols ); diff --git a/sc/source/core/tool/dbdataformatting.cxx b/sc/source/core/tool/dbdataformatting.cxx index c398883..fe6a8a2 100644 --- a/sc/source/core/tool/dbdataformatting.cxx +++ b/sc/source/core/tool/dbdataformatting.cxx @@ -20,7 +20,12 @@ #include "dbdataformatting.hxx" #include "rtl/ustring.hxx" -ScDBDataFormatting::ScDBDataFormatting(const OUString& rFirstRowStripeStyle, const OUString& rSecondRowStripeStyle, const OUString& rFirstColStripeStyle, const OUString& rSecondColStripeStyle, bool bBRows, bool bBCols) : +ScDBDataFormatting::ScDBDataFormatting() +{ +} + +ScDBDataFormatting::ScDBDataFormatting(const OUString& rTableStyleName, const OUString& rFirstRowStripeStyle, const OUString& rSecondRowStripeStyle, const OUString& rFirstColStripeStyle, const OUString& rSecondColStripeStyle, bool bBRows, bool bBCols) : + maTableStyleName ( rTableStyleName ), maFirstRowStripeStyle ( rFirstRowStripeStyle), maSecondRowStripeStyle ( rSecondRowStripeStyle ), maFirstColStripeStyle ( rFirstColStripeStyle ), @@ -31,6 +36,7 @@ ScDBDataFormatting::ScDBDataFormatting(const OUString& rFirstRowStripeStyle, con } ScDBDataFormatting::ScDBDataFormatting( const ScDBDataFormatting& rTableFormatData ): + maTableStyleName ( rTableFormatData.maTableStyleName ), maFirstRowStripeStyle ( rTableFormatData.maFirstRowStripeStyle ), maSecondRowStripeStyle ( rTableFormatData.maSecondRowStripeStyle ), maFirstColStripeStyle ( rTableFormatData.maFirstColStripeStyle ), @@ -40,6 +46,16 @@ ScDBDataFormatting::ScDBDataFormatting( const ScDBDataFormatting& rTableFormatDa { } +void ScDBDataFormatting::SetTableStyleName( const OUString& rTableStyleName ) +{ + maTableStyleName = rTableStyleName; +} + +const OUString& ScDBDataFormatting::GetTableStyleName() +{ + return maTbleStyleName; +} + void ScDBDataFormatting::SetBandedRows( bool bBRows ) { bBandedRows = bBRows; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits