19#ifndef INCLUDED_SW_INC_TBLAFMT_HXX
20#define INCLUDED_SW_INC_TBLAFMT_HXX
80 { rFormat = m_sNumFormatString; rLng = m_eNumFormatLanguage; rSys = m_eSysLanguage; }
91 { m_sNumFormatString = rFormat; m_eNumFormatLanguage = eLng; m_eSysLanguage = eSys; }
98 {
return m_xAutoFormatUnoObject; }
102 bool Save(
SvStream& rStream, sal_uInt16 fileVersion )
const;
156 friend class SwDocTest;
205 void SetName(
const OUString& rNew ) {
m_aName = rNew; m_nStrResId = USHRT_MAX; }
210 void UpdateToSet(
const sal_uInt8 nPos,
const bool bSingleRowTable,
const bool bSingleColTable,
214 void RestoreTableProperties(
SwTable &table)
const;
215 void StoreTableProperties(
const SwTable &table);
217 bool IsFont()
const {
return m_bInclFont; }
228 void SetFont(
const bool bNew ) { m_bInclFont = bNew; }
229 void SetJustify(
const bool bNew ) { m_bInclJustify = bNew; }
230 void SetFrame(
const bool bNew ) { m_bInclFrame = bNew; }
241 bool FirstRowEndColumnIsRow();
242 bool FirstRowStartColumnIsRow();
243 bool LastRowEndColumnIsRow();
244 bool LastRowStartColumnIsRow();
245 bool HasHeaderRow()
const;
248 bool Save(
SvStream& rStream, sal_uInt16 fileVersion )
const;
251 {
return m_xUnoTextTableStyle; }
255 OUString GetTableTemplateCellSubName(
const SwBoxAutoFormat& rBoxFormat)
const;
257 static const std::vector<sal_Int32>& GetTableTemplateMap();
263 static sal_uInt8 CountPos(sal_uInt32 nCol, sal_uInt32 nCols, sal_uInt32 nRow, sal_uInt32 nRows);
272 SAL_DLLPRIVATE
bool Save(
SvStream& rStream )
const;
285 void InsertAutoFormat(
size_t i, std::unique_ptr<SwTableAutoFormat> pFormat);
286 void EraseAutoFormat(
size_t i);
287 void EraseAutoFormat(
const OUString& rName);
288 std::unique_ptr<SwTableAutoFormat> ReleaseAutoFormat(
size_t i);
290 std::unique_ptr<SwTableAutoFormat> ReleaseAutoFormat(
const OUString& rName);
310 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).
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class.
A text table style is a UNO API wrapper for a SwTableAutoFormat.
SwTableAutoFormatUpdateFlags