19 #ifndef INCLUDED_SW_INC_TBLAFMT_HXX
20 #define INCLUDED_SW_INC_TBLAFMT_HXX
57 css::uno::WeakReference<css::uno::XInterface>
m_wXObject;
86 { m_sNumFormatString = rFormat; m_eNumFormatLanguage = eLng; m_eSysLanguage = eSys; }
92 css::uno::WeakReference<css::uno::XInterface>
const&
GetXObject()
const
94 void SetXObject(css::uno::Reference<css::uno::XInterface>
const& xObject)
95 { m_wXObject = xObject; }
98 bool Save(
SvStream& rStream, sal_uInt16 fileVersion )
const;
152 friend class SwDocTest;
162 bool m_bInclFont : 1;
163 bool m_bInclJustify : 1;
164 bool m_bInclFrame : 1;
165 bool m_bInclBackground : 1;
166 bool m_bInclValueFormat : 1;
169 bool m_bInclWidthHeight : 1;
201 void SetName(
const OUString& rNew ) { m_aName = rNew; m_nStrResId = USHRT_MAX; }
202 const OUString&
GetName()
const {
return m_aName; }
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);
299 SwCellStyleDescriptor(
const std::pair<OUString, std::unique_ptr<SwBoxAutoFormat>>& rCellStyleDesc) : m_rCellStyleDesc(rCellStyleDesc) { }
301 const OUString&
GetName()
const {
return m_rCellStyleDesc.first; }
306 std::vector<std::pair<OUString, std::unique_ptr<SwBoxAutoFormat>>>
m_aCellStyles;
const OUString & GetName() const
SwCellStyleDescriptor(const std::pair< OUString, std::unique_ptr< SwBoxAutoFormat >> &rCellStyleDesc)
void RemoveBoxFormat(const OUString &sName)
std::vector< std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > > m_aCellStyles
virtual SvxShadowItem * Clone(SfxItemPool *pPool=nullptr) const override
void ChangeBoxFormatName(std::u16string_view sFromName, const OUString &sToName)
virtual SvxFrameDirectionItem * Clone(SfxItemPool *pPool=nullptr) const override
SwTableAutoFormatUpdateFlags
SwBoxAutoFormat * GetBoxFormat(std::u16string_view sName) const
If found returns a ptr to a BoxFormat. If not found returns nullptr.
SwTable is one table in the document model, containing rows (which contain cells).
SwCellStyleDescriptor operator[](size_t i) const
OUString GetBoxFormatName(const SwBoxAutoFormat &rBoxFormat) const
If found returns its name. If not found returns an empty OUString.
void AddBoxFormat(const SwBoxAutoFormat &rBoxFormat, const OUString &sName)
Add a copy of rBoxFormat.
const std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > & m_rCellStyleDesc