19#ifndef INCLUDED_SW_INC_TBLAFMT_HXX
20#define INCLUDED_SW_INC_TBLAFMT_HXX
57 css::uno::WeakReference<css::uno::XInterface>
m_wXObject;
92 css::uno::WeakReference<css::uno::XInterface>
const&
GetXObject()
const
94 void SetXObject(css::uno::Reference<css::uno::XInterface>
const& xObject)
98 bool Save(
SvStream& rStream, sal_uInt16 fileVersion )
const;
152 friend class SwDocTest;
201 void SetName(
const OUString& rNew ) {
m_aName = rNew; m_nStrResId = USHRT_MAX; }
206 void UpdateToSet(
const sal_uInt8 nPos,
const bool bSingleRowTable,
const bool bSingleColTable,
210 void RestoreTableProperties(
SwTable &table)
const;
211 void StoreTableProperties(
const SwTable &table);
213 bool IsFont()
const {
return m_bInclFont; }
224 void SetFont(
const bool bNew ) { m_bInclFont = bNew; }
225 void SetJustify(
const bool bNew ) { m_bInclJustify = bNew; }
226 void SetFrame(
const bool bNew ) { m_bInclFrame = bNew; }
237 bool FirstRowEndColumnIsRow();
238 bool FirstRowStartColumnIsRow();
239 bool LastRowEndColumnIsRow();
240 bool LastRowStartColumnIsRow();
243 bool Save(
SvStream& rStream, sal_uInt16 fileVersion )
const;
245 css::uno::WeakReference<css::uno::XInterface>
const&
GetXObject()
const
246 {
return m_wXObject; }
247 void SetXObject(css::uno::Reference<css::uno::XInterface>
const& xObject)
248 { m_wXObject = xObject; }
251 OUString GetTableTemplateCellSubName(
const SwBoxAutoFormat& rBoxFormat)
const;
253 static const std::vector<sal_Int32>& GetTableTemplateMap();
259 static sal_uInt8 CountPos(sal_uInt32 nCol, sal_uInt32 nCols, sal_uInt32 nRow, sal_uInt32 nRows);
268 SAL_DLLPRIVATE
bool Save(
SvStream& rStream )
const;
281 void InsertAutoFormat(
size_t i, std::unique_ptr<SwTableAutoFormat> pFormat);
282 void EraseAutoFormat(
size_t i);
283 void EraseAutoFormat(
const OUString& rName);
284 std::unique_ptr<SwTableAutoFormat> ReleaseAutoFormat(
size_t i);
286 std::unique_ptr<SwTableAutoFormat> ReleaseAutoFormat(
const OUString& rName);
306 std::vector<std::pair<OUString, std::unique_ptr<SwBoxAutoFormat>>>
m_aCellStyles;
virtual SvxFrameDirectionItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxShadowItem * Clone(SfxItemPool *pPool=nullptr) const override
const std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > & m_rCellStyleDesc
const OUString & GetName() const
SwCellStyleDescriptor(const std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > &rCellStyleDesc)
OUString GetBoxFormatName(const SwBoxAutoFormat &rBoxFormat) const
If found returns its name. If not found returns an empty OUString.
void ChangeBoxFormatName(std::u16string_view sFromName, const OUString &sToName)
void AddBoxFormat(const SwBoxAutoFormat &rBoxFormat, const OUString &sName)
Add a copy of rBoxFormat.
SwCellStyleDescriptor operator[](size_t i) const
std::vector< std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > > m_aCellStyles
SwBoxAutoFormat * GetBoxFormat(std::u16string_view sName) const
If found returns a ptr to a BoxFormat. If not found returns nullptr.
void RemoveBoxFormat(const OUString &sName)
SwTable is one table in the document model, containing rows (which contain cells).
SwTableAutoFormatUpdateFlags