diff options
author | Akash Shetye <shetyeakash@gmail.com> | 2013-08-30 04:37:40 +0530 |
---|---|---|
committer | Akash Shetye <shetyeakash@gmail.com> | 2013-08-30 04:37:40 +0530 |
commit | e3995f25d94f74b325e94f41df7e0d3b64adc617 (patch) | |
tree | 1568bb0bd046751477408cd8a0300e152bf07ecd | |
parent | ee6a3b678319b0740a338781cf6cce6e1bd963e0 (diff) |
Added nFirstRowStripeSize etc to the initializers for various constructors
Change-Id: I32645a5056fb6147dc2c23dd8fe97ab8834d38df
-rw-r--r-- | sc/inc/dbdataformatting.hxx | 24 | ||||
-rw-r--r-- | sc/source/core/tool/dbdataformatting.cxx | 53 |
2 files changed, 61 insertions, 16 deletions
diff --git a/sc/inc/dbdataformatting.hxx b/sc/inc/dbdataformatting.hxx index c14bed14fd23..e98427500e4d 100644 --- a/sc/inc/dbdataformatting.hxx +++ b/sc/inc/dbdataformatting.hxx @@ -19,10 +19,10 @@ class SC_DLLPUBLIC ScDBDataFormatting OUString maSecondRowStripeStyle; OUString maFirstColStripeStyle; OUString maSecondColStripeStyle; - sal_Int32 maFirstRowStripeSize; - sal_Int32 maSecondRowStripeSize; - sal_Int32 maFirstColStripeSize; - sal_Int32 maSecondColStripeSize; + sal_Int32 nFirstRowStripeSize; + sal_Int32 nSecondRowStripeSize; + sal_Int32 nFirstColStripeSize; + sal_Int32 nSecondColStripeSize; bool mbBandedRows; bool mbBandedColumns; public: @@ -39,14 +39,14 @@ public: const OUString& GetSecondRowStripeStyle() const; const OUString& GetFirstColStripeStyle() const; const OUString& GetSecondColStripeStyle() const; - sal_Int32 GetFirstRowStripeSize() const { return maFirstRowStripeSize; } - sal_Int32 GetSecondRowStripeSize() const { return maSecondRowStripeSize; } - sal_Int32 GetFirstColStripeSize() const { return maFirstColStripeSize; } - sal_Int32 GetSecondColStripeSize() const { return maSecondColStripeSize; } - void SetFirstRowStripeSize( const sal_Int32 nSize ){ maFirstRowStripeSize = nSize; } - void SetSecondRowStripeSize( const sal_Int32 nSize ){ maSecondRowStripeSize = nSize; } - void SetFirstColStripeSize( const sal_Int32 nSize ){ maFirstColStripeSize = nSize; } - void SetSecondColStripeSize( const sal_Int32 nSize ){ maSecondColStripeSize = nSize; } + sal_Int32 GetFirstRowStripeSize(); + sal_Int32 GetSecondRowStripeSize(); + sal_Int32 GetFirstColStripeSize(); + sal_Int32 GetSecondColStripeSize(); + void SetFirstRowStripeSize( sal_Int32 nSize ); + void SetSecondRowStripeSize( sal_Int32 nSize ); + void SetFirstColStripeSize( sal_Int32 nSize ); + void SetSecondColStripeSize( sal_Int32 nSize ); void SetFirstRowStripeStyle( const OUString& aStyleName ); void SetSecondRowStripeStyle( const OUString& aStyleName ); void SetFirstColStripeStyle( const OUString& aStyleName ); diff --git a/sc/source/core/tool/dbdataformatting.cxx b/sc/source/core/tool/dbdataformatting.cxx index 07f1ede8aeae..186469880995 100644 --- a/sc/source/core/tool/dbdataformatting.cxx +++ b/sc/source/core/tool/dbdataformatting.cxx @@ -16,10 +16,10 @@ ScDBDataFormatting::ScDBDataFormatting(): maSecondRowStripeStyle ( "Default" ), maFirstColStripeStyle ( "Default" ), maSecondColStripeStyle ( "Default" ), - maFirstRowStripeSize ( 1 ), - maSecondRowStripeSize ( 1 ), - maFirstColStripeSize ( 1 ), - maSecondColStripeSize ( 1 ), + nFirstRowStripeSize ( 1 ), + nSecondRowStripeSize ( 1 ), + nFirstColStripeSize ( 1 ), + nSecondColStripeSize ( 1 ), mbBandedRows ( false ), mbBandedColumns ( false ) { @@ -31,6 +31,10 @@ ScDBDataFormatting::ScDBDataFormatting(const OUString& rTableStyleName, const OU maSecondRowStripeStyle ( rSecondRowStripeStyle ), maFirstColStripeStyle ( rFirstColStripeStyle ), maSecondColStripeStyle ( rSecondColStripeStyle ), + nFirstRowStripeSize ( 1 ), + nSecondRowStripeSize ( 1 ), + nFirstColStripeSize ( 1 ), + nSecondColStripeSize ( 1 ), mbBandedRows ( bBRows ), mbBandedColumns ( bBCols ) { @@ -42,6 +46,10 @@ ScDBDataFormatting::ScDBDataFormatting( const ScDBDataFormatting& rTableFormatDa maSecondRowStripeStyle ( rTableFormatData.maSecondRowStripeStyle ), maFirstColStripeStyle ( rTableFormatData.maFirstColStripeStyle ), maSecondColStripeStyle ( rTableFormatData.maSecondColStripeStyle ), + nFirstRowStripeSize ( rTableFormatData.nFirstRowStripeSize ), + nSecondRowStripeSize ( rTableFormatData.nSecondRowStripeSize ), + nFirstColStripeSize ( rTableFormatData.nFirstColStripeSize ), + nSecondColStripeSize ( rTableFormatData.nSecondColStripeSize ), mbBandedRows ( rTableFormatData.mbBandedRows ), mbBandedColumns ( rTableFormatData.mbBandedColumns ) { @@ -116,3 +124,40 @@ void ScDBDataFormatting::SetSecondColStripeStyle( const OUString& aStyleName ) { maSecondColStripeStyle = aStyleName; } + +void ScDBDataFormatting::SetFirstRowStripeSize( sal_Int32 nSize) +{ + nFirstRowStripeSize = nSize; +} +void ScDBDataFormatting::SetSecondRowStripeSize( sal_Int32 nSize ) +{ + nSecondRowStripeSize = nSize; +} +void ScDBDataFormatting::SetFirstColStripeSize( sal_Int32 nSize ) +{ + nFirstColStripeSize = nSize; +} +void ScDBDataFormatting::SetSecondColStripeSize( sal_Int32 nSize ) +{ + nSecondColStripeSize = nSize; +} + +sal_Int32 ScDBDataFormatting::GetFirstRowStripeSize() +{ + return nFirstRowStripeSize; +} + +sal_Int32 ScDBDataFormatting::GetSecondRowStripeSize() +{ + return nSecondRowStripeSize; +} + +sal_Int32 ScDBDataFormatting::GetFirstColStripeSize() +{ + return nFirstColStripeSize; +} + +sal_Int32 ScDBDataFormatting::GetSecondColStripeSize() +{ + return nSecondColStripeSize; +} |