|
LibreOffice Module sc (master) 1
|
#include <autoform.hxx>
Public Member Functions | |
| ScAutoFormatData () | |
| ScAutoFormatData (const ScAutoFormatData &rData) | |
| ~ScAutoFormatData () | |
| void | SetName (const OUString &rName) |
| const OUString & | GetName () const |
| bool | GetIncludeValueFormat () const |
| bool | GetIncludeFont () const |
| bool | GetIncludeJustify () const |
| bool | GetIncludeFrame () const |
| bool | GetIncludeBackground () const |
| bool | GetIncludeWidthHeight () const |
| void | SetIncludeValueFormat (bool bValueFormat) |
| void | SetIncludeFont (bool bFont) |
| void | SetIncludeJustify (bool bJustify) |
| void | SetIncludeFrame (bool bFrame) |
| void | SetIncludeBackground (bool bBackground) |
| void | SetIncludeWidthHeight (bool bWidthHeight) |
| const SfxPoolItem * | GetItem (sal_uInt16 nIndex, sal_uInt16 nWhich) const |
| template<class T > | |
| const T * | GetItem (sal_uInt16 nIndex, TypedWhichId< T > nWhich) const |
| void | PutItem (sal_uInt16 nIndex, const SfxPoolItem &rItem) |
| void | CopyItem (sal_uInt16 nToIndex, sal_uInt16 nFromIndex, sal_uInt16 nWhich) |
| const ScNumFormatAbbrev & | GetNumFormat (sal_uInt16 nIndex) const |
| bool | HasSameData (sal_uInt16 nIndex1, sal_uInt16 nIndex2) const |
| void | FillToItemSet (sal_uInt16 nIndex, SfxItemSet &rItemSet, const ScDocument &rDoc) const |
| void | GetFromItemSet (sal_uInt16 nIndex, const SfxItemSet &rItemSet, const ScNumFormatAbbrev &rNumFormat) |
| bool | Load (SvStream &rStream, const ScAfVersions &rVersions) |
| bool | Save (SvStream &rStream, sal_uInt16 fileVersion) |
Private Member Functions | |
| SAL_DLLPRIVATE ScAutoFormatDataField & | GetField (sal_uInt16 nIndex) |
| SAL_DLLPRIVATE const ScAutoFormatDataField & | GetField (sal_uInt16 nIndex) const |
Private Attributes | |
| OUString | aName |
| sal_uInt16 | nStrResId |
| bool | bIncludeFont: 1 |
| bool | bIncludeJustify: 1 |
| bool | bIncludeFrame: 1 |
| bool | bIncludeBackground: 1 |
| bool | bIncludeValueFormat: 1 |
| bool | bIncludeWidthHeight: 1 |
| AutoFormatSwBlob | m_swFields |
| std::array< std::unique_ptr< ScAutoFormatDataField >, 16 > | ppDataField |
Definition at line 112 of file autoform.hxx.
| ScAutoFormatData::ScAutoFormatData | ( | ) |
Definition at line 247 of file autoform.cxx.
References bIncludeBackground, bIncludeFont, bIncludeFrame, bIncludeJustify, bIncludeValueFormat, bIncludeWidthHeight, nIndex, nStrResId, and ppDataField.
| ScAutoFormatData::ScAutoFormatData | ( | const ScAutoFormatData & | rData | ) |
Definition at line 262 of file autoform.cxx.
References aName, GetField(), nIndex, and ppDataField.
| ScAutoFormatData::~ScAutoFormatData | ( | ) |
Definition at line 276 of file autoform.cxx.
| void ScAutoFormatData::CopyItem | ( | sal_uInt16 | nToIndex, |
| sal_uInt16 | nFromIndex, | ||
| sal_uInt16 | nWhich | ||
| ) |
Definition at line 369 of file autoform.cxx.
References GetItem(), and PutItem().
Referenced by ScTable::GetAutoFormatData().
| void ScAutoFormatData::FillToItemSet | ( | sal_uInt16 | nIndex, |
| SfxItemSet & | rItemSet, | ||
| const ScDocument & | rDoc | ||
| ) | const |
Definition at line 440 of file autoform.cxx.
References ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_LANGUAGE_FORMAT(), ATTR_VALUE_FORMAT(), bIncludeBackground, bIncludeFont, bIncludeFrame, bIncludeJustify, bIncludeValueFormat, AutoFormatBase::GetBackground(), AutoFormatBase::GetBLTR(), AutoFormatBase::GetBox(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), GetField(), AutoFormatBase::GetFont(), ScNumFormatAbbrev::GetFormatIndex(), ScDocument::GetFormatTable(), AutoFormatBase::GetHeight(), AutoFormatBase::GetHorJustify(), ScNumFormatAbbrev::GetLanguage(), AutoFormatBase::GetLinebreak(), AutoFormatBase::GetMargin(), ScAutoFormatDataField::GetNumFormat(), AutoFormatBase::GetOverline(), AutoFormatBase::GetPosture(), AutoFormatBase::GetRotateAngle(), AutoFormatBase::GetRotateMode(), AutoFormatBase::GetShadowed(), AutoFormatBase::GetStacked(), SvxFontItem::GetStyleName(), AutoFormatBase::GetTLBR(), AutoFormatBase::GetUnderline(), AutoFormatBase::GetVerJustify(), AutoFormatBase::GetWeight(), nIndex, SfxItemSet::Put(), and CntUInt32Item::SetValue().
|
private |
Definition at line 280 of file autoform.cxx.
References nIndex, and ppDataField.
Referenced by FillToItemSet(), GetFromItemSet(), GetItem(), GetNumFormat(), HasSameData(), Load(), PutItem(), Save(), and ScAutoFormatData().
|
private |
Definition at line 287 of file autoform.cxx.
References nIndex, and ppDataField.
| void ScAutoFormatData::GetFromItemSet | ( | sal_uInt16 | nIndex, |
| const SfxItemSet & | rItemSet, | ||
| const ScNumFormatAbbrev & | rNumFormat | ||
| ) |
Definition at line 527 of file autoform.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_HEIGHT(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_MARGIN(), ATTR_ROTATE_MODE(), ATTR_ROTATE_VALUE(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), SfxItemSet::Get(), GetField(), nIndex, AutoFormatBase::SetBackground(), AutoFormatBase::SetBLTR(), AutoFormatBase::SetCJKFont(), AutoFormatBase::SetCJKHeight(), AutoFormatBase::SetCJKPosture(), AutoFormatBase::SetCJKWeight(), AutoFormatBase::SetColor(), AutoFormatBase::SetContour(), AutoFormatBase::SetCrossedOut(), AutoFormatBase::SetCTLFont(), AutoFormatBase::SetCTLHeight(), AutoFormatBase::SetCTLPosture(), AutoFormatBase::SetCTLWeight(), AutoFormatBase::SetFont(), AutoFormatBase::SetHeight(), AutoFormatBase::SetHorJustify(), AutoFormatBase::SetLinebreak(), AutoFormatBase::SetMargin(), ScAutoFormatDataField::SetNumFormat(), AutoFormatBase::SetOverline(), AutoFormatBase::SetPosture(), AutoFormatBase::SetRotateAngle(), AutoFormatBase::SetRotateMode(), AutoFormatBase::SetShadowed(), AutoFormatBase::SetStacked(), AutoFormatBase::SetTLBR(), AutoFormatBase::SetUnderline(), AutoFormatBase::SetVerJustify(), and AutoFormatBase::SetWeight().
Referenced by ScTable::GetAutoFormatAttr().
|
inline |
Definition at line 147 of file autoform.hxx.
Referenced by ScAutoFmtPreview::PaintCells().
|
inline |
Definition at line 144 of file autoform.hxx.
Referenced by ScAutoFmtPreview::DrawString().
|
inline |
Definition at line 146 of file autoform.hxx.
Referenced by ScAutoFmtPreview::PaintCells().
|
inline |
Definition at line 145 of file autoform.hxx.
Referenced by ScAutoFmtPreview::DrawString().
|
inline |
Definition at line 143 of file autoform.hxx.
Referenced by ScAutoFmtPreview::DrawString().
|
inline |
Definition at line 148 of file autoform.hxx.
Referenced by ScDocFunc::AutoFormat(), and ScAutoFmtPreview::NotifyChange().
| const SfxPoolItem * ScAutoFormatData::GetItem | ( | sal_uInt16 | nIndex, |
| sal_uInt16 | nWhich | ||
| ) | const |
Definition at line 294 of file autoform.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_HEIGHT(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_MARGIN(), ATTR_ROTATE_MODE(), ATTR_ROTATE_VALUE(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), AutoFormatBase::GetBackground(), AutoFormatBase::GetBLTR(), AutoFormatBase::GetBox(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), GetField(), AutoFormatBase::GetFont(), AutoFormatBase::GetHeight(), AutoFormatBase::GetHorJustify(), AutoFormatBase::GetLinebreak(), AutoFormatBase::GetMargin(), AutoFormatBase::GetOverline(), AutoFormatBase::GetPosture(), AutoFormatBase::GetRotateAngle(), AutoFormatBase::GetRotateMode(), AutoFormatBase::GetShadowed(), AutoFormatBase::GetStacked(), AutoFormatBase::GetTLBR(), AutoFormatBase::GetUnderline(), AutoFormatBase::GetVerJustify(), AutoFormatBase::GetWeight(), and nIndex.
Referenced by CopyItem(), ScAutoFmtPreview::DrawBackground(), ScAutoFmtPreview::DrawString(), ScAutoFmtPreview::GetBoxItem(), ScAutoFmtPreview::GetDiagItem(), and ScAutoFmtPreview::MakeFonts().
|
inline |
Definition at line 158 of file autoform.hxx.
|
inline |
Definition at line 141 of file autoform.hxx.
References aName.
Referenced by ScAutoFormatObj::getName(), and lcl_FindAutoFormatIndex().
| const ScNumFormatAbbrev & ScAutoFormatData::GetNumFormat | ( | sal_uInt16 | nIndex | ) | const |
Definition at line 376 of file autoform.cxx.
References GetField(), ScAutoFormatDataField::GetNumFormat(), and nIndex.
Referenced by ScAutoFmtPreview::DrawString().
| bool ScAutoFormatData::HasSameData | ( | sal_uInt16 | nIndex1, |
| sal_uInt16 | nIndex2 | ||
| ) | const |
Definition at line 381 of file autoform.cxx.
References bIncludeBackground, bIncludeFont, bIncludeFrame, bIncludeJustify, bIncludeValueFormat, AutoFormatBase::GetBackground(), AutoFormatBase::GetBLTR(), AutoFormatBase::GetBox(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), GetField(), AutoFormatBase::GetFont(), AutoFormatBase::GetHeight(), AutoFormatBase::GetHorJustify(), AutoFormatBase::GetLinebreak(), AutoFormatBase::GetMargin(), ScAutoFormatDataField::GetNumFormat(), AutoFormatBase::GetOverline(), AutoFormatBase::GetPosture(), AutoFormatBase::GetRotateAngle(), AutoFormatBase::GetRotateMode(), AutoFormatBase::GetShadowed(), AutoFormatBase::GetStacked(), AutoFormatBase::GetTLBR(), AutoFormatBase::GetUnderline(), AutoFormatBase::GetVerJustify(), and AutoFormatBase::GetWeight().
| bool ScAutoFormatData::Load | ( | SvStream & | rStream, |
| const ScAfVersions & | rVersions | ||
| ) |
Definition at line 592 of file autoform.cxx.
References aName, AUTOFORMAT_DATA_ID, AUTOFORMAT_DATA_ID_31005, AUTOFORMAT_DATA_ID_504, AUTOFORMAT_DATA_ID_552, AUTOFORMAT_DATA_ID_X, AUTOFORMAT_ID_680DR25, bIncludeBackground, bIncludeFont, bIncludeFrame, bIncludeJustify, bIncludeValueFormat, bIncludeWidthHeight, ERRCODE_NONE, SvStream::GetError(), GetField(), SvStream::GetStreamCharSet(), i, ScAutoFormatDataField::Load(), m_swFields, nStrResId, read_uInt16_lenPrefixed_uInt8s_ToOUString(), SvStream::ReadCharAsBool(), SvStream::ReadUInt16(), SvStream::ReadUniOrByteString(), RID_SVXSTR_TBLAFMT, SAL_N_ELEMENTS, and SvxResId().
| void ScAutoFormatData::PutItem | ( | sal_uInt16 | nIndex, |
| const SfxPoolItem & | rItem | ||
| ) |
Definition at line 332 of file autoform.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_HEIGHT(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_MARGIN(), ATTR_ROTATE_MODE(), ATTR_ROTATE_VALUE(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), GetField(), nIndex, AutoFormatBase::SetBackground(), AutoFormatBase::SetBLTR(), AutoFormatBase::SetBox(), AutoFormatBase::SetCJKFont(), AutoFormatBase::SetCJKHeight(), AutoFormatBase::SetCJKPosture(), AutoFormatBase::SetCJKWeight(), AutoFormatBase::SetColor(), AutoFormatBase::SetContour(), AutoFormatBase::SetCrossedOut(), AutoFormatBase::SetCTLFont(), AutoFormatBase::SetCTLHeight(), AutoFormatBase::SetCTLPosture(), AutoFormatBase::SetCTLWeight(), AutoFormatBase::SetFont(), AutoFormatBase::SetHeight(), AutoFormatBase::SetHorJustify(), AutoFormatBase::SetLinebreak(), AutoFormatBase::SetMargin(), AutoFormatBase::SetOverline(), AutoFormatBase::SetPosture(), AutoFormatBase::SetRotateAngle(), AutoFormatBase::SetRotateMode(), AutoFormatBase::SetShadowed(), AutoFormatBase::SetStacked(), AutoFormatBase::SetTLBR(), AutoFormatBase::SetUnderline(), AutoFormatBase::SetVerJustify(), AutoFormatBase::SetWeight(), SfxPoolItem::StaticWhichCast(), and SfxPoolItem::Which().
Referenced by CopyItem(), and ScTable::GetAutoFormatFrame().
| bool ScAutoFormatData::Save | ( | SvStream & | rStream, |
| sal_uInt16 | fileVersion | ||
| ) |
Definition at line 638 of file autoform.cxx.
References aName, AUTOFORMAT_DATA_ID, bIncludeBackground, bIncludeFont, bIncludeFrame, bIncludeJustify, bIncludeValueFormat, bIncludeWidthHeight, ERRCODE_NONE, SvStream::GetError(), GetField(), i, m_swFields, nStrResId, ScAutoFormatDataField::Save(), SOFFICE_FILEFORMAT_50, write_uInt16_lenPrefixed_uInt8s_FromOUString(), SvStream::WriteBool(), and SvStream::WriteUInt16().
|
inline |
Definition at line 154 of file autoform.hxx.
|
inline |
Definition at line 151 of file autoform.hxx.
|
inline |
Definition at line 153 of file autoform.hxx.
|
inline |
Definition at line 152 of file autoform.hxx.
|
inline |
Definition at line 150 of file autoform.hxx.
|
inline |
Definition at line 155 of file autoform.hxx.
|
inline |
Definition at line 140 of file autoform.hxx.
References aName.
|
private |
Definition at line 115 of file autoform.hxx.
|
private |
Definition at line 121 of file autoform.hxx.
Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 118 of file autoform.hxx.
Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 120 of file autoform.hxx.
Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 119 of file autoform.hxx.
Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 124 of file autoform.hxx.
Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 125 of file autoform.hxx.
Referenced by Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 128 of file autoform.hxx.
|
private |
Definition at line 116 of file autoform.hxx.
Referenced by Load(), Save(), and ScAutoFormatData().
|
private |
Definition at line 130 of file autoform.hxx.
Referenced by GetField(), and ScAutoFormatData().