LibreOffice Module sc (master)
1
|
#include <autoform.hxx>
Public Types | |
typedef MapType::const_iterator | const_iterator |
typedef MapType::iterator | iterator |
Public Member Functions | |
ScAutoFormat () | |
void | Load () |
bool | Save () |
void | SetSaveLater (bool bSet) |
bool | IsSaveLater () const |
const ScAutoFormatData * | findByIndex (size_t nIndex) const |
ScAutoFormatData * | findByIndex (size_t nIndex) |
iterator | find (const OUString &rName) |
iterator | insert (std::unique_ptr< ScAutoFormatData > pNew) |
void | erase (const iterator &it) |
size_t | size () const |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
Private Types | |
typedef std::map< OUString, std::unique_ptr< ScAutoFormatData >, DefaultFirstEntry > | MapType |
Private Member Functions | |
ScAutoFormat (const ScAutoFormat &)=delete | |
const ScAutoFormat | operator= (const ScAutoFormat &)=delete |
Private Attributes | |
MapType | m_Data |
bool | mbSaveLater |
ScAfVersions | m_aVersions |
Definition at line 180 of file autoform.hxx.
typedef MapType::const_iterator ScAutoFormat::const_iterator |
Definition at line 191 of file autoform.hxx.
typedef MapType::iterator ScAutoFormat::iterator |
Definition at line 192 of file autoform.hxx.
|
private |
Definition at line 182 of file autoform.hxx.
|
privatedelete |
ScAutoFormat::ScAutoFormat | ( | ) |
Definition at line 666 of file autoform.cxx.
References aName, ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_HEIGHT(), COL_BLACK, COL_BLUE(), COL_WHITE, DEF_LINE_WIDTH_0, vcl::Font::GetCharSet(), OutputDevice::GetDefaultFont(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), i, insert(), LANGUAGE_ENGLISH_US, pData, ScResId(), and SvxBoxItem::SetLine().
ScAutoFormat::const_iterator ScAutoFormat::begin | ( | ) | const |
Definition at line 807 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScCellShell::Execute(), ScAutoFormatDlg::ScAutoFormatDlg(), and ScAutoFormatObj::setName().
ScAutoFormat::iterator ScAutoFormat::begin | ( | ) |
Definition at line 817 of file autoform.cxx.
References m_Data.
ScAutoFormat::const_iterator ScAutoFormat::end | ( | ) | const |
Definition at line 812 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScAutoFormatsObj::insertByName(), ScAutoFormatsObj::removeByName(), and ScAutoFormatObj::setName().
ScAutoFormat::iterator ScAutoFormat::end | ( | ) |
Definition at line 822 of file autoform.cxx.
References m_Data.
Definition at line 797 of file autoform.cxx.
References m_Data.
Referenced by ScAutoFormatsObj::removeByName(), and ScAutoFormatObj::setName().
ScAutoFormat::iterator ScAutoFormat::find | ( | const OUString & | rName | ) |
Definition at line 786 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScCellShell::Execute(), and ScAutoFormatsObj::removeByName().
const ScAutoFormatData * ScAutoFormat::findByIndex | ( | size_t | nIndex | ) | const |
Definition at line 766 of file autoform.cxx.
References m_Data.
Referenced by ScDocFunc::AutoFormat(), ScTable::AutoFormat(), ScTable::AutoFormatArea(), ScAutoFormatDlg::GetCurrFormatName(), ScAutoFormatObj::getName(), ScAutoFormatObj::getPropertyValue(), ScAutoFormatFieldObj::getPropertyValue(), ScAutoFormatObj::setPropertyValue(), ScAutoFormatFieldObj::setPropertyValue(), and ScAutoFormatDlg::UpdateChecks().
ScAutoFormatData * ScAutoFormat::findByIndex | ( | size_t | nIndex | ) |
Definition at line 776 of file autoform.cxx.
References m_Data.
ScAutoFormat::iterator ScAutoFormat::insert | ( | std::unique_ptr< ScAutoFormatData > | pNew | ) |
Definition at line 791 of file autoform.cxx.
Referenced by ScAutoFormatsObj::insertByName(), Load(), ScAutoFormat(), and ScAutoFormatObj::setName().
|
inline |
Definition at line 199 of file autoform.hxx.
Referenced by ScAutoFormatObj::~ScAutoFormatObj().
void ScAutoFormat::Load | ( | ) |
Definition at line 827 of file autoform.cxx.
References INetURLObject::Append(), aURL, AUTOFORMAT_ID, AUTOFORMAT_ID_358, AUTOFORMAT_ID_504, AUTOFORMAT_ID_X, ERRCODE_NONE, SvStream::GetError(), INetURLObject::GetMainURL(), GetSOLoadTextEncoding(), SvtPathOptions::GetUserConfigPath(), i, insert(), ScAfVersions::Load(), m_aVersions, mbSaveLater, INetURLObject::NONE, nPos, pData, SvStream::ReadUChar(), SvStream::ReadUInt16(), sAutoTblFmtName, SvStream::Seek(), INetURLObject::setFinalSlash(), INetURLObject::SetSmartURL(), SvStream::SetStreamCharSet(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_40, and SvStream::Tell().
|
privatedelete |
bool ScAutoFormat::Save | ( | ) |
Definition at line 883 of file autoform.cxx.
References INetURLObject::Append(), aURL, AUTOFORMAT_ID, ERRCODE_NONE, SvStream::Flush(), SvStream::GetError(), INetURLObject::GetMainURL(), GetSOStoreTextEncoding(), SvtPathOptions::GetUserConfigPath(), m_aVersions, m_Data, mbSaveLater, INetURLObject::NONE, sAutoTblFmtName, INetURLObject::setFinalSlash(), INetURLObject::SetSmartURL(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, ScAfVersions::Write(), SvStream::WriteUChar(), and SvStream::WriteUInt16().
Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), ScAutoFormatsObj::insertByName(), ScAutoFormatsObj::removeByName(), and ScAutoFormatObj::~ScAutoFormatObj().
void ScAutoFormat::SetSaveLater | ( | bool | bSet | ) |
Definition at line 761 of file autoform.cxx.
References mbSaveLater.
Referenced by ScAutoFormatObj::setName(), ScAutoFormatObj::setPropertyValue(), and ScAutoFormatFieldObj::setPropertyValue().
size_t ScAutoFormat::size | ( | ) | const |
Definition at line 802 of file autoform.cxx.
References m_Data.
Referenced by ScAutoFormatsObj::getCount(), ScAutoFormatsObj::getElementNames(), and ScAutoFormatObj::setName().
|
private |
Definition at line 185 of file autoform.hxx.
|
private |
Definition at line 183 of file autoform.hxx.
Referenced by begin(), end(), erase(), find(), findByIndex(), insert(), Save(), and size().
|
private |
Definition at line 184 of file autoform.hxx.
Referenced by Load(), Save(), and SetSaveLater().