LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScAutoFormatData Class Reference

#include <autoform.hxx>

Collaboration diagram for ScAutoFormatData:
[legend]

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 SfxPoolItemGetItem (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 ScNumFormatAbbrevGetNumFormat (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 ScAutoFormatDataFieldGetField (sal_uInt16 nIndex)
 
SAL_DLLPRIVATE const ScAutoFormatDataFieldGetField (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
 

Detailed Description

Definition at line 112 of file autoform.hxx.

Constructor & Destructor Documentation

◆ ScAutoFormatData() [1/2]

ScAutoFormatData::ScAutoFormatData ( )

◆ ScAutoFormatData() [2/2]

ScAutoFormatData::ScAutoFormatData ( const ScAutoFormatData rData)

Definition at line 262 of file autoform.cxx.

References aName, GetField(), nIndex, and ppDataField.

◆ ~ScAutoFormatData()

ScAutoFormatData::~ScAutoFormatData ( )

Definition at line 276 of file autoform.cxx.

Member Function Documentation

◆ CopyItem()

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().

◆ FillToItemSet()

void ScAutoFormatData::FillToItemSet ( sal_uInt16  nIndex,
SfxItemSet rItemSet,
const ScDocument rDoc 
) const

◆ GetField() [1/2]

ScAutoFormatDataField & ScAutoFormatData::GetField ( sal_uInt16  nIndex)
private

◆ GetField() [2/2]

const ScAutoFormatDataField & ScAutoFormatData::GetField ( sal_uInt16  nIndex) const
private

Definition at line 287 of file autoform.cxx.

References nIndex, and ppDataField.

◆ GetFromItemSet()

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().

◆ GetIncludeBackground()

bool ScAutoFormatData::GetIncludeBackground ( ) const
inline

Definition at line 147 of file autoform.hxx.

Referenced by ScAutoFmtPreview::PaintCells().

◆ GetIncludeFont()

bool ScAutoFormatData::GetIncludeFont ( ) const
inline

Definition at line 144 of file autoform.hxx.

Referenced by ScAutoFmtPreview::DrawString().

◆ GetIncludeFrame()

bool ScAutoFormatData::GetIncludeFrame ( ) const
inline

Definition at line 146 of file autoform.hxx.

Referenced by ScAutoFmtPreview::PaintCells().

◆ GetIncludeJustify()

bool ScAutoFormatData::GetIncludeJustify ( ) const
inline

Definition at line 145 of file autoform.hxx.

Referenced by ScAutoFmtPreview::DrawString().

◆ GetIncludeValueFormat()

bool ScAutoFormatData::GetIncludeValueFormat ( ) const
inline

Definition at line 143 of file autoform.hxx.

Referenced by ScAutoFmtPreview::DrawString().

◆ GetIncludeWidthHeight()

bool ScAutoFormatData::GetIncludeWidthHeight ( ) const
inline

Definition at line 148 of file autoform.hxx.

Referenced by ScDocFunc::AutoFormat(), and ScAutoFmtPreview::NotifyChange().

◆ GetItem() [1/2]

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().

◆ GetItem() [2/2]

template<class T >
const T * ScAutoFormatData::GetItem ( sal_uInt16  nIndex,
TypedWhichId< T >  nWhich 
) const
inline

Definition at line 158 of file autoform.hxx.

References GetItem(), and nIndex.

◆ GetName()

const OUString & ScAutoFormatData::GetName ( ) const
inline

Definition at line 141 of file autoform.hxx.

References aName.

Referenced by ScAutoFormatObj::getName(), and lcl_FindAutoFormatIndex().

◆ GetNumFormat()

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().

◆ HasSameData()

bool ScAutoFormatData::HasSameData ( sal_uInt16  nIndex1,
sal_uInt16  nIndex2 
) const

◆ Load()

bool ScAutoFormatData::Load ( SvStream rStream,
const ScAfVersions rVersions 
)

◆ PutItem()

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().

◆ Save()

bool ScAutoFormatData::Save ( SvStream rStream,
sal_uInt16  fileVersion 
)

◆ SetIncludeBackground()

void ScAutoFormatData::SetIncludeBackground ( bool  bBackground)
inline

Definition at line 154 of file autoform.hxx.

◆ SetIncludeFont()

void ScAutoFormatData::SetIncludeFont ( bool  bFont)
inline

Definition at line 151 of file autoform.hxx.

◆ SetIncludeFrame()

void ScAutoFormatData::SetIncludeFrame ( bool  bFrame)
inline

Definition at line 153 of file autoform.hxx.

◆ SetIncludeJustify()

void ScAutoFormatData::SetIncludeJustify ( bool  bJustify)
inline

Definition at line 152 of file autoform.hxx.

◆ SetIncludeValueFormat()

void ScAutoFormatData::SetIncludeValueFormat ( bool  bValueFormat)
inline

Definition at line 150 of file autoform.hxx.

◆ SetIncludeWidthHeight()

void ScAutoFormatData::SetIncludeWidthHeight ( bool  bWidthHeight)
inline

Definition at line 155 of file autoform.hxx.

◆ SetName()

void ScAutoFormatData::SetName ( const OUString &  rName)
inline

Definition at line 140 of file autoform.hxx.

References aName.

Member Data Documentation

◆ aName

OUString ScAutoFormatData::aName
private

Definition at line 115 of file autoform.hxx.

Referenced by Load(), and Save().

◆ bIncludeBackground

bool ScAutoFormatData::bIncludeBackground
private

Definition at line 121 of file autoform.hxx.

Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().

◆ bIncludeFont

bool ScAutoFormatData::bIncludeFont
private

Definition at line 118 of file autoform.hxx.

Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().

◆ bIncludeFrame

bool ScAutoFormatData::bIncludeFrame
private

Definition at line 120 of file autoform.hxx.

Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().

◆ bIncludeJustify

bool ScAutoFormatData::bIncludeJustify
private

Definition at line 119 of file autoform.hxx.

Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().

◆ bIncludeValueFormat

bool ScAutoFormatData::bIncludeValueFormat
private

Definition at line 124 of file autoform.hxx.

Referenced by FillToItemSet(), HasSameData(), Load(), Save(), and ScAutoFormatData().

◆ bIncludeWidthHeight

bool ScAutoFormatData::bIncludeWidthHeight
private

Definition at line 125 of file autoform.hxx.

Referenced by Load(), Save(), and ScAutoFormatData().

◆ m_swFields

AutoFormatSwBlob ScAutoFormatData::m_swFields
private

Definition at line 128 of file autoform.hxx.

Referenced by Load(), and Save().

◆ nStrResId

sal_uInt16 ScAutoFormatData::nStrResId
private

Definition at line 116 of file autoform.hxx.

Referenced by Load(), Save(), and ScAutoFormatData().

◆ ppDataField

std::array<std::unique_ptr<ScAutoFormatDataField>,16> ScAutoFormatData::ppDataField
private

Definition at line 130 of file autoform.hxx.

Referenced by GetField(), and ScAutoFormatData().


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