LibreOffice Module sw (master) 1
|
#include <tblafmt.hxx>
Public Member Functions | |
SwCellStyleTable () | |
~SwCellStyleTable () | |
size_t | size () const |
SwCellStyleDescriptor | operator[] (size_t i) const |
void | clear () |
void | AddBoxFormat (const SwBoxAutoFormat &rBoxFormat, const OUString &sName) |
Add a copy of rBoxFormat. More... | |
void | RemoveBoxFormat (const OUString &sName) |
void | ChangeBoxFormatName (std::u16string_view sFromName, const OUString &sToName) |
OUString | GetBoxFormatName (const SwBoxAutoFormat &rBoxFormat) const |
If found returns its name. If not found returns an empty OUString. More... | |
SwBoxAutoFormat * | GetBoxFormat (std::u16string_view sName) const |
If found returns a ptr to a BoxFormat. If not found returns nullptr. More... | |
Private Attributes | |
std::vector< std::pair< OUString, std::unique_ptr< SwBoxAutoFormat > > > | m_aCellStyles |
Definition at line 308 of file tblafmt.hxx.
SwCellStyleTable::SwCellStyleTable | ( | ) |
Definition at line 1176 of file tblafmt.cxx.
SwCellStyleTable::~SwCellStyleTable | ( | ) |
Definition at line 1179 of file tblafmt.cxx.
void SwCellStyleTable::AddBoxFormat | ( | const SwBoxAutoFormat & | rBoxFormat, |
const OUString & | sName | ||
) |
Add a copy of rBoxFormat.
Definition at line 1198 of file tblafmt.cxx.
References m_aCellStyles, and sName.
void SwCellStyleTable::ChangeBoxFormatName | ( | std::u16string_view | sFromName, |
const OUString & | sToName | ||
) |
Definition at line 1238 of file tblafmt.cxx.
References first, GetBoxFormat(), i, m_aCellStyles, and SAL_INFO.
Referenced by SwXTextCellStyle::setName().
void SwCellStyleTable::clear | ( | ) |
Definition at line 1188 of file tblafmt.cxx.
References m_aCellStyles.
SwBoxAutoFormat * SwCellStyleTable::GetBoxFormat | ( | std::u16string_view | sName | ) | const |
If found returns a ptr to a BoxFormat. If not found returns nullptr.
Definition at line 1227 of file tblafmt.cxx.
References first, i, m_aCellStyles, and sName.
Referenced by ChangeBoxFormatName(), SwXTextCellStyle::GetBoxAutoFormat(), and lcl_FindCellStyle().
OUString SwCellStyleTable::GetBoxFormatName | ( | const SwBoxAutoFormat & | rBoxFormat | ) | const |
If found returns its name. If not found returns an empty OUString.
Definition at line 1215 of file tblafmt.cxx.
References i, and m_aCellStyles.
Referenced by SwXTextCellStyle::getName().
SwCellStyleDescriptor SwCellStyleTable::operator[] | ( | size_t | i | ) | const |
Definition at line 1193 of file tblafmt.cxx.
References i, and m_aCellStyles.
void SwCellStyleTable::RemoveBoxFormat | ( | const OUString & | sName | ) |
Definition at line 1203 of file tblafmt.cxx.
References m_aCellStyles, SAL_INFO, and sName.
Referenced by SwXTextTableStyle::replaceByName().
size_t SwCellStyleTable::size | ( | ) | const |
Definition at line 1183 of file tblafmt.cxx.
References m_aCellStyles.
Referenced by SwStyleSheetIterator::First().
|
private |
Definition at line 310 of file tblafmt.hxx.
Referenced by AddBoxFormat(), ChangeBoxFormatName(), clear(), GetBoxFormat(), GetBoxFormatName(), operator[](), RemoveBoxFormat(), and size().