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/source/ui | |
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/source/ui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/table/tautofmt.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index d84b7d041852..8d2f1dcda204 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -1179,7 +1179,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, SetTabSet(); if( pTAutoFormat ) - rSh.SetTableAutoFormat( *pTAutoFormat ); + rSh.SetTableStyle(*pTAutoFormat); } rSh.SetAutoUpdateCells( bIsAutoUpdateCells ); } diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index 42e9042c3a39..6c127eb1366f 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -498,7 +498,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, SelFormatHdl) IMPL_LINK_NOARG_TYPED(SwAutoFormatDlg, OkHdl, Button*, void) { if( bSetAutoFormat ) - pShell->SetTableAutoFormat( (*pTableTable)[ nIndex ] ); + pShell->SetTableStyle((*pTableTable)[nIndex]); EndDialog( RET_OK ); } |