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

#include <tblafmt.hxx>

Classes

struct  Impl
 

Public Member Functions

 SwTableAutoFormatTable ()
 
 ~SwTableAutoFormatTable ()
 
size_t size () const
 
SwTableAutoFormat const & operator[] (size_t i) const
 
SwTableAutoFormatoperator[] (size_t i)
 
void AddAutoFormat (const SwTableAutoFormat &rFormat)
 Append table style to the existing styles. More...
 
void InsertAutoFormat (size_t i, std::unique_ptr< SwTableAutoFormat > pFormat)
 
void EraseAutoFormat (size_t i)
 
void EraseAutoFormat (const OUString &rName)
 
std::unique_ptr< SwTableAutoFormatReleaseAutoFormat (size_t i)
 
std::unique_ptr< SwTableAutoFormatReleaseAutoFormat (const OUString &rName)
 Removes an autoformat. Returns pointer to the removed autoformat or nullptr. More...
 
SwTableAutoFormatFindAutoFormat (const OUString &rName) const
 Find table style with the provided name, return nullptr when not found. More...
 
void Load ()
 
bool Save () const
 

Private Member Functions

SAL_DLLPRIVATE bool Load (SvStream &rStream)
 
SAL_DLLPRIVATE bool Save (SvStream &rStream) const
 

Private Attributes

std::unique_ptr< Implm_pImpl
 

Detailed Description

Definition at line 268 of file tblafmt.hxx.

Constructor & Destructor Documentation

SwTableAutoFormatTable::SwTableAutoFormatTable ( )
explicit
SwTableAutoFormatTable::~SwTableAutoFormatTable ( )

Definition at line 1005 of file tblafmt.cxx.

Member Function Documentation

void SwTableAutoFormatTable::AddAutoFormat ( const SwTableAutoFormat rFormat)

Append table style to the existing styles.

Definition at line 942 of file tblafmt.cxx.

References FindAutoFormat(), SwTableAutoFormat::GetName(), InsertAutoFormat(), and size().

Referenced by lcl_FindTableStyle(), SwDoc::MakeTableStyle(), and SwFEShell::SetTableStyle().

void SwTableAutoFormatTable::EraseAutoFormat ( size_t  i)

Definition at line 956 of file tblafmt.cxx.

References m_pImpl.

void SwTableAutoFormatTable::EraseAutoFormat ( const OUString &  rName)

Definition at line 961 of file tblafmt.cxx.

References m_pImpl, and SAL_INFO.

SwTableAutoFormat * SwTableAutoFormatTable::FindAutoFormat ( const OUString &  rName) const
void SwTableAutoFormatTable::InsertAutoFormat ( size_t  i,
std::unique_ptr< SwTableAutoFormat pFormat 
)

Definition at line 951 of file tblafmt.cxx.

References m_pImpl.

Referenced by AddAutoFormat().

bool SwTableAutoFormatTable::Load ( SvStream rStream)
private
void SwTableAutoFormatTable::Load ( )
SwTableAutoFormat const & SwTableAutoFormatTable::operator[] ( size_t  i) const

Definition at line 933 of file tblafmt.cxx.

References m_pImpl.

SwTableAutoFormat & SwTableAutoFormatTable::operator[] ( size_t  i)

Definition at line 937 of file tblafmt.cxx.

References m_pImpl.

std::unique_ptr< SwTableAutoFormat > SwTableAutoFormatTable::ReleaseAutoFormat ( size_t  i)

Definition at line 973 of file tblafmt.cxx.

References m_pImpl.

Referenced by SwDoc::DelTableStyle().

std::unique_ptr< SwTableAutoFormat > SwTableAutoFormatTable::ReleaseAutoFormat ( const OUString &  rName)

Removes an autoformat. Returns pointer to the removed autoformat or nullptr.

Definition at line 981 of file tblafmt.cxx.

References m_pImpl.

bool SwTableAutoFormatTable::Save ( SvStream rStream) const
private
bool SwTableAutoFormatTable::Save ( ) const
size_t SwTableAutoFormatTable::size ( ) const

Member Data Documentation

std::unique_ptr<Impl> SwTableAutoFormatTable::m_pImpl
private

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