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

#include <tblafmt.hxx>

Inheritance diagram for SwBoxAutoFormat:
[legend]
Collaboration diagram for SwBoxAutoFormat:
[legend]

Public Member Functions

 SwBoxAutoFormat ()
 
 SwBoxAutoFormat (const SwBoxAutoFormat &rNew)
 
 ~SwBoxAutoFormat ()
 
SwBoxAutoFormat & operator= (const SwBoxAutoFormat &rRef)
 assignment-op (still used) More...
 
bool operator== (const SwBoxAutoFormat &rRight) const
 Comparing based of boxes backgrounds. More...
 
const SvxFrameDirectionItem & GetTextOrientation () const
 
const SwFormatVertOrient & GetVerticalAlignment () const
 
void GetValueFormat (OUString &rFormat, LanguageType &rLng, LanguageType &rSys) const
 
const OUString & GetNumFormatString () const
 
const LanguageType & GetSysLanguage () const
 
const LanguageType & GetNumFormatLanguage () const
 
void SetTextOrientation (const SvxFrameDirectionItem &rNew)
 
void SetVerticalAlignment (const SwFormatVertOrient &rNew)
 
void SetValueFormat (const OUString &rFormat, LanguageType eLng, LanguageType eSys)
 
void SetNumFormatString (const OUString &rNew)
 
void SetSysLanguage (const LanguageType &rNew)
 
void SetNumFormatLanguage (const LanguageType &rNew)
 
unotools::WeakReference< SwXTextCellStyle > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXTextCellStyle > const &xObject)
 
bool Load (SvStream &rStream, const SwAfVersions &rVersions, sal_uInt16 nVer)
 
bool Save (SvStream &rStream, sal_uInt16 fileVersion) const
 
- Public Member Functions inherited from AutoFormatBase
const SvxFontItem & GetFont () const
 
const SvxFontHeightItem & GetHeight () const
 
const SvxWeightItem & GetWeight () const
 
const SvxPostureItem & GetPosture () const
 
const SvxFontItem & GetCJKFont () const
 
const SvxFontHeightItem & GetCJKHeight () const
 
const SvxWeightItem & GetCJKWeight () const
 
const SvxPostureItem & GetCJKPosture () const
 
const SvxFontItem & GetCTLFont () const
 
const SvxFontHeightItem & GetCTLHeight () const
 
const SvxWeightItem & GetCTLWeight () const
 
const SvxPostureItem & GetCTLPosture () const
 
const SvxUnderlineItem & GetUnderline () const
 
const SvxOverlineItem & GetOverline () const
 
const SvxCrossedOutItem & GetCrossedOut () const
 
const SvxContourItem & GetContour () const
 
const SvxShadowedItem & GetShadowed () const
 
const SvxColorItem & GetColor () const
 
const SvxBoxItem & GetBox () const
 
const SvxLineItem & GetTLBR () const
 
const SvxLineItem & GetBLTR () const
 
const SvxBrushItem & GetBackground () const
 
const SvxAdjustItem & GetAdjust () const
 
const SvxHorJustifyItem & GetHorJustify () const
 
const SvxVerJustifyItem & GetVerJustify () const
 
const SfxBoolItem & GetStacked () const
 
const SvxMarginItem & GetMargin () const
 
const SfxBoolItem & GetLinebreak () const
 
const SfxInt32Item & GetRotateAngle () const
 
const SvxRotateModeItem & GetRotateMode () const
 
void SetFont (const SvxFontItem &rNew)
 
void SetHeight (const SvxFontHeightItem &rNew)
 
void SetWeight (const SvxWeightItem &rNew)
 
void SetPosture (const SvxPostureItem &rNew)
 
void SetCJKFont (const SvxFontItem &rNew)
 
void SetCJKHeight (const SvxFontHeightItem &rNew)
 
void SetCJKWeight (const SvxWeightItem &rNew)
 
void SetCJKPosture (const SvxPostureItem &rNew)
 
void SetCTLFont (const SvxFontItem &rNew)
 
void SetCTLHeight (const SvxFontHeightItem &rNew)
 
void SetCTLWeight (const SvxWeightItem &rNew)
 
void SetCTLPosture (const SvxPostureItem &rNew)
 
void SetUnderline (const SvxUnderlineItem &rNew)
 
void SetOverline (const SvxOverlineItem &rNew)
 
void SetCrossedOut (const SvxCrossedOutItem &rNew)
 
void SetContour (const SvxContourItem &rNew)
 
void SetShadowed (const SvxShadowedItem &rNew)
 
void SetColor (const SvxColorItem &rNew)
 
void SetBox (const SvxBoxItem &rNew)
 
void SetTLBR (const SvxLineItem &rNew)
 
void SetBLTR (const SvxLineItem &rNew)
 
void SetBackground (const SvxBrushItem &rNew)
 
void SetAdjust (const SvxAdjustItem &rNew)
 
void SetHorJustify (const SvxHorJustifyItem &rNew)
 
void SetVerJustify (const SvxVerJustifyItem &rNew)
 
void SetStacked (const SfxBoolItem &rNew)
 
void SetMargin (const SvxMarginItem &rNew)
 
void SetLinebreak (const SfxBoolItem &rNew)
 
void SetRotateAngle (const SfxInt32Item &rNew)
 
void SetRotateMode (const SvxRotateModeItem &rNew)
 
bool LoadBlockA (SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
 
bool LoadBlockB (SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
 
bool SaveBlockA (SvStream &rStream, sal_uInt16 fileVersion) const
 
bool SaveBlockB (SvStream &rStream, sal_uInt16 fileVersion) const
 

Private Attributes

std::unique_ptr< SvxFrameDirectionItem > m_aTextOrientation
 
std::unique_ptr< SwFormatVertOrient > m_aVerticalAlignment
 
OUString m_sNumFormatString
 
LanguageType m_eSysLanguage
 
LanguageType m_eNumFormatLanguage
 
unotools::WeakReference< SwXTextCellStyle > m_xAutoFormatUnoObject
 

Additional Inherited Members

- Protected Member Functions inherited from AutoFormatBase
AutoFormatBase & operator= (const AutoFormatBase &)
 
 AutoFormatBase ()
 
 AutoFormatBase (const AutoFormatBase &rNew)
 
 ~AutoFormatBase ()
 
bool operator== (const AutoFormatBase &rRight) const
 
- Protected Attributes inherited from AutoFormatBase
std::unique_ptr< SvxFontItem > m_aFont
 
std::unique_ptr< SvxFontHeightItem > m_aHeight
 
std::unique_ptr< SvxWeightItem > m_aWeight
 
std::unique_ptr< SvxPostureItem > m_aPosture
 
std::unique_ptr< SvxFontItem > m_aCJKFont
 
std::unique_ptr< SvxFontHeightItem > m_aCJKHeight
 
std::unique_ptr< SvxWeightItem > m_aCJKWeight
 
std::unique_ptr< SvxPostureItem > m_aCJKPosture
 
std::unique_ptr< SvxFontItem > m_aCTLFont
 
std::unique_ptr< SvxFontHeightItem > m_aCTLHeight
 
std::unique_ptr< SvxWeightItem > m_aCTLWeight
 
std::unique_ptr< SvxPostureItem > m_aCTLPosture
 
std::unique_ptr< SvxUnderlineItem > m_aUnderline
 
std::unique_ptr< SvxOverlineItem > m_aOverline
 
std::unique_ptr< SvxCrossedOutItem > m_aCrossedOut
 
std::unique_ptr< SvxContourItem > m_aContour
 
std::unique_ptr< SvxShadowedItem > m_aShadowed
 
std::unique_ptr< SvxColorItem > m_aColor
 
std::unique_ptr< SvxBoxItem > m_aBox
 
std::unique_ptr< SvxLineItem > m_aTLBR
 
std::unique_ptr< SvxLineItem > m_aBLTR
 
std::unique_ptr< SvxBrushItem > m_aBackground
 
std::unique_ptr< SvxAdjustItem > m_aAdjust
 
std::unique_ptr< SvxHorJustifyItem > m_aHorJustify
 
std::unique_ptr< SvxVerJustifyItem > m_aVerJustify
 
std::unique_ptr< SfxBoolItem > m_aStacked
 
std::unique_ptr< SvxMarginItem > m_aMargin
 
std::unique_ptr< SfxBoolItem > m_aLinebreak
 
std::unique_ptr< SfxInt32Item > m_aRotateAngle
 
std::unique_ptr< SvxRotateModeItem > m_aRotateMode
 

Detailed Description

Definition at line 49 of file tblafmt.hxx.

Constructor & Destructor Documentation

◆ SwBoxAutoFormat() [1/2]

SwBoxAutoFormat::SwBoxAutoFormat ( )

Definition at line 220 of file tblafmt.cxx.

References Environment, FRAME, GetDfltAttr(), ITALIC_NONE, LINESTYLE_NONE, AutoFormatBase::m_aAdjust, AutoFormatBase::m_aBackground, AutoFormatBase::m_aBLTR, AutoFormatBase::m_aBox, AutoFormatBase::m_aCJKFont, AutoFormatBase::m_aCJKHeight, AutoFormatBase::m_aCJKPosture, AutoFormatBase::m_aCJKWeight, AutoFormatBase::m_aColor, AutoFormatBase::m_aContour, AutoFormatBase::m_aCrossedOut, AutoFormatBase::m_aCTLFont, AutoFormatBase::m_aCTLHeight, AutoFormatBase::m_aCTLPosture, AutoFormatBase::m_aCTLWeight, AutoFormatBase::m_aFont, AutoFormatBase::m_aHeight, AutoFormatBase::m_aHorJustify, AutoFormatBase::m_aLinebreak, AutoFormatBase::m_aMargin, AutoFormatBase::m_aOverline, AutoFormatBase::m_aPosture, AutoFormatBase::m_aRotateAngle, AutoFormatBase::m_aRotateMode, AutoFormatBase::m_aShadowed, AutoFormatBase::m_aStacked, AutoFormatBase::m_aTLBR, AutoFormatBase::m_aUnderline, AutoFormatBase::m_aVerJustify, AutoFormatBase::m_aWeight, RES_BACKGROUND(), RES_BOX(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CONTOUR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_OVERLINE(), RES_CHRATR_POSTURE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), RES_PARATR_ADJUST(), STRIKEOUT_NONE, SVX_ROTATE_MODE_STANDARD, text(), and WEIGHT_NORMAL.

◆ SwBoxAutoFormat() [2/2]

SwBoxAutoFormat::SwBoxAutoFormat ( const SwBoxAutoFormat &  rNew)

Definition at line 266 of file tblafmt.cxx.

References Clone().

◆ ~SwBoxAutoFormat()

SwBoxAutoFormat::~SwBoxAutoFormat ( )

Definition at line 276 of file tblafmt.cxx.

Member Function Documentation

◆ GetNumFormatLanguage()

const LanguageType & SwBoxAutoFormat::GetNumFormatLanguage ( ) const
inline

Definition at line 84 of file tblafmt.hxx.

Referenced by operator=().

◆ GetNumFormatString()

const OUString & SwBoxAutoFormat::GetNumFormatString ( ) const
inline

Definition at line 82 of file tblafmt.hxx.

Referenced by operator=().

◆ GetSysLanguage()

const LanguageType & SwBoxAutoFormat::GetSysLanguage ( ) const
inline

Definition at line 83 of file tblafmt.hxx.

Referenced by operator=().

◆ GetTextOrientation()

const SvxFrameDirectionItem & SwBoxAutoFormat::GetTextOrientation ( ) const
inline

◆ GetValueFormat()

void SwBoxAutoFormat::GetValueFormat ( OUString &  rFormat,
LanguageType &  rLng,
LanguageType &  rSys 
) const
inline

◆ GetVerticalAlignment()

const SwFormatVertOrient & SwBoxAutoFormat::GetVerticalAlignment ( ) const
inline

◆ GetXObject()

unotools::WeakReference< SwXTextCellStyle > const & SwBoxAutoFormat::GetXObject ( ) const
inline

◆ Load()

bool SwBoxAutoFormat::Load ( SvStream &  rStream,
const SwAfVersions &  rVersions,
sal_uInt16  nVer 
)

◆ operator=()

SwBoxAutoFormat & SwBoxAutoFormat::operator= ( const SwBoxAutoFormat &  rRef)

◆ operator==()

bool SwBoxAutoFormat::operator== ( const SwBoxAutoFormat &  rRight) const

Comparing based of boxes backgrounds.

Definition at line 305 of file tblafmt.cxx.

References AutoFormatBase::GetBackground(), and SvxBrushItem::GetColor().

◆ Save()

bool SwBoxAutoFormat::Save ( SvStream &  rStream,
sal_uInt16  fileVersion 
) const

◆ SetNumFormatLanguage()

void SwBoxAutoFormat::SetNumFormatLanguage ( const LanguageType &  rNew)
inline

Definition at line 95 of file tblafmt.hxx.

Referenced by operator=().

◆ SetNumFormatString()

void SwBoxAutoFormat::SetNumFormatString ( const OUString &  rNew)
inline

Definition at line 93 of file tblafmt.hxx.

Referenced by operator=().

◆ SetSysLanguage()

void SwBoxAutoFormat::SetSysLanguage ( const LanguageType &  rNew)
inline

Definition at line 94 of file tblafmt.hxx.

Referenced by operator=().

◆ SetTextOrientation()

void SwBoxAutoFormat::SetTextOrientation ( const SvxFrameDirectionItem &  rNew)
inline

◆ SetValueFormat()

void SwBoxAutoFormat::SetValueFormat ( const OUString &  rFormat,
LanguageType  eLng,
LanguageType  eSys 
)
inline

◆ SetVerticalAlignment()

void SwBoxAutoFormat::SetVerticalAlignment ( const SwFormatVertOrient &  rNew)
inline

◆ SetXObject()

void SwBoxAutoFormat::SetXObject ( rtl::Reference< SwXTextCellStyle > const &  xObject)

Member Data Documentation

◆ m_aTextOrientation

std::unique_ptr<SvxFrameDirectionItem> SwBoxAutoFormat::m_aTextOrientation
private

Definition at line 53 of file tblafmt.hxx.

Referenced by Load(), and Save().

◆ m_aVerticalAlignment

std::unique_ptr<SwFormatVertOrient> SwBoxAutoFormat::m_aVerticalAlignment
private

Definition at line 54 of file tblafmt.hxx.

Referenced by Load(), and Save().

◆ m_eNumFormatLanguage

LanguageType SwBoxAutoFormat::m_eNumFormatLanguage
private

Definition at line 59 of file tblafmt.hxx.

Referenced by Load(), and Save().

◆ m_eSysLanguage

LanguageType SwBoxAutoFormat::m_eSysLanguage
private

Definition at line 58 of file tblafmt.hxx.

Referenced by Load(), and Save().

◆ m_sNumFormatString

OUString SwBoxAutoFormat::m_sNumFormatString
private

Definition at line 57 of file tblafmt.hxx.

Referenced by Load(), and Save().

◆ m_xAutoFormatUnoObject

unotools::WeakReference<SwXTextCellStyle> SwBoxAutoFormat::m_xAutoFormatUnoObject
private

Definition at line 62 of file tblafmt.hxx.

Referenced by SetXObject().


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