LibreOffice Module sw (master) 1
|
#include <tblafmt.hxx>
Classes | |
struct | Impl |
Public Member Functions | |
SwTableAutoFormatTable () | |
~SwTableAutoFormatTable () | |
size_t | size () const |
SwTableAutoFormat const & | operator[] (size_t i) const |
SwTableAutoFormat & | operator[] (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< SwTableAutoFormat > | ReleaseAutoFormat (size_t i) |
std::unique_ptr< SwTableAutoFormat > | ReleaseAutoFormat (const OUString &rName) |
Removes an autoformat. Returns pointer to the removed autoformat or nullptr. More... | |
SwTableAutoFormat * | FindAutoFormat (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< Impl > | m_pImpl |
Definition at line 266 of file tblafmt.hxx.
|
explicit |
Definition at line 1016 of file tblafmt.cxx.
References COL_BLACK(), SwStyleNameMapper::GetUIName(), i, m_pImpl, m_pImpl, RES_BOX(), RES_POOLTABLESTYLE_DEFAULT, SvxBoxItem::SetAllDistances(), SvxBoxItem::SetLine(), and SvxBorderLineWidth::VeryThin.
SwTableAutoFormatTable::~SwTableAutoFormatTable | ( | ) |
Definition at line 1012 of file tblafmt.cxx.
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().
void SwTableAutoFormatTable::EraseAutoFormat | ( | const OUString & | rName | ) |
Definition at line 968 of file tblafmt.cxx.
void SwTableAutoFormatTable::EraseAutoFormat | ( | size_t | i | ) |
Definition at line 963 of file tblafmt.cxx.
SwTableAutoFormat * SwTableAutoFormatTable::FindAutoFormat | ( | std::u16string_view | rName | ) | const |
Find table style with the provided name, return nullptr when not found.
Definition at line 1001 of file tblafmt.cxx.
References m_pImpl.
Referenced by AddAutoFormat(), SwDoc::ChgTableStyle(), SwDocStyleSheet::Create(), HTMLTable::FixFrameFormat(), SwXTextCellStyle::GetBoxAutoFormat(), SwXTextCellStyle::getName(), SwDocStyleSheet::IsHidden(), SwXTextCellStyle::isUserDefined(), lcl_FindTableStyle(), SwDoc::MakeTableStyle(), SwDocStyleSheet::SetHidden(), SwFEShell::SetTableStyle(), and SwFEShell::UpdateTableStyleFormatting().
void SwTableAutoFormatTable::InsertAutoFormat | ( | size_t | i, |
std::unique_ptr< SwTableAutoFormat > | pFormat | ||
) |
Definition at line 958 of file tblafmt.cxx.
Referenced by AddAutoFormat().
void SwTableAutoFormatTable::Load | ( | ) |
Definition at line 1043 of file tblafmt.cxx.
References AUTOTABLE_FORMAT_NAME, SfxMedium::GetInStream(), utl::ConfigManager::IsFuzzing(), Load(), and SvtPathOptions::SearchFile().
Referenced by Load().
|
private |
Definition at line 1066 of file tblafmt.cxx.
References AUTOFORMAT_ID, AUTOFORMAT_ID_31005, AUTOFORMAT_ID_358, AUTOFORMAT_ID_504, AUTOFORMAT_ID_X, ERRCODE_NONE, SvStream::GetError(), i, SwAfVersions::Load(), m_pImpl, nCount, nPos, SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::remainingSize(), SAL_WARN, SvStream::Seek(), SvStream::SetStreamCharSet(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_40, SOFFICE_FILEFORMAT_50, and SvStream::Tell().
Referenced by SwXTextTable::autoFormat(), SwBaseShell::InsertTable(), and SwInsertDBColAutoPilot::Load().
SwTableAutoFormat & SwTableAutoFormatTable::operator[] | ( | size_t | i | ) |
Definition at line 944 of file tblafmt.cxx.
SwTableAutoFormat const & SwTableAutoFormatTable::operator[] | ( | size_t | i | ) | const |
Definition at line 940 of file tblafmt.cxx.
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.
std::unique_ptr< SwTableAutoFormat > SwTableAutoFormatTable::ReleaseAutoFormat | ( | size_t | i | ) |
Definition at line 980 of file tblafmt.cxx.
Referenced by SwDoc::DelTableStyle().
bool SwTableAutoFormatTable::Save | ( | ) | const |
Definition at line 1056 of file tblafmt.cxx.
References AUTOTABLE_FORMAT_NAME, SfxMedium::Commit(), SfxMedium::GetOutStream(), SvtPathOptions::GetUserConfigPath(), utl::ConfigManager::IsFuzzing(), and Save().
Referenced by Save().
|
private |
Definition at line 1144 of file tblafmt.cxx.
References AUTOFORMAT_FILE_VERSION, AUTOFORMAT_ID, ERRCODE_NONE, SvStream::FlushBuffer(), SvStream::GetError(), GetStoreCharSet(), i, m_pImpl, SwTableAutoFormat::Save(), SvStream::SetVersion(), SwAfVersions::Write(), SvStream::WriteUChar(), and SvStream::WriteUInt16().
size_t SwTableAutoFormatTable::size | ( | ) | const |
Definition at line 935 of file tblafmt.cxx.
References m_pImpl.
Referenced by AddAutoFormat(), SwXTextTable::autoFormat(), SwStyleSheetIterator::First(), SwXTextTableStyle::GetTableAutoFormat(), SwBaseShell::InsertTable(), lcl_FindCellStyle(), and SwInsertDBColAutoPilot::Load().
|
private |
Definition at line 269 of file tblafmt.hxx.
Referenced by EraseAutoFormat(), FindAutoFormat(), InsertAutoFormat(), Load(), operator[](), ReleaseAutoFormat(), Save(), size(), and SwTableAutoFormatTable().