summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/tblrwcl.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-09-26 17:55:31 +0200
committerJan Holesovsky <kendy@collabora.com>2015-09-27 22:48:21 +0200
commit73f4a06c0bce51c7c8b9ae9adfdc7ffac27d06b4 (patch)
treeaec530a6ce7f784b113544ccc4cc794b167338b2 /sw/source/core/doc/tblrwcl.cxx
parentac6f8bc92b1abe995694602f43d8ad108b7030fb (diff)
sw table styles: Insert column, split table, delete row/column.
Make these operations applying the table style too. Change-Id: Iee2808a5a5c5f84538474b8fbc6bf53d1fab19b7
Diffstat (limited to 'sw/source/core/doc/tblrwcl.cxx')
-rw-r--r--sw/source/core/doc/tblrwcl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 9574e0ae88f8..acc2d8e70974 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -550,6 +550,8 @@ bool SwTable::InsertCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt,
pPCD->AddRowCols( *this, rBoxes, nCnt, bBehind );
pDoc->UpdateCharts( GetFrameFormat()->GetName() );
+ pDoc->GetDocShell()->GetFEShell()->UpdateTableStyleFormatting();
+
return bRes;
}
@@ -2095,6 +2097,8 @@ bool SwTable::MakeCopy( SwDoc* pInsDoc, const SwPosition& rPos,
pTableNd->GetTable().SetRowsToRepeat( GetRowsToRepeat() );
+ pNewTable->SetTableStyleName(pTableNd->GetTable().GetTableStyleName());
+
if( IS_TYPE( SwDDETable, this ))
{
// A DDE-Table is being copied