diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-09-26 16:19:24 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-27 22:48:21 +0200 |
commit | ac6f8bc92b1abe995694602f43d8ad108b7030fb (patch) | |
tree | ae8ed9337704cd83ab10e4c9cce4b7e06aaa7e8e /sw/inc/swtable.hxx | |
parent | 5c26f79467e4c5f920b77a058aa079654c322c25 (diff) |
sw table styles: Implement table styles in Writer.
This extends the table auto formats so that SwDoc keeps track of the auto
formats used in the document. With this in mind, we can update the format of
the table with every operation like adding/removing a line, splitting a table,
etc.
So far we only have the core functionality, and cover inserting a line in
the table; more to come.
Based on work of Alex Ivan <alexnivan@yahoo.com> during GSoC 2013 - thank you!
Change-Id: I7839147e54c2f976988121a523331def9859f4c2
Diffstat (limited to 'sw/inc/swtable.hxx')
-rw-r--r-- | sw/inc/swtable.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index 8b42d9dfafbe..5f645e31311b 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -114,6 +114,9 @@ protected: // at HTML-import. sal_uInt16 nRowsToRepeat; // Number of rows to repeat on every page. + /// Name of the table style to be applied on this table. + OUString maTableStyleName; + bool bModifyLocked :1; bool bNewModel :1; // false: old SubTableModel; true: new RowSpanModel #ifdef DBG_UTIL @@ -175,6 +178,12 @@ public: void SetTableModel( bool bNew ){ bNewModel = bNew; } bool IsNewModel() const { return bNewModel; } + /// Return the table style name of this table. + OUString GetTableStyleName() const { return maTableStyleName; } + + /// Set the new table style name for this table. + void SetTableStyleName(const OUString& rName) { maTableStyleName = rName; } + sal_uInt16 GetRowsToRepeat() const { return std::min( (sal_uInt16)GetTabLines().size(), nRowsToRepeat ); } sal_uInt16 _GetRowsToRepeat() const { return nRowsToRepeat; } void SetRowsToRepeat( sal_uInt16 nNumOfRows ) { nRowsToRepeat = nNumOfRows; } |