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 662 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(), vcl::Font::GetCharSet(), OutputDevice::GetDefaultFont(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), i, insert(), LANGUAGE_ENGLISH_US, pData, ScResId(), SvxBoxItem::SetLine(), and SvxBorderLineWidth::VeryThin.
ScAutoFormat::iterator ScAutoFormat::begin | ( | ) |
Definition at line 813 of file autoform.cxx.
References m_Data.
ScAutoFormat::const_iterator ScAutoFormat::begin | ( | ) | const |
Definition at line 803 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScCellShell::Execute(), ScAutoFormatDlg::ScAutoFormatDlg(), and ScAutoFormatObj::setName().
ScAutoFormat::iterator ScAutoFormat::end | ( | ) |
Definition at line 818 of file autoform.cxx.
References m_Data.
ScAutoFormat::const_iterator ScAutoFormat::end | ( | ) | const |
Definition at line 808 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScAutoFormatsObj::insertByName(), ScAutoFormatsObj::removeByName(), and ScAutoFormatObj::setName().
void ScAutoFormat::erase | ( | const iterator & | it | ) |
Definition at line 793 of file autoform.cxx.
References m_Data.
Referenced by ScAutoFormatsObj::removeByName(), and ScAutoFormatObj::setName().
ScAutoFormat::iterator ScAutoFormat::find | ( | const OUString & | rName | ) |
Definition at line 782 of file autoform.cxx.
References m_Data.
Referenced by ScCellRangeObj::autoFormat(), ScCellShell::Execute(), and ScAutoFormatsObj::removeByName().
ScAutoFormatData * ScAutoFormat::findByIndex | ( | size_t | nIndex | ) |
Definition at line 772 of file autoform.cxx.
const ScAutoFormatData * ScAutoFormat::findByIndex | ( | size_t | nIndex | ) | const |
Definition at line 762 of file autoform.cxx.
References m_Data, and nIndex.
Referenced by ScDocFunc::AutoFormat(), ScTable::AutoFormat(), ScTable::AutoFormatArea(), ScAutoFormatDlg::GetCurrFormatName(), ScAutoFormatObj::getName(), ScAutoFormatObj::getPropertyValue(), ScAutoFormatFieldObj::getPropertyValue(), ScAutoFormatObj::setPropertyValue(), ScAutoFormatFieldObj::setPropertyValue(), and ScAutoFormatDlg::UpdateChecks().
ScAutoFormat::iterator ScAutoFormat::insert | ( | std::unique_ptr< ScAutoFormatData > | pNew | ) |
Definition at line 787 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 823 of file autoform.cxx.
References aURL, AUTOFORMAT_ID, AUTOFORMAT_ID_358, AUTOFORMAT_ID_504, AUTOFORMAT_ID_X, ERRCODE_NONE, SvStream::GetError(), SfxMedium::GetInStream(), GetSOLoadTextEncoding(), SvtPathOptions::GetUserConfigPath(), i, insert(), ScAfVersions::Load(), m_aVersions, mbSaveLater, INetURLObject::NONE, nPos, pData, SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::remainingSize(), SAL_WARN, sAutoTblFmtName, SvStream::Seek(), SvStream::SetStreamCharSet(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_40, and SvStream::Tell().
|
privatedelete |
bool ScAutoFormat::Save | ( | ) |
Definition at line 889 of file autoform.cxx.
References aURL, AUTOFORMAT_ID, SfxMedium::Commit(), ERRCODE_NONE, SvStream::FlushBuffer(), SvStream::GetError(), SfxMedium::GetOutStream(), SvtPathOptions::GetUserConfigPath(), m_aVersions, m_Data, mbSaveLater, INetURLObject::NONE, sAutoTblFmtName, 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 757 of file autoform.cxx.
References mbSaveLater.
Referenced by ScAutoFormatObj::setName(), ScAutoFormatObj::setPropertyValue(), and ScAutoFormatFieldObj::setPropertyValue().
size_t ScAutoFormat::size | ( | ) | const |
Definition at line 798 of file autoform.cxx.
References m_Data.
Referenced by ScAutoFormatsObj::getCount(), ScAutoFormatsObj::getElementNames(), ScAutoFormatDlg::Init(), 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().