LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvxBrushItem Class Referencefinal

#include <brushitem.hxx>

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

Public Member Functions

 SvxBrushItem (sal_uInt16 nWhich)
 
 SvxBrushItem (Color const &rColor, sal_uInt16 nWhich)
 
 SvxBrushItem (Color const &rColor, model::ComplexColor const &rComplexColor, sal_uInt16 nWhich)
 
 SvxBrushItem (const Graphic &rGraphic, SvxGraphicPosition ePos, sal_uInt16 nWhich)
 
 SvxBrushItem (const GraphicObject &rGraphicObj, SvxGraphicPosition ePos, sal_uInt16 nWhich)
 
 SvxBrushItem (OUString rLink, OUString aFilter, SvxGraphicPosition ePos, sal_uInt16 nWhich)
 
 SvxBrushItem (const SvxBrushItem &)
 
 SvxBrushItem (SvxBrushItem &&)
 
virtual ~SvxBrushItem () override
 
bool isUsed () const
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
virtual SvxBrushItemClone (SfxItemPool *pPool=nullptr) const override
 
const ColorGetColor () const
 
ColorGetColor ()
 
void SetColor (const Color &rCol)
 
const model::ComplexColorgetComplexColor () const
 
void setComplexColor (model::ComplexColor const &rComplexColor)
 
const ColorGetFiltColor () const
 
void SetFiltColor (const Color &rCol)
 
SvxGraphicPosition GetGraphicPos () const
 
sal_Int32 GetShadingValue () const
 
const GraphicGetGraphic (OUString const &referer=OUString()) const
 
const GraphicObjectGetGraphicObject (OUString const &referer=OUString()) const
 
const OUString & GetGraphicLink () const
 
const OUString & GetGraphicFilter () const
 
sal_Int8 getGraphicTransparency () const
 
void setGraphicTransparency (sal_Int8 nNew)
 
void SetGraphicPos (SvxGraphicPosition eNew)
 
void SetGraphic (const Graphic &rNew)
 
void SetGraphicObject (const GraphicObject &rNewObj)
 
void SetGraphicLink (const OUString &rNew)
 
void SetGraphicFilter (const OUString &rNew)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 
static sal_Int8 TransparencyToPercent (sal_Int32 nTrans)
 

Private Member Functions

void ApplyGraphicTransparency_Impl ()
 

Private Attributes

Color aColor
 
model::ComplexColor maComplexColor
 
Color aFilterColor
 
sal_Int32 nShadingValue
 
std::unique_ptr< GraphicObjectxGraphicObject
 
sal_Int8 nGraphicTransparency
 
OUString maStrLink
 
OUString maStrFilter
 
SvxGraphicPosition eGraphicPos
 
bool bLoadAgain
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 41 of file brushitem.hxx.

Constructor & Destructor Documentation

◆ SvxBrushItem() [1/8]

SvxBrushItem::SvxBrushItem ( sal_uInt16  nWhich)
explicit

Definition at line 3981 of file frmitems.cxx.

References CLEAR, and COL_TRANSPARENT().

Referenced by Clone(), and CreateDefault().

◆ SvxBrushItem() [2/8]

SvxBrushItem::SvxBrushItem ( Color const &  rColor,
sal_uInt16  nWhich 
)

Definition at line 3992 of file frmitems.cxx.

References CLEAR, and COL_TRANSPARENT().

◆ SvxBrushItem() [3/8]

SvxBrushItem::SvxBrushItem ( Color const &  rColor,
model::ComplexColor const &  rComplexColor,
sal_uInt16  nWhich 
)

Definition at line 4003 of file frmitems.cxx.

References CLEAR, and COL_TRANSPARENT().

◆ SvxBrushItem() [4/8]

SvxBrushItem::SvxBrushItem ( const Graphic rGraphic,
SvxGraphicPosition  ePos,
sal_uInt16  nWhich 
)

Definition at line 4015 of file frmitems.cxx.

References CLEAR, COL_TRANSPARENT(), DBG_ASSERT, ePos, and GPOS_NONE.

◆ SvxBrushItem() [5/8]

SvxBrushItem::SvxBrushItem ( const GraphicObject rGraphicObj,
SvxGraphicPosition  ePos,
sal_uInt16  nWhich 
)

Definition at line 4028 of file frmitems.cxx.

References CLEAR, COL_TRANSPARENT(), DBG_ASSERT, ePos, and GPOS_NONE.

◆ SvxBrushItem() [6/8]

SvxBrushItem::SvxBrushItem ( OUString  rLink,
OUString  aFilter,
SvxGraphicPosition  ePos,
sal_uInt16  nWhich 
)

Definition at line 4041 of file frmitems.cxx.

References CLEAR, COL_TRANSPARENT(), DBG_ASSERT, ePos, and GPOS_NONE.

◆ SvxBrushItem() [7/8]

SvxBrushItem::SvxBrushItem ( const SvxBrushItem rItem)

Definition at line 4056 of file frmitems.cxx.

◆ SvxBrushItem() [8/8]

SvxBrushItem::SvxBrushItem ( SvxBrushItem &&  rItem)

Definition at line 4071 of file frmitems.cxx.

◆ ~SvxBrushItem()

SvxBrushItem::~SvxBrushItem ( )
overridevirtual

Definition at line 4086 of file frmitems.cxx.

Member Function Documentation

◆ ApplyGraphicTransparency_Impl()

void SvxBrushItem::ApplyGraphicTransparency_Impl ( )
private

◆ Clone()

SvxBrushItem * SvxBrushItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 4387 of file frmitems.cxx.

References SvxBrushItem().

Referenced by SvxNumberFormat::SetGraphicBrush().

◆ CreateDefault()

SfxPoolItem * SvxBrushItem::CreateDefault ( )
static

Definition at line 94 of file frmitems.cxx.

References SvxBrushItem().

◆ dumpAsXml()

void SvxBrushItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

◆ GetColor() [1/2]

Color & SvxBrushItem::GetColor ( )
inline

Definition at line 91 of file brushitem.hxx.

◆ GetColor() [2/2]

const Color & SvxBrushItem::GetColor ( ) const
inline

Definition at line 90 of file brushitem.hxx.

Referenced by isUsed(), and legacy::SvxBrush::Store().

◆ getComplexColor()

const model::ComplexColor & SvxBrushItem::getComplexColor ( ) const
inline

Definition at line 94 of file brushitem.hxx.

◆ GetFiltColor()

const Color & SvxBrushItem::GetFiltColor ( ) const
inline

Definition at line 104 of file brushitem.hxx.

◆ GetGraphic()

const Graphic * SvxBrushItem::GetGraphic ( OUString const &  referer = OUString()) const

◆ GetGraphicFilter()

const OUString & SvxBrushItem::GetGraphicFilter ( ) const
inline

Definition at line 113 of file brushitem.hxx.

Referenced by legacy::SvxBrush::Store().

◆ GetGraphicLink()

const OUString & SvxBrushItem::GetGraphicLink ( ) const
inline

Definition at line 112 of file brushitem.hxx.

Referenced by legacy::SvxBrush::Store(), and SvxNumRule::UnLinkGraphics().

◆ GetGraphicObject()

const GraphicObject * SvxBrushItem::GetGraphicObject ( OUString const &  referer = OUString()) const

◆ GetGraphicPos()

SvxGraphicPosition SvxBrushItem::GetGraphicPos ( ) const
inline

Definition at line 107 of file brushitem.hxx.

Referenced by isUsed(), and legacy::SvxBrush::Store().

◆ getGraphicTransparency()

sal_Int8 SvxBrushItem::getGraphicTransparency ( ) const
inline

Definition at line 116 of file brushitem.hxx.

◆ GetPresentation()

bool SvxBrushItem::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper  
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 4320 of file frmitems.cxx.

References aColor, cpDelim, EditResId(), eGraphicPos, GetColorString(), GPOS_NONE, and Color::IsTransparent().

◆ GetShadingValue()

sal_Int32 SvxBrushItem::GetShadingValue ( ) const
inline

Definition at line 109 of file brushitem.hxx.

◆ isUsed()

bool SvxBrushItem::isUsed ( ) const

Definition at line 4090 of file frmitems.cxx.

References GetColor(), GetGraphicPos(), and GPOS_NONE.

◆ operator==()

bool SvxBrushItem::operator== ( const SfxPoolItem rAttr) const
overridevirtual

◆ PutValue()

bool SvxBrushItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SvxBrushItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

◆ SetColor()

void SvxBrushItem::SetColor ( const Color rCol)
inline

Definition at line 92 of file brushitem.hxx.

Referenced by legacy::SvxBrush::Create().

◆ setComplexColor()

void SvxBrushItem::setComplexColor ( model::ComplexColor const &  rComplexColor)
inline

Definition at line 99 of file brushitem.hxx.

◆ SetFiltColor()

void SvxBrushItem::SetFiltColor ( const Color rCol)
inline

Definition at line 105 of file brushitem.hxx.

◆ SetGraphic()

void SvxBrushItem::SetGraphic ( const Graphic rNew)

◆ SetGraphicFilter()

void SvxBrushItem::SetGraphicFilter ( const OUString &  rNew)

Definition at line 4541 of file frmitems.cxx.

References maStrFilter.

Referenced by legacy::SvxBrush::Create(), and PutValue().

◆ SetGraphicLink()

void SvxBrushItem::SetGraphicLink ( const OUString &  rNew)

Definition at line 4530 of file frmitems.cxx.

References maStrLink, and xGraphicObject.

Referenced by legacy::SvxBrush::Create(), and SvxNumRule::UnLinkGraphics().

◆ SetGraphicObject()

void SvxBrushItem::SetGraphicObject ( const GraphicObject rNewObj)

◆ SetGraphicPos()

void SvxBrushItem::SetGraphicPos ( SvxGraphicPosition  eNew)

Definition at line 4471 of file frmitems.cxx.

References eGraphicPos, GPOS_NONE, maStrFilter, maStrLink, and xGraphicObject.

Referenced by legacy::SvxBrush::Create(), and PutValue().

◆ setGraphicTransparency()

void SvxBrushItem::setGraphicTransparency ( sal_Int8  nNew)

Definition at line 4456 of file frmitems.cxx.

References ApplyGraphicTransparency_Impl(), and nGraphicTransparency.

◆ TransparencyToPercent()

sal_Int8 SvxBrushItem::TransparencyToPercent ( sal_Int32  nTrans)
static

Definition at line 4114 of file frmitems.cxx.

Referenced by QueryValue().

Member Data Documentation

◆ aColor

Color SvxBrushItem::aColor
private

Definition at line 43 of file brushitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), and QueryValue().

◆ aFilterColor

Color SvxBrushItem::aFilterColor
private

Definition at line 45 of file brushitem.hxx.

Referenced by dumpAsXml(), and operator==().

◆ bLoadAgain

bool SvxBrushItem::bLoadAgain
mutableprivate

Definition at line 53 of file brushitem.hxx.

Referenced by dumpAsXml(), and GetGraphicObject().

◆ eGraphicPos

SvxGraphicPosition SvxBrushItem::eGraphicPos
private

◆ maComplexColor

model::ComplexColor SvxBrushItem::maComplexColor
private

Definition at line 44 of file brushitem.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

◆ maStrFilter

OUString SvxBrushItem::maStrFilter
private

Definition at line 51 of file brushitem.hxx.

Referenced by dumpAsXml(), operator==(), QueryValue(), SetGraphicFilter(), and SetGraphicPos().

◆ maStrLink

OUString SvxBrushItem::maStrLink
private

◆ nGraphicTransparency

sal_Int8 SvxBrushItem::nGraphicTransparency
private

◆ nShadingValue

sal_Int32 SvxBrushItem::nShadingValue
private

Definition at line 46 of file brushitem.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().

◆ xGraphicObject

std::unique_ptr<GraphicObject> SvxBrushItem::xGraphicObject
mutableprivate

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