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 (const OUString &sFromName, const OUString &sToName)
 
OUString GetBoxFormatName (const SwBoxAutoFormat &rBoxFormat) const
 If found returns its name. If not found returns an empty OUString. More...
 
SwBoxAutoFormatGetBoxFormat (const OUString &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 390 of file tblafmt.hxx.

Constructor & Destructor Documentation

SwCellStyleTable::SwCellStyleTable ( )

Definition at line 1392 of file tblafmt.cxx.

SwCellStyleTable::~SwCellStyleTable ( )

Definition at line 1395 of file tblafmt.cxx.

Member Function Documentation

void SwCellStyleTable::AddBoxFormat ( const SwBoxAutoFormat rBoxFormat,
const OUString &  sName 
)

Add a copy of rBoxFormat.

Definition at line 1414 of file tblafmt.cxx.

References m_aCellStyles.

Referenced by sw::XStyleFamily::insertByName().

void SwCellStyleTable::ChangeBoxFormatName ( const OUString &  sFromName,
const OUString &  sToName 
)

Definition at line 1454 of file tblafmt.cxx.

References first(), GetBoxFormat(), i, m_aCellStyles, and SAL_INFO.

Referenced by SwXTextCellStyle::setName().

void SwCellStyleTable::clear ( )

Definition at line 1404 of file tblafmt.cxx.

References m_aCellStyles.

SwBoxAutoFormat * SwCellStyleTable::GetBoxFormat ( const OUString &  sName) const

If found returns a ptr to a BoxFormat. If not found returns nullptr.

Definition at line 1443 of file tblafmt.cxx.

References first(), i, and m_aCellStyles.

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 1431 of file tblafmt.cxx.

References first(), i, and m_aCellStyles.

Referenced by SwXTextCellStyle::getName().

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

Definition at line 1409 of file tblafmt.cxx.

References m_aCellStyles.

void SwCellStyleTable::RemoveBoxFormat ( const OUString &  sName)

Definition at line 1419 of file tblafmt.cxx.

References m_aCellStyles, and SAL_INFO.

Referenced by sw::XStyleFamily::removeByName(), and SwXTextTableStyle::replaceByName().

size_t SwCellStyleTable::size ( ) const

Definition at line 1399 of file tblafmt.cxx.

References m_aCellStyles.

Referenced by SwStyleSheetIterator::First().

Member Data Documentation

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

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