diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/htmltbl.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swtable.hxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/htmltbl.hxx b/sw/inc/htmltbl.hxx index 1c65226e4108..b344eed5d4c9 100644 --- a/sw/inc/htmltbl.hxx +++ b/sw/inc/htmltbl.hxx @@ -58,7 +58,7 @@ class SwHTMLTableLayoutCnts public: - SwHTMLTableLayoutCnts(const SwStartNode* pSttNd, SwHTMLTableLayout* pTab, + SwHTMLTableLayoutCnts(const SwStartNode* pSttNd, std::shared_ptr<SwHTMLTableLayout> const& rTab, bool bNoBreakTag, std::shared_ptr<SwHTMLTableLayoutCnts> const& rNxt); void SetTableBox( SwTableBox *pBx ) { pBox = pBx; } diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index c53139b753c0..bc9e2f219cc3 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -119,7 +119,7 @@ protected: SwTableSortBoxes m_TabSortContentBoxes; tools::SvRef<SwServerObject> m_xRefObj; // In case DataServer -> pointer is set. - SwHTMLTableLayout *m_pHTMLLayout; + std::shared_ptr<SwHTMLTableLayout> m_xHTMLLayout; // Usually, the table node of a SwTable can be accessed by getting a box // out of m_TabSortContentBoxes, which know their SwStartNode. But in some rare @@ -175,9 +175,9 @@ private: public: - SwHTMLTableLayout *GetHTMLTableLayout() { return m_pHTMLLayout; } - const SwHTMLTableLayout *GetHTMLTableLayout() const { return m_pHTMLLayout; } - void SetHTMLTableLayout( SwHTMLTableLayout *p ); //Change of property! + SwHTMLTableLayout *GetHTMLTableLayout() { return m_xHTMLLayout.get(); } + const SwHTMLTableLayout *GetHTMLTableLayout() const { return m_xHTMLLayout.get(); } + void SetHTMLTableLayout(std::shared_ptr<SwHTMLTableLayout> const& r); //Change of property! sal_uInt16 IncGrfsThatResize() { return ++m_nGraphicsThatResize; } sal_uInt16 DecGrfsThatResize() { return m_nGraphicsThatResize ? --m_nGraphicsThatResize : 0; } |