summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r--sw/inc/doc.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 2ddcc2d73ff9..51631a337a22 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -127,6 +127,7 @@ class SwSectionFormat;
class SwSectionFormats;
class SwSectionData;
class SwSelBoxes;
+class SwTableAutoFormatTable;
class SwTOXBaseSection;
class SwTOXTypes;
class SwTabCols;
@@ -343,6 +344,9 @@ class SW_DLLPUBLIC SwDoc :
com::sun::star::uno::Reference< com::sun::star::script::vba::XVBAEventProcessor > mxVbaEvents;
com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> m_xTemplateToProjectCache;
+ /// Table styles (autoformats that are applied with table changes).
+ std::unique_ptr<SwTableAutoFormatTable> mpTableStyles;
+
private:
::std::unique_ptr< ::sfx2::IXmlIdRegistry > m_pXmlIdRegistry;
@@ -1257,6 +1261,9 @@ public:
// Query attributes.
bool GetTableAutoFormat( const SwSelBoxes& rBoxes, SwTableAutoFormat& rGet );
+ /// Return the available table styles.
+ SwTableAutoFormatTable& GetTableStyles() { return *mpTableStyles.get(); }
+
void AppendUndoForInsertFromDB( const SwPaM& rPam, bool bIsTable );
bool SetColRowWidthHeight( SwTableBox& rAktBox, sal_uInt16 eType,