LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwCellStyleTable Class Reference

#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...
 
SwBoxAutoFormatGetBoxFormat (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
 

Detailed Description

Definition at line 308 of file tblafmt.hxx.

Constructor & Destructor Documentation

◆ SwCellStyleTable()

SwCellStyleTable::SwCellStyleTable ( )

Definition at line 1176 of file tblafmt.cxx.

◆ ~SwCellStyleTable()

SwCellStyleTable::~SwCellStyleTable ( )

Definition at line 1179 of file tblafmt.cxx.

Member Function Documentation

◆ AddBoxFormat()

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.

◆ ChangeBoxFormatName()

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().

◆ clear()

void SwCellStyleTable::clear ( )

Definition at line 1188 of file tblafmt.cxx.

References m_aCellStyles.

◆ GetBoxFormat()

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().

◆ GetBoxFormatName()

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().

◆ operator[]()

SwCellStyleDescriptor SwCellStyleTable::operator[] ( size_t  i) const

Definition at line 1193 of file tblafmt.cxx.

References i, and m_aCellStyles.

◆ RemoveBoxFormat()

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()

size_t SwCellStyleTable::size ( ) const

Definition at line 1183 of file tblafmt.cxx.

References m_aCellStyles.

Referenced by SwStyleSheetIterator::First().

Member Data Documentation

◆ m_aCellStyles

std::vector<std::pair<OUString, std::unique_ptr<SwBoxAutoFormat> > > SwCellStyleTable::m_aCellStyles
private

The documentation for this class was generated from the following files: