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/core/doc/tblrwcl.cxx | |
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/core/doc/tblrwcl.cxx')
-rw-r--r-- | sw/source/core/doc/tblrwcl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index d96864db5114..9574e0ae88f8 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -36,11 +36,14 @@ #include <IDocumentStylePoolAccess.hxx> #include <IDocumentFieldsAccess.hxx> #include <cntfrm.hxx> +#include <docsh.hxx> +#include <fesh.hxx> #include <tabfrm.hxx> #include <frmtool.hxx> #include <pam.hxx> #include <swtable.hxx> #include <ndtxt.hxx> +#include <tblafmt.hxx> #include <tblsel.hxx> #include <fldbas.hxx> #include <swundo.hxx> @@ -647,6 +650,8 @@ bool SwTable::_InsertRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, pPCD->AddRowCols( *this, rBoxes, nCnt, bBehind ); pDoc->UpdateCharts( GetFrameFormat()->GetName() ); + pDoc->GetDocShell()->GetFEShell()->UpdateTableStyleFormatting(); + return true; } |