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 (std::u16string_view 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 266 of file tblafmt.hxx.

Constructor & Destructor Documentation

◆ SwTableAutoFormatTable()

SwTableAutoFormatTable::SwTableAutoFormatTable ( )
explicit

◆ ~SwTableAutoFormatTable()

SwTableAutoFormatTable::~SwTableAutoFormatTable ( )

Definition at line 1012 of file tblafmt.cxx.

Member Function Documentation

◆ AddAutoFormat()

void SwTableAutoFormatTable::AddAutoFormat ( const SwTableAutoFormat rFormat)

Append table style to the existing styles.

Definition at line 949 of file tblafmt.cxx.

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

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

◆ EraseAutoFormat() [1/2]

void SwTableAutoFormatTable::EraseAutoFormat ( const OUString &  rName)

Definition at line 968 of file tblafmt.cxx.

References m_pImpl, and SAL_INFO.

◆ EraseAutoFormat() [2/2]

void SwTableAutoFormatTable::EraseAutoFormat ( size_t  i)

Definition at line 963 of file tblafmt.cxx.

References i, and m_pImpl.

◆ FindAutoFormat()

SwTableAutoFormat * SwTableAutoFormatTable::FindAutoFormat ( std::u16string_view  rName) const

◆ InsertAutoFormat()

void SwTableAutoFormatTable::InsertAutoFormat ( size_t  i,
std::unique_ptr< SwTableAutoFormat pFormat 
)

Definition at line 958 of file tblafmt.cxx.

References i, and m_pImpl.

Referenced by AddAutoFormat().

◆ Load() [1/2]

void SwTableAutoFormatTable::Load ( )

◆ Load() [2/2]

bool SwTableAutoFormatTable::Load ( SvStream rStream)
private

◆ operator[]() [1/2]

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

Definition at line 944 of file tblafmt.cxx.

References i, and m_pImpl.

◆ operator[]() [2/2]

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

Definition at line 940 of file tblafmt.cxx.

References i, and m_pImpl.

◆ ReleaseAutoFormat() [1/2]

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

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

Definition at line 988 of file tblafmt.cxx.

References m_pImpl.

◆ ReleaseAutoFormat() [2/2]

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

Definition at line 980 of file tblafmt.cxx.

References i, and m_pImpl.

Referenced by SwDoc::DelTableStyle().

◆ Save() [1/2]

bool SwTableAutoFormatTable::Save ( ) const

◆ Save() [2/2]

bool SwTableAutoFormatTable::Save ( SvStream rStream) const
private

◆ size()

size_t SwTableAutoFormatTable::size ( ) const

Member Data Documentation

◆ m_pImpl

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

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