LibreOffice Module svx (master) 1
|
#include <attributeproperties.hxx>
Public Member Functions | |
AttributeProperties (SdrObject &rObj) | |
AttributeProperties (const AttributeProperties &rProps, SdrObject &rObj) | |
virtual std::unique_ptr< BaseProperties > | Clone (SdrObject &rObj) const override |
virtual const SfxItemSet & | GetObjectItemSet () const override |
virtual | ~AttributeProperties () override |
virtual void | SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override |
virtual SfxStyleSheet * | GetStyleSheet () const override |
virtual void | ForceStyleToHardAttributes () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual bool | isUsedByModel () const override |
Public Member Functions inherited from sdr::properties::DefaultProperties | |
DefaultProperties (SdrObject &rObj) | |
DefaultProperties (const DefaultProperties &rProps, SdrObject &rObj) | |
virtual | ~DefaultProperties () override |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
virtual std::unique_ptr< BaseProperties > | Clone (SdrObject &rObj) const override |
virtual const SfxItemSet & | GetObjectItemSet () const override |
virtual void | SetObjectItem (const SfxPoolItem &rItem) override |
virtual void | SetObjectItemDirect (const SfxPoolItem &rItem) override |
virtual void | ClearObjectItem (const sal_uInt16 nWhich=0) override |
virtual void | ClearObjectItemDirect (const sal_uInt16 nWhich) override |
virtual void | SetObjectItemSet (const SfxItemSet &rSet) override |
virtual void | SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override |
virtual SfxStyleSheet * | GetStyleSheet () const override |
virtual void | ForceDefaultAttributes () |
Public Member Functions inherited from sdr::properties::BaseProperties | |
BaseProperties (SdrObject &rObj) | |
virtual | ~BaseProperties () |
virtual SfxItemSet | CreateObjectSpecificItemSet (SfxItemPool &pPool)=0 |
virtual std::unique_ptr< BaseProperties > | Clone (SdrObject &rObj) const =0 |
virtual const SfxItemSet & | GetObjectItemSet () const =0 |
virtual const SfxItemSet & | GetMergedItemSet () const |
virtual void | SetObjectItemSet (const SfxItemSet &rSet)=0 |
virtual void | SetMergedItemSet (const SfxItemSet &rSet, bool bClearAllItems=false) |
virtual void | SetObjectItem (const SfxPoolItem &rItem)=0 |
virtual void | SetObjectItemDirect (const SfxPoolItem &rItem)=0 |
virtual void | ClearObjectItem (const sal_uInt16 nWhich=0)=0 |
virtual void | SetMergedItem (const SfxPoolItem &rItem) |
virtual void | ClearMergedItem (const sal_uInt16 nWhich) |
virtual void | ClearObjectItemDirect (const sal_uInt16 nWhich)=0 |
virtual void | SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast)=0 |
virtual SfxStyleSheet * | GetStyleSheet () const =0 |
virtual void | ForceStyleToHardAttributes () |
void | SetMergedItemSetAndBroadcast (const SfxItemSet &rSet, bool bClearAllItems=false) |
const SfxPoolItem & | GetItem (const sal_uInt16 nWhich) const |
template<class T > | |
const T & | GetItem (TypedWhichId< T > nWhich) const |
void | BroadcastItemChange (const ItemChangeBroadcaster &rChange) |
virtual sal_uInt32 | getVersion () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Protected Member Functions | |
virtual SfxItemSet | CreateObjectSpecificItemSet (SfxItemPool &pPool) override |
virtual void | ItemChange (const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) override |
virtual void | ItemSetChanged (o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) override |
virtual void | applyDefaultStyleSheetFromSdrModel () |
Protected Member Functions inherited from sdr::properties::DefaultProperties | |
virtual SfxItemSet | CreateObjectSpecificItemSet (SfxItemPool &pPool) override |
virtual bool | AllowItemChange (const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) const |
virtual void | ItemChange (const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) |
virtual void | PostItemChange (const sal_uInt16 nWhich) |
virtual void | ItemSetChanged (o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) |
bool | HasSfxItemSet () const |
Protected Member Functions inherited from sdr::properties::BaseProperties | |
const SdrObject & | GetSdrObject () const |
SdrObject & | GetSdrObject () |
Private Member Functions | |
void | ImpSetParentAtSfxItemSet (bool bDontRemoveHardAttr) |
void | ImpAddStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
void | ImpRemoveStyleSheet () |
Private Attributes | |
SfxStyleSheet * | mpStyleSheet |
Additional Inherited Members | |
Protected Attributes inherited from sdr::properties::DefaultProperties | |
std::optional< SfxItemSet > | mxItemSet |
Definition at line 30 of file attributeproperties.hxx.
|
explicit |
Definition at line 136 of file attributeproperties.cxx.
Referenced by Clone().
sdr::properties::AttributeProperties::AttributeProperties | ( | const AttributeProperties & | rProps, |
SdrObject & | rObj | ||
) |
Definition at line 147 of file attributeproperties.cxx.
References SfxStyleSheetBasePool::Find(), SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetName(), SdrObject::getSdrModelFromSdrObject(), sdr::properties::BaseProperties::GetSdrObject(), GetStyleSheet(), SdrModel::GetStyleSheetPool(), sdr::properties::DefaultProperties::HasSfxItemSet(), ImpAddStyleSheet(), and mpStyleSheet.
|
overridevirtual |
Definition at line 222 of file attributeproperties.cxx.
References ImpRemoveStyleSheet().
|
protectedvirtual |
Reimplemented in sdr::properties::GraphicProperties, and sdr::properties::OleProperties.
Definition at line 524 of file attributeproperties.cxx.
References sdr::properties::BaseProperties::GetSdrObject(), GetStyleSheet(), and SetStyleSheet().
Referenced by sdr::properties::GraphicProperties::applyDefaultStyleSheetFromSdrModel(), sdr::properties::OleProperties::applyDefaultStyleSheetFromSdrModel(), and GetObjectItemSet().
|
overridevirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::CaptionProperties, sdr::properties::CellProperties, sdr::properties::CircleProperties, sdr::properties::ConnectorProperties, sdr::properties::CustomShapeProperties, sdr::properties::E3dCompoundProperties, sdr::properties::E3dExtrudeProperties, sdr::properties::E3dLatheProperties, sdr::properties::E3dProperties, sdr::properties::E3dSceneProperties, sdr::properties::E3dSphereProperties, sdr::properties::GraphicProperties, sdr::properties::MeasureProperties, sdr::properties::OleProperties, sdr::properties::RectangleProperties, and sdr::properties::TextProperties.
Definition at line 227 of file attributeproperties.cxx.
References AttributeProperties().
|
overrideprotectedvirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::CaptionProperties, sdr::properties::CellProperties, sdr::properties::CircleProperties, sdr::properties::ConnectorProperties, sdr::properties::CustomShapeProperties, sdr::properties::E3dProperties, sdr::properties::GraphicProperties, sdr::properties::MeasureProperties, and sdr::properties::TextProperties.
Definition at line 125 of file attributeproperties.cxx.
References svl::Items, SDRATTR_MISC_FIRST(), SDRATTR_MISC_LAST(), SDRATTR_SHADOW_LAST(), SDRATTR_START(), SDRATTR_TEXTCOLUMNS_FIRST(), SDRATTR_TEXTCOLUMNS_LAST(), and SDRATTR_TEXTDIRECTION().
|
overridevirtual |
Reimplemented from sdr::properties::BaseProperties.
Reimplemented in sdr::properties::TextProperties.
Definition at line 378 of file attributeproperties.cxx.
References SfxListener::EndListening(), SfxWhichIter::FirstWhich(), GetObjectItemSet(), SfxStyleSheetBase::GetPool(), sdr::properties::BaseProperties::GetSdrObject(), GetStyleSheet(), mpStyleSheet, sdr::properties::DefaultProperties::mxItemSet, SfxWhichIter::NextWhich(), SfxItemSet::Put(), SdrObject::SetBoundAndSnapRectsDirty(), SdrObject::SetBoundRectDirty(), and SfxItemSet::SetParent().
Referenced by sdr::properties::TextProperties::ForceStyleToHardAttributes().
|
overridevirtual |
Reimplemented from sdr::properties::DefaultProperties.
Definition at line 232 of file attributeproperties.cxx.
References applyDefaultStyleSheetFromSdrModel(), sdr::properties::DefaultProperties::GetObjectItemSet(), sdr::properties::DefaultProperties::HasSfxItemSet(), mpStyleSheet, sdr::properties::DefaultProperties::mxItemSet, and SetStyleSheet().
Referenced by sdr::properties::CaptionProperties::ForceDefaultAttributes(), sdr::properties::CircleProperties::ForceDefaultAttributes(), sdr::properties::GraphicProperties::ForceDefaultAttributes(), sdr::properties::MeasureProperties::ForceDefaultAttributes(), sdr::properties::TextProperties::ForceDefaultAttributes(), ForceStyleToHardAttributes(), sdr::properties::TextProperties::ForceStyleToHardAttributes(), sdr::properties::E3dCompoundProperties::GetMergedItemSet(), sdr::properties::E3dSceneProperties::GetMergedItemSet(), ItemChange(), sdr::properties::CellProperties::ItemSetChanged(), sdr::properties::TextProperties::ItemSetChanged(), sdr::properties::E3dCompoundProperties::SetMergedItemSet(), sdr::properties::TextProperties::SetObjectItemNoBroadcast(), sdr::properties::E3dSceneProperties::SetSceneItemsFromCamera(), SetStyleSheet(), and sdr::properties::CustomShapeProperties::UpdateTextFrameStatus().
|
overridevirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::E3dSceneProperties.
Definition at line 373 of file attributeproperties.cxx.
References mpStyleSheet.
Referenced by applyDefaultStyleSheetFromSdrModel(), AttributeProperties(), ForceStyleToHardAttributes(), ImpAddStyleSheet(), ImpRemoveStyleSheet(), Notify(), sdr::properties::CustomShapeProperties::Notify(), and sdr::properties::TextProperties::SetStyleSheet().
|
private |
Definition at line 74 of file attributeproperties.cxx.
References DBG_ASSERT, SfxStyleSheetBase::GetPool(), GetStyleSheet(), sdr::properties::DefaultProperties::HasSfxItemSet(), ImpSetParentAtSfxItemSet(), mpStyleSheet, and SfxListener::StartListening().
Referenced by AttributeProperties(), Notify(), and SetStyleSheet().
|
private |
Definition at line 100 of file attributeproperties.cxx.
References SfxListener::EndListening(), SfxStyleSheetBase::GetPool(), sdr::properties::BaseProperties::GetSdrObject(), GetStyleSheet(), sdr::properties::DefaultProperties::HasSfxItemSet(), mpStyleSheet, sdr::properties::DefaultProperties::mxItemSet, SdrObject::SetBoundAndSnapRectsDirty(), and SdrObject::SetBoundRectDirty().
Referenced by Notify(), SetStyleSheet(), and ~AttributeProperties().
|
private |
Definition at line 43 of file attributeproperties.cxx.
References SfxWhichIter::FirstWhich(), SfxStyleSheetBase::GetItemSet(), SfxWhichIter::GetItemState(), sdr::properties::DefaultProperties::HasSfxItemSet(), mpStyleSheet, sdr::properties::DefaultProperties::mxItemSet, and SfxWhichIter::NextWhich().
Referenced by ImpAddStyleSheet().
|
overridevirtual |
Definition at line 512 of file attributeproperties.cxx.
References sdr::properties::BaseProperties::GetSdrObject(), SdrObject::getSdrPageFromSdrObject(), SdrObject::IsInserted(), and SdrPage::IsInserted().
|
overrideprotectedvirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::CellProperties, sdr::properties::CustomShapeProperties, and sdr::properties::TextProperties.
Definition at line 288 of file attributeproperties.cxx.
References GetObjectItemSet(), sdr::properties::BaseProperties::GetSdrObject(), sdr::properties::DefaultProperties::HasSfxItemSet(), sdr::properties::DefaultProperties::mxItemSet, XATTR_FILLBITMAP(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), XATTR_LINEDASH(), XATTR_LINEEND(), and XATTR_LINESTART().
Referenced by sdr::properties::CellProperties::ItemChange(), and sdr::properties::TextProperties::ItemChange().
|
overrideprotectedvirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::CaptionProperties, sdr::properties::CellProperties, sdr::properties::CircleProperties, sdr::properties::ConnectorProperties, sdr::properties::CustomShapeProperties, sdr::properties::E3dProperties, sdr::properties::GraphicProperties, sdr::properties::MeasureProperties, sdr::properties::RectangleProperties, and sdr::properties::TextProperties.
Definition at line 278 of file attributeproperties.cxx.
References sdr::properties::BaseProperties::GetSdrObject(), SdrObject::SetBoundAndSnapRectsDirty(), SdrObject::SetBoundRectDirty(), and SdrObject::SetChanged().
Referenced by sdr::properties::CellProperties::ItemSetChanged(), sdr::properties::E3dProperties::ItemSetChanged(), and sdr::properties::TextProperties::ItemSetChanged().
|
overridevirtual |
Reimplemented from SfxListener.
Reimplemented in sdr::properties::CustomShapeProperties, and sdr::properties::TextProperties.
Definition at line 423 of file attributeproperties.cxx.
References SdrObject::BroadcastObjectChange(), ChangeAttr, SfxStyleSheetBasePool::Find(), SdrModel::GetDefaultStyleSheet(), SfxHint::GetId(), SdrObject::GetLastBoundRect(), SdrObject::getSdrModelFromSdrObject(), sdr::properties::BaseProperties::GetSdrObject(), SfxStyleSheetHint::GetStyleSheet(), GetStyleSheet(), SdrModel::GetStyleSheetPool(), ImpAddStyleSheet(), ImpRemoveStyleSheet(), SdrObject::IsInDestruction(), SfxListener::Notify(), SdrObject::SendUserCall(), SdrObject::SetBoundAndSnapRectsDirty(), and SdrObject::SetChanged().
Referenced by sdr::properties::TextProperties::Notify().
|
overridevirtual |
Reimplemented from sdr::properties::DefaultProperties.
Reimplemented in sdr::properties::CaptionProperties, sdr::properties::CircleProperties, sdr::properties::ConnectorProperties, sdr::properties::CustomShapeProperties, sdr::properties::E3dSceneProperties, sdr::properties::GraphicProperties, sdr::properties::MeasureProperties, sdr::properties::RectangleProperties, and sdr::properties::TextProperties.
Definition at line 359 of file attributeproperties.cxx.
References GetObjectItemSet(), sdr::properties::BaseProperties::GetSdrObject(), ImpAddStyleSheet(), ImpRemoveStyleSheet(), SdrObject::SetBoundAndSnapRectsDirty(), and SdrObject::SetBoundRectDirty().
Referenced by applyDefaultStyleSheetFromSdrModel(), GetObjectItemSet(), and sdr::properties::TextProperties::SetStyleSheet().
|
private |
Definition at line 88 of file attributeproperties.hxx.
Referenced by AttributeProperties(), ForceStyleToHardAttributes(), GetObjectItemSet(), GetStyleSheet(), ImpAddStyleSheet(), ImpRemoveStyleSheet(), and ImpSetParentAtSfxItemSet().