LibreOffice Module editeng (master) 1
|
#include <brushitem.hxx>
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 SvxBrushItem * | Clone (SfxItemPool *pPool=nullptr) const override |
const Color & | GetColor () const |
Color & | GetColor () |
void | SetColor (const Color &rCol) |
const model::ComplexColor & | getComplexColor () const |
void | setComplexColor (model::ComplexColor const &rComplexColor) |
const Color & | GetFiltColor () const |
void | SetFiltColor (const Color &rCol) |
SvxGraphicPosition | GetGraphicPos () const |
sal_Int32 | GetShadingValue () const |
const Graphic * | GetGraphic (OUString const &referer=OUString()) const |
const GraphicObject * | GetGraphicObject (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 SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (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 SfxPoolItem * | CreateDefault () |
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< GraphicObject > | xGraphicObject |
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) | |
Definition at line 41 of file brushitem.hxx.
|
explicit |
Definition at line 3981 of file frmitems.cxx.
References CLEAR, and COL_TRANSPARENT().
Referenced by Clone(), and CreateDefault().
SvxBrushItem::SvxBrushItem | ( | Color const & | rColor, |
sal_uInt16 | nWhich | ||
) |
Definition at line 3992 of file frmitems.cxx.
References CLEAR, and COL_TRANSPARENT().
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::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::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::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::SvxBrushItem | ( | const SvxBrushItem & | rItem | ) |
Definition at line 4056 of file frmitems.cxx.
SvxBrushItem::SvxBrushItem | ( | SvxBrushItem && | rItem | ) |
Definition at line 4071 of file frmitems.cxx.
|
overridevirtual |
Definition at line 4086 of file frmitems.cxx.
|
private |
Definition at line 4546 of file frmitems.cxx.
References DBG_ASSERT, lcl_PercentToTransparency(), nGraphicTransparency, GraphicAttr::SetAlpha(), and xGraphicObject.
Referenced by GetGraphicObject(), PutValue(), SetGraphic(), SetGraphicObject(), and setGraphicTransparency().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 4387 of file frmitems.cxx.
References SvxBrushItem().
Referenced by SvxNumberFormat::SetGraphicBrush().
|
static |
Definition at line 94 of file frmitems.cxx.
References SvxBrushItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 4558 of file frmitems.cxx.
References aColor, aFilterColor, Color::AsRGBHexString(), bLoadAgain, eGraphicPos, maStrFilter, maStrLink, nShadingValue, and SfxPoolItem::Which().
|
inline |
Definition at line 91 of file brushitem.hxx.
|
inline |
Definition at line 90 of file brushitem.hxx.
Referenced by isUsed(), and legacy::SvxBrush::Store().
|
inline |
Definition at line 94 of file brushitem.hxx.
|
inline |
Definition at line 104 of file brushitem.hxx.
const Graphic * SvxBrushItem::GetGraphic | ( | OUString const & | referer = OUString() | ) | const |
Definition at line 4465 of file frmitems.cxx.
References GraphicObject::GetGraphic(), and GetGraphicObject().
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and SvxNumRule::UnLinkGraphics().
|
inline |
Definition at line 113 of file brushitem.hxx.
Referenced by legacy::SvxBrush::Store().
|
inline |
Definition at line 112 of file brushitem.hxx.
Referenced by legacy::SvxBrush::Store(), and SvxNumRule::UnLinkGraphics().
const GraphicObject * SvxBrushItem::GetGraphicObject | ( | OUString const & | referer = OUString() | ) | const |
Definition at line 4392 of file frmitems.cxx.
References ApplyGraphicTransparency_Impl(), bLoadAgain, utl::UcbStreamHelper::CreateStream(), ERRCODE_NONE, INetURLObject::getData(), GraphicFilter::GetGraphicFilter(), INetURLObject::GetProtocol(), Graphic::GetType(), GRFILTER_FORMAT_DONTKNOW, SvtSecurityOptions::isUntrustedReferer(), maStrLink, u, xGraphicObject, and xStream.
Referenced by GetGraphic(), Outliner::PaintBullet(), and legacy::SvxBrush::Store().
|
inline |
Definition at line 107 of file brushitem.hxx.
Referenced by isUsed(), and legacy::SvxBrush::Store().
|
inline |
Definition at line 116 of file brushitem.hxx.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 4320 of file frmitems.cxx.
References aColor, cpDelim, EditResId(), eGraphicPos, GetColorString(), GPOS_NONE, and Color::IsTransparent().
|
inline |
Definition at line 109 of file brushitem.hxx.
bool SvxBrushItem::isUsed | ( | ) | const |
Definition at line 4090 of file frmitems.cxx.
References GetColor(), GetGraphicPos(), and GPOS_NONE.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 4345 of file frmitems.cxx.
References aColor, aFilterColor, eGraphicPos, GPOS_NONE, maComplexColor, maStrFilter, maStrLink, nGraphicTransparency, nShadingValue, and xGraphicObject.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 4189 of file frmitems.cxx.
References aColor, Any2Bool(), ApplyGraphicTransparency_Impl(), aURL, eGraphicPos, Color::GetAlpha(), model::color::getFromXComplexColor(), GPOS_MM, GPOS_NONE, Graphic::IsNone(), lcl_PercentToTransparency(), vcl::graphic::loadFromURL(), maComplexColor, maStrLink, MID_BACK_COLOR, MID_BACK_COLOR_R_G_B, MID_BACK_COLOR_TRANSPARENCY, MID_BACKGROUND_COMPLEX_COLOR, MID_GRAPHIC, MID_GRAPHIC_FILTER, MID_GRAPHIC_POSITION, MID_GRAPHIC_TRANSPARENCY, MID_GRAPHIC_TRANSPARENT, MID_GRAPHIC_URL, MID_SHADING_VALUE, nGraphicTransparency, nShadingValue, nValue, Color::SetAlpha(), SetGraphicFilter(), SetGraphicPos(), and xGraphicObject.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 4120 of file frmitems.cxx.
References aColor, model::color::createXComplexColor(), eGraphicPos, Color::GetAlpha(), Color::GetRGBColor(), Graphic::GetXGraphic(), vcl::graphic::loadFromURL(), maComplexColor, maStrFilter, maStrLink, MID_BACK_COLOR, MID_BACK_COLOR_R_G_B, MID_BACK_COLOR_TRANSPARENCY, MID_BACKGROUND_COMPLEX_COLOR, MID_GRAPHIC, MID_GRAPHIC_FILTER, MID_GRAPHIC_POSITION, MID_GRAPHIC_TRANSPARENCY, MID_GRAPHIC_TRANSPARENT, MID_GRAPHIC_URL, MID_SHADING_VALUE, nGraphicTransparency, nShadingValue, TransparencyToPercent(), and xGraphicObject.
|
inline |
Definition at line 92 of file brushitem.hxx.
Referenced by legacy::SvxBrush::Create().
|
inline |
Definition at line 99 of file brushitem.hxx.
|
inline |
Definition at line 105 of file brushitem.hxx.
void SvxBrushItem::SetGraphic | ( | const Graphic & | rNew | ) |
Definition at line 4490 of file frmitems.cxx.
References ApplyGraphicTransparency_Impl(), eGraphicPos, GPOS_MM, GPOS_NONE, maStrLink, and xGraphicObject.
Referenced by SvxNumRule::UnLinkGraphics().
void SvxBrushItem::SetGraphicFilter | ( | const OUString & | rNew | ) |
Definition at line 4541 of file frmitems.cxx.
References maStrFilter.
Referenced by legacy::SvxBrush::Create(), and PutValue().
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().
void SvxBrushItem::SetGraphicObject | ( | const GraphicObject & | rNewObj | ) |
Definition at line 4510 of file frmitems.cxx.
References ApplyGraphicTransparency_Impl(), eGraphicPos, GPOS_MM, GPOS_NONE, maStrLink, and xGraphicObject.
Referenced by legacy::SvxBrush::Create().
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().
void SvxBrushItem::setGraphicTransparency | ( | sal_Int8 | nNew | ) |
Definition at line 4456 of file frmitems.cxx.
References ApplyGraphicTransparency_Impl(), and nGraphicTransparency.
|
static |
Definition at line 4114 of file frmitems.cxx.
Referenced by QueryValue().
|
private |
Definition at line 43 of file brushitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 45 of file brushitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
mutableprivate |
Definition at line 53 of file brushitem.hxx.
Referenced by dumpAsXml(), and GetGraphicObject().
|
private |
Definition at line 52 of file brushitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), SetGraphic(), SetGraphicObject(), and SetGraphicPos().
|
private |
Definition at line 44 of file brushitem.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 51 of file brushitem.hxx.
Referenced by dumpAsXml(), operator==(), QueryValue(), SetGraphicFilter(), and SetGraphicPos().
|
private |
Definition at line 50 of file brushitem.hxx.
Referenced by dumpAsXml(), GetGraphicObject(), operator==(), PutValue(), QueryValue(), SetGraphic(), SetGraphicLink(), SetGraphicObject(), and SetGraphicPos().
|
private |
Definition at line 48 of file brushitem.hxx.
Referenced by ApplyGraphicTransparency_Impl(), operator==(), PutValue(), QueryValue(), and setGraphicTransparency().
|
private |
Definition at line 46 of file brushitem.hxx.
Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().
|
mutableprivate |
Definition at line 47 of file brushitem.hxx.
Referenced by ApplyGraphicTransparency_Impl(), GetGraphicObject(), operator==(), PutValue(), QueryValue(), SetGraphic(), SetGraphicLink(), SetGraphicObject(), and SetGraphicPos().