LibreOffice Module lotuswordpro (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
LwpParaBorderOverride Class Referencefinal

#include <lwpparaborderoverride.hxx>

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

Public Types

enum  BorderWidthType {
  PB_NONE = 0 ,
  PB_TEXTWIDTH = 1 ,
  PB_MARGINWIDTH = 2 ,
  PB_CUSTOMWIDTH = 3
}
 

Public Member Functions

 LwpParaBorderOverride ()
 
virtual ~LwpParaBorderOverride () override
 
virtual LwpParaBorderOverrideclone () const override
 
virtual void Read (LwpObjectStream *pStrm) override
 
LwpShadowGetShadow ()
 
LwpBorderStuffGetBorderStuff ()
 
LwpMarginsGetMargins ()
 
void Override (LwpParaBorderOverride *pOther)
 
bool IsBorderStuffOverridden () const
 
bool IsBetweenStuffOverridden () const
 
bool IsShadowOverridden () const
 
bool IsMarginsOverridden () const
 
bool IsAboveTypeOverridden () const
 
bool IsBelowTypeOverridden () const
 
bool IsRightTypeOverridden () const
 
bool IsBetweenTypeOverridden () const
 
bool IsAboveWidthOverridden () const
 
bool IsBelowWidthOverridden () const
 
bool IsBetweenWidthOverridden () const
 
bool IsRightWidthOverridden () const
 
bool IsBetweenMarginOverridden () const
 
void OverrideBorderStuff (LwpBorderStuff const *pBorderStuff)
 
void OverrideBetweenStuff (LwpBorderStuff const *pBorderStuff)
 
void OverrideShadow (LwpShadow const *pShadow)
 
void OverrideMargins (LwpMargins const *pMargins)
 
void OverrideAboveType (BorderWidthType eNewType)
 
void OverrideBelowType (BorderWidthType eNewType)
 
void OverrideRightType (BorderWidthType eNewType)
 
void OverrideBetweenType (BorderWidthType eNewType)
 
void OverrideAboveWidth (sal_uInt32 nNewWidth)
 
void OverrideBelowWidth (sal_uInt32 nNewWidth)
 
void OverrideBetweenWidth (sal_uInt32 nNewWidth)
 
void OverrideRightWidth (sal_uInt32 nNewWidth)
 
void OverrideBetweenMargin (sal_uInt32 nNewMargin)
 
void RevertBorderStuff ()
 
void RevertBetweenStuff ()
 
void RevertShadow ()
 
void RevertMargins ()
 
void RevertAboveType ()
 
void RevertBelowType ()
 
void RevertRightType ()
 
void RevertBetweenType ()
 
void RevertAboveWidth ()
 
void RevertBelowWidth ()
 
void RevertBetweenWidth ()
 
void RevertRightWidth ()
 
void RevertBetweenMargin ()
 
- Public Member Functions inherited from LwpOverride
 LwpOverride ()
 
virtual ~LwpOverride ()
 
virtual LwpOverrideclone () const =0
 
virtual void Read (LwpObjectStream *pStrm)=0
 
void ReadCommon (LwpObjectStream *pStrm)
 
void Clear ()
 
void Override (sal_uInt16 nBits, STATE eState)
 

Private Types

enum  {
  PBO_STUFF = 0x0001 ,
  PBO_SHADOW = 0x0002 ,
  PBO_MARGINS = 0x0004 ,
  PBO_ABOVETYPE = 0x0008 ,
  PBO_BELOWTYPE = 0x0010 ,
  PBO_RIGHTTYPE = 0x0020 ,
  PBO_ABOVE = 0x0040 ,
  PBO_BELOW = 0x0080 ,
  PBO_BETWEENSTUFF = 0x0100 ,
  PBO_BETWEENTYPE = 0x0200 ,
  PBO_BETWEEN = 0x0400 ,
  PBO_BETWEENMARGIN = 0x0800 ,
  PBO_RIGHT = 0x1000
}
 

Private Member Functions

 LwpParaBorderOverride (LwpParaBorderOverride const &rOther)
 
LwpParaBorderOverrideoperator= (LwpParaBorderOverride const &rOther)=delete
 

Private Attributes

std::unique_ptr< LwpBorderStuffm_pBorderStuff
 
std::unique_ptr< LwpBorderStuffm_pBetweenStuff
 
std::unique_ptr< LwpShadowm_pShadow
 
std::unique_ptr< LwpMarginsm_pMargins
 
BorderWidthType m_eAboveType
 
BorderWidthType m_eBelowType
 
BorderWidthType m_eRightType
 
BorderWidthType m_eBetweenType
 
sal_uInt32 m_nAboveWidth
 
sal_uInt32 m_nBelowWidth
 
sal_uInt32 m_nBetweenWidth
 
sal_uInt32 m_nRightWidth
 
sal_uInt32 m_nBetweenMargin
 

Friends

class LwpParaBorderPiece
 

Additional Inherited Members

- Protected Member Functions inherited from LwpOverride
 LwpOverride (LwpOverride const &rOther)
 
- Protected Attributes inherited from LwpOverride
sal_uInt16 m_nValues
 
sal_uInt16 m_nOverride
 
sal_uInt16 m_nApply
 

Detailed Description

Definition at line 69 of file lwpparaborderoverride.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
PBO_STUFF 
PBO_SHADOW 
PBO_MARGINS 
PBO_ABOVETYPE 
PBO_BELOWTYPE 
PBO_RIGHTTYPE 
PBO_ABOVE 
PBO_BELOW 
PBO_BETWEENSTUFF 
PBO_BETWEENTYPE 
PBO_BETWEEN 
PBO_BETWEENMARGIN 
PBO_RIGHT 

Definition at line 140 of file lwpparaborderoverride.hxx.

◆ BorderWidthType

Enumerator
PB_NONE 
PB_TEXTWIDTH 
PB_MARGINWIDTH 
PB_CUSTOMWIDTH 

Definition at line 77 of file lwpparaborderoverride.hxx.

Constructor & Destructor Documentation

◆ LwpParaBorderOverride() [1/2]

LwpParaBorderOverride::LwpParaBorderOverride ( )

◆ ~LwpParaBorderOverride()

LwpParaBorderOverride::~LwpParaBorderOverride ( )
overridevirtual

Definition at line 107 of file lwpparaborderoverride.cxx.

◆ LwpParaBorderOverride() [2/2]

LwpParaBorderOverride::LwpParaBorderOverride ( LwpParaBorderOverride const &  rOther)
private

Definition at line 89 of file lwpparaborderoverride.cxx.

References clone(), m_pBetweenStuff, m_pBorderStuff, m_pMargins, and m_pShadow.

Member Function Documentation

◆ clone()

LwpParaBorderOverride * LwpParaBorderOverride::clone ( ) const
overridevirtual

Implements LwpOverride.

Definition at line 109 of file lwpparaborderoverride.cxx.

References LwpParaBorderOverride().

Referenced by LwpParaBorderOverride().

◆ GetBorderStuff()

LwpBorderStuff * LwpParaBorderOverride::GetBorderStuff ( )
inline

Definition at line 87 of file lwpparaborderoverride.hxx.

References m_pBorderStuff.

Referenced by LwpParaStyle::ApplyParaBorder().

◆ GetMargins()

LwpMargins * LwpParaBorderOverride::GetMargins ( )
inline

Definition at line 88 of file lwpparaborderoverride.hxx.

References m_pMargins.

Referenced by LwpParaStyle::ApplyParaBorder().

◆ GetShadow()

LwpShadow * LwpParaBorderOverride::GetShadow ( )
inline

Definition at line 86 of file lwpparaborderoverride.hxx.

References m_pShadow.

Referenced by LwpParaStyle::ApplyParaBorder().

◆ IsAboveTypeOverridden()

bool LwpParaBorderOverride::IsAboveTypeOverridden ( ) const
inline

Definition at line 191 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_ABOVETYPE.

Referenced by Override().

◆ IsAboveWidthOverridden()

bool LwpParaBorderOverride::IsAboveWidthOverridden ( ) const
inline

Definition at line 207 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_ABOVE.

Referenced by Override().

◆ IsBelowTypeOverridden()

bool LwpParaBorderOverride::IsBelowTypeOverridden ( ) const
inline

Definition at line 195 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BELOWTYPE.

Referenced by Override().

◆ IsBelowWidthOverridden()

bool LwpParaBorderOverride::IsBelowWidthOverridden ( ) const
inline

Definition at line 211 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BELOW.

Referenced by Override().

◆ IsBetweenMarginOverridden()

bool LwpParaBorderOverride::IsBetweenMarginOverridden ( ) const
inline

Definition at line 223 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BETWEENMARGIN.

Referenced by Override().

◆ IsBetweenStuffOverridden()

bool LwpParaBorderOverride::IsBetweenStuffOverridden ( ) const
inline

Definition at line 179 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BETWEENSTUFF.

Referenced by Override().

◆ IsBetweenTypeOverridden()

bool LwpParaBorderOverride::IsBetweenTypeOverridden ( ) const
inline

Definition at line 203 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BETWEENTYPE.

Referenced by Override().

◆ IsBetweenWidthOverridden()

bool LwpParaBorderOverride::IsBetweenWidthOverridden ( ) const
inline

Definition at line 215 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_BETWEEN.

Referenced by Override().

◆ IsBorderStuffOverridden()

bool LwpParaBorderOverride::IsBorderStuffOverridden ( ) const
inline

Definition at line 175 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_STUFF.

Referenced by Override().

◆ IsMarginsOverridden()

bool LwpParaBorderOverride::IsMarginsOverridden ( ) const
inline

Definition at line 187 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_MARGINS.

Referenced by Override().

◆ IsRightTypeOverridden()

bool LwpParaBorderOverride::IsRightTypeOverridden ( ) const
inline

Definition at line 199 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_RIGHTTYPE.

Referenced by Override().

◆ IsRightWidthOverridden()

bool LwpParaBorderOverride::IsRightWidthOverridden ( ) const
inline

Definition at line 219 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_RIGHT.

Referenced by Override().

◆ IsShadowOverridden()

bool LwpParaBorderOverride::IsShadowOverridden ( ) const
inline

Definition at line 183 of file lwpparaborderoverride.hxx.

References LwpOverride::m_nOverride, and PBO_SHADOW.

Referenced by Override().

◆ operator=()

LwpParaBorderOverride & LwpParaBorderOverride::operator= ( LwpParaBorderOverride const &  rOther)
privatedelete

◆ Override()

void LwpParaBorderOverride::Override ( LwpParaBorderOverride pOther)

◆ OverrideAboveType()

void LwpParaBorderOverride::OverrideAboveType ( BorderWidthType  eNewType)

Definition at line 340 of file lwpparaborderoverride.cxx.

References m_eAboveType, LwpOverride::Override(), PBO_ABOVETYPE, and STATE_ON.

Referenced by Override().

◆ OverrideAboveWidth()

void LwpParaBorderOverride::OverrideAboveWidth ( sal_uInt32  nNewWidth)

Definition at line 360 of file lwpparaborderoverride.cxx.

References m_nAboveWidth, LwpOverride::Override(), PBO_ABOVE, and STATE_ON.

Referenced by Override().

◆ OverrideBelowType()

void LwpParaBorderOverride::OverrideBelowType ( BorderWidthType  eNewType)

Definition at line 345 of file lwpparaborderoverride.cxx.

References m_eBelowType, LwpOverride::Override(), PBO_BELOWTYPE, and STATE_ON.

Referenced by Override().

◆ OverrideBelowWidth()

void LwpParaBorderOverride::OverrideBelowWidth ( sal_uInt32  nNewWidth)

Definition at line 365 of file lwpparaborderoverride.cxx.

References m_nBelowWidth, LwpOverride::Override(), PBO_BELOW, and STATE_ON.

Referenced by Override().

◆ OverrideBetweenMargin()

void LwpParaBorderOverride::OverrideBetweenMargin ( sal_uInt32  nNewMargin)

Definition at line 380 of file lwpparaborderoverride.cxx.

References m_nBetweenMargin, LwpOverride::Override(), PBO_BETWEENMARGIN, and STATE_ON.

Referenced by Override().

◆ OverrideBetweenStuff()

void LwpParaBorderOverride::OverrideBetweenStuff ( LwpBorderStuff const *  pBorderStuff)

Definition at line 325 of file lwpparaborderoverride.cxx.

References m_pBetweenStuff, LwpOverride::Override(), PBO_BETWEENSTUFF, and STATE_ON.

Referenced by Override().

◆ OverrideBetweenType()

void LwpParaBorderOverride::OverrideBetweenType ( BorderWidthType  eNewType)

Definition at line 355 of file lwpparaborderoverride.cxx.

References m_eBetweenType, LwpOverride::Override(), PBO_BETWEENTYPE, and STATE_ON.

Referenced by Override().

◆ OverrideBetweenWidth()

void LwpParaBorderOverride::OverrideBetweenWidth ( sal_uInt32  nNewWidth)

Definition at line 370 of file lwpparaborderoverride.cxx.

References m_nBetweenWidth, LwpOverride::Override(), PBO_BETWEEN, and STATE_ON.

Referenced by Override().

◆ OverrideBorderStuff()

void LwpParaBorderOverride::OverrideBorderStuff ( LwpBorderStuff const *  pBorderStuff)

Definition at line 320 of file lwpparaborderoverride.cxx.

References m_pBorderStuff, LwpOverride::Override(), PBO_STUFF, and STATE_ON.

Referenced by Override().

◆ OverrideMargins()

void LwpParaBorderOverride::OverrideMargins ( LwpMargins const *  pMargins)

Definition at line 335 of file lwpparaborderoverride.cxx.

References m_pMargins, LwpOverride::Override(), PBO_MARGINS, and STATE_ON.

Referenced by Override().

◆ OverrideRightType()

void LwpParaBorderOverride::OverrideRightType ( BorderWidthType  eNewType)

Definition at line 350 of file lwpparaborderoverride.cxx.

References m_eRightType, LwpOverride::Override(), PBO_RIGHTTYPE, and STATE_ON.

Referenced by Override().

◆ OverrideRightWidth()

void LwpParaBorderOverride::OverrideRightWidth ( sal_uInt32  nNewWidth)

Definition at line 375 of file lwpparaborderoverride.cxx.

References m_nRightWidth, LwpOverride::Override(), PBO_RIGHT, and STATE_ON.

Referenced by Override().

◆ OverrideShadow()

void LwpParaBorderOverride::OverrideShadow ( LwpShadow const *  pShadow)

Definition at line 330 of file lwpparaborderoverride.cxx.

References m_pShadow, LwpOverride::Override(), PBO_SHADOW, and STATE_ON.

Referenced by Override().

◆ Read()

void LwpParaBorderOverride::Read ( LwpObjectStream pStrm)
overridevirtual

◆ RevertAboveType()

void LwpParaBorderOverride::RevertAboveType ( )
inline

Definition at line 244 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_ABOVETYPE, and STATE_STYLE.

Referenced by Override().

◆ RevertAboveWidth()

void LwpParaBorderOverride::RevertAboveWidth ( )
inline

Definition at line 260 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_ABOVE, and STATE_STYLE.

Referenced by Override().

◆ RevertBelowType()

void LwpParaBorderOverride::RevertBelowType ( )
inline

Definition at line 248 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BELOWTYPE, and STATE_STYLE.

Referenced by Override().

◆ RevertBelowWidth()

void LwpParaBorderOverride::RevertBelowWidth ( )
inline

Definition at line 264 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BELOW, and STATE_STYLE.

Referenced by Override().

◆ RevertBetweenMargin()

void LwpParaBorderOverride::RevertBetweenMargin ( )
inline

Definition at line 276 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BETWEENMARGIN, and STATE_STYLE.

Referenced by Override().

◆ RevertBetweenStuff()

void LwpParaBorderOverride::RevertBetweenStuff ( )
inline

Definition at line 232 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BETWEENSTUFF, and STATE_STYLE.

Referenced by Override().

◆ RevertBetweenType()

void LwpParaBorderOverride::RevertBetweenType ( )
inline

Definition at line 256 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BETWEENTYPE, and STATE_STYLE.

Referenced by Override().

◆ RevertBetweenWidth()

void LwpParaBorderOverride::RevertBetweenWidth ( )
inline

Definition at line 268 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_BETWEEN, and STATE_STYLE.

Referenced by Override().

◆ RevertBorderStuff()

void LwpParaBorderOverride::RevertBorderStuff ( )
inline

Definition at line 228 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_STUFF, and STATE_STYLE.

Referenced by Override().

◆ RevertMargins()

void LwpParaBorderOverride::RevertMargins ( )
inline

Definition at line 240 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_MARGINS, and STATE_STYLE.

Referenced by Override().

◆ RevertRightType()

void LwpParaBorderOverride::RevertRightType ( )
inline

Definition at line 252 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_RIGHTTYPE, and STATE_STYLE.

Referenced by Override().

◆ RevertRightWidth()

void LwpParaBorderOverride::RevertRightWidth ( )
inline

Definition at line 272 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_RIGHT, and STATE_STYLE.

Referenced by Override().

◆ RevertShadow()

void LwpParaBorderOverride::RevertShadow ( )
inline

Definition at line 236 of file lwpparaborderoverride.hxx.

References LwpOverride::Override(), PBO_SHADOW, and STATE_STYLE.

Referenced by Override().

Friends And Related Function Documentation

◆ LwpParaBorderPiece

friend class LwpParaBorderPiece
friend

Definition at line 134 of file lwpparaborderoverride.hxx.

Member Data Documentation

◆ m_eAboveType

BorderWidthType LwpParaBorderOverride::m_eAboveType
private

◆ m_eBelowType

BorderWidthType LwpParaBorderOverride::m_eBelowType
private

◆ m_eBetweenType

BorderWidthType LwpParaBorderOverride::m_eBetweenType
private

◆ m_eRightType

BorderWidthType LwpParaBorderOverride::m_eRightType
private

◆ m_nAboveWidth

sal_uInt32 LwpParaBorderOverride::m_nAboveWidth
private

Definition at line 167 of file lwpparaborderoverride.hxx.

Referenced by LwpParaBorderOverride(), Override(), and OverrideAboveWidth().

◆ m_nBelowWidth

sal_uInt32 LwpParaBorderOverride::m_nBelowWidth
private

Definition at line 168 of file lwpparaborderoverride.hxx.

Referenced by LwpParaBorderOverride(), Override(), and OverrideBelowWidth().

◆ m_nBetweenMargin

sal_uInt32 LwpParaBorderOverride::m_nBetweenMargin
private

◆ m_nBetweenWidth

sal_uInt32 LwpParaBorderOverride::m_nBetweenWidth
private

◆ m_nRightWidth

sal_uInt32 LwpParaBorderOverride::m_nRightWidth
private

◆ m_pBetweenStuff

std::unique_ptr<LwpBorderStuff> LwpParaBorderOverride::m_pBetweenStuff
private

◆ m_pBorderStuff

std::unique_ptr<LwpBorderStuff> LwpParaBorderOverride::m_pBorderStuff
private

◆ m_pMargins

std::unique_ptr<LwpMargins> LwpParaBorderOverride::m_pMargins
private

◆ m_pShadow

std::unique_ptr<LwpShadow> LwpParaBorderOverride::m_pShadow
private

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