summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorJakub Trzebiatowski <ubap.dev@gmail.com>2016-05-23 09:18:52 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-24 09:46:44 +0000
commit8b8159784821b7ddf031aec925353c274a10875e (patch)
tree3004cc39304236288e3f23e1c4b8ae80a6d27242 /sw/source/uibase/app
parent2e2a13e7160f258982b09125f5e32acd267b3f3a (diff)
Implement basic TableStyle Family
Change-Id: I3da13d26ced05e1948d483d432d6268b10c208b5 Implementing: getCount, getElementNames Reviewed-on: https://gerrit.libreoffice.org/25351 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/docstyle.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index dcbfba26e97e..0171cf5398c5 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -37,6 +37,7 @@
#include <docsh.hxx>
#include <frmfmt.hxx>
#include <charfmt.hxx>
+#include <tblafmt.hxx>
#include <poolfmt.hxx>
#include <pagedesc.hxx>
#include <docstyle.hxx>
@@ -75,6 +76,7 @@
#define cFRAME (sal_Unicode)'f'
#define cPAGE (sal_Unicode)'g'
#define cNUMRULE (sal_Unicode)'n'
+#define cTABSTYLE (sal_Unicode)'t'
using namespace com::sun::star;
@@ -2902,6 +2904,16 @@ SfxStyleSheetBase* SwStyleSheetIterator::First()
bIsSearchUsed, bSearchHidden, bOnlyHidden, nsSwGetPoolIdFromName::GET_POOLID_NUMRULE, cNUMRULE);
}
+ if( nSearchFamily == SfxStyleFamily::Table ||
+ nSearchFamily == SfxStyleFamily::All )
+ {
+ const SwTableAutoFormatTable& rTableStyles = rDoc.GetTableStyles();
+ for(size_t i = 0; i < rTableStyles.size(); ++i)
+ {
+ aLst.Append( cTABSTYLE, rTableStyles[i].GetName() );
+ }
+ }
+
if(!aLst.empty())
{
nLastPos = SAL_MAX_UINT32;