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 IsEqualData (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::ScAutoFormatData ( )
ScAutoFormatData::ScAutoFormatData ( const ScAutoFormatData rData)

Definition at line 273 of file autoform.cxx.

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

ScAutoFormatData::~ScAutoFormatData ( )

Definition at line 287 of file autoform.cxx.

Member Function Documentation

void ScAutoFormatData::CopyItem ( sal_uInt16  nToIndex,
sal_uInt16  nFromIndex,
sal_uInt16  nWhich 
)

Definition at line 380 of file autoform.cxx.

References GetItem(), and PutItem().

Referenced by ScTable::GetAutoFormatData().

void ScAutoFormatData::FillToItemSet ( sal_uInt16  nIndex,
SfxItemSet rItemSet,
const ScDocument rDoc 
) const
ScAutoFormatDataField & ScAutoFormatData::GetField ( sal_uInt16  nIndex)
private
const ScAutoFormatDataField & ScAutoFormatData::GetField ( sal_uInt16  nIndex) const
private

Definition at line 298 of file autoform.cxx.

References ppDataField.

void ScAutoFormatData::GetFromItemSet ( sal_uInt16  nIndex,
const SfxItemSet rItemSet,
const ScNumFormatAbbrev rNumFormat 
)

Definition at line 538 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(), 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().

bool ScAutoFormatData::GetIncludeBackground ( ) const
inline
bool ScAutoFormatData::GetIncludeFont ( ) const
inline
bool ScAutoFormatData::GetIncludeFrame ( ) const
inline
bool ScAutoFormatData::GetIncludeJustify ( ) const
inline
bool ScAutoFormatData::GetIncludeValueFormat ( ) const
inline
bool ScAutoFormatData::GetIncludeWidthHeight ( ) const
inline
const SfxPoolItem * ScAutoFormatData::GetItem ( sal_uInt16  nIndex,
sal_uInt16  nWhich 
) const

Definition at line 305 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(), and AutoFormatBase::GetWeight().

Referenced by CopyItem(), ScAutoFmtPreview::DrawBackground(), ScAutoFmtPreview::DrawString(), ScAutoFmtPreview::GetBoxItem(), ScAutoFmtPreview::GetDiagItem(), ScAutoFormatFieldObj::getPropertyValue(), ScAutoFmtPreview::MakeFonts(), and ScAutoFormatFieldObj::setPropertyValue().

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

const OUString& ScAutoFormatData::GetName ( ) const
inline
const ScNumFormatAbbrev & ScAutoFormatData::GetNumFormat ( sal_uInt16  nIndex) const

Definition at line 387 of file autoform.cxx.

References GetField(), and ScAutoFormatDataField::GetNumFormat().

Referenced by ScAutoFmtPreview::DrawString().

bool ScAutoFormatData::IsEqualData ( sal_uInt16  nIndex1,
sal_uInt16  nIndex2 
) const
bool ScAutoFormatData::Load ( SvStream rStream,
const ScAfVersions rVersions 
)
void ScAutoFormatData::PutItem ( sal_uInt16  nIndex,
const SfxPoolItem rItem 
)

Definition at line 343 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(), 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(), and SfxPoolItem::Which().

Referenced by CopyItem(), ScTable::GetAutoFormatFrame(), and ScAutoFormatFieldObj::setPropertyValue().

bool ScAutoFormatData::Save ( SvStream rStream,
sal_uInt16  fileVersion 
)
void ScAutoFormatData::SetIncludeBackground ( bool  bBackground)
inline

Definition at line 154 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

void ScAutoFormatData::SetIncludeFont ( bool  bFont)
inline

Definition at line 151 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

void ScAutoFormatData::SetIncludeFrame ( bool  bFrame)
inline

Definition at line 153 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

void ScAutoFormatData::SetIncludeJustify ( bool  bJustify)
inline

Definition at line 152 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

void ScAutoFormatData::SetIncludeValueFormat ( bool  bValueFormat)
inline

Definition at line 150 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

void ScAutoFormatData::SetIncludeWidthHeight ( bool  bWidthHeight)
inline

Definition at line 155 of file autoform.hxx.

Referenced by IMPL_LINK(), and ScAutoFormatObj::setPropertyValue().

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

Definition at line 140 of file autoform.hxx.

References USHRT_MAX.

Member Data Documentation

OUString ScAutoFormatData::aName
private

Definition at line 115 of file autoform.hxx.

Referenced by Load(), and Save().

bool ScAutoFormatData::bIncludeBackground
private

Definition at line 121 of file autoform.hxx.

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

bool ScAutoFormatData::bIncludeFont
private

Definition at line 118 of file autoform.hxx.

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

bool ScAutoFormatData::bIncludeFrame
private

Definition at line 120 of file autoform.hxx.

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

bool ScAutoFormatData::bIncludeJustify
private

Definition at line 119 of file autoform.hxx.

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

bool ScAutoFormatData::bIncludeValueFormat
private

Definition at line 124 of file autoform.hxx.

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

bool ScAutoFormatData::bIncludeWidthHeight
private

Definition at line 125 of file autoform.hxx.

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

AutoFormatSwBlob ScAutoFormatData::m_swFields
private

Definition at line 128 of file autoform.hxx.

Referenced by Load(), and Save().

sal_uInt16 ScAutoFormatData::nStrResId
private

Definition at line 116 of file autoform.hxx.

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

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: