LibreOffice Module sd (master) 1
|
#include <unopback.hxx>
Public Member Functions | |
SdUnoPageBackground (SdDrawDocument *pDoc=nullptr, const SfxItemSet *pSet=nullptr) | |
virtual | ~SdUnoPageBackground () noexcept override |
void | fillItemSet (SdDrawDocument *pDoc, SfxItemSet &rSet) |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
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 |
Private Member Functions | |
const SfxItemPropertyMapEntry * | getPropertyMapEntry (std::u16string_view rPropertyName) const noexcept |
this is used because our property map is not sorted yet More... | |
Private Attributes | |
const SvxItemPropertySet * | mpPropSet |
SvxItemPropertySetUsrAnys | maUsrAnys |
std::unique_ptr< SfxItemSet > | mpSet |
SdrModel * | mpDoc |
Definition at line 43 of file unopback.hxx.
SdUnoPageBackground::SdUnoPageBackground | ( | SdDrawDocument * | pDoc = nullptr , |
const SfxItemSet * | pSet = nullptr |
||
) |
Definition at line 48 of file unopback.cxx.
References SdDrawDocument::GetPool(), mpSet, and SfxListener::StartListening().
|
overridevirtualnoexcept |
Definition at line 64 of file unopback.cxx.
References SfxListener::EndListening(), and mpDoc.
|
overridevirtual |
Definition at line 289 of file unopback.cxx.
|
overridevirtual |
Definition at line 291 of file unopback.cxx.
void SdUnoPageBackground::fillItemSet | ( | SdDrawDocument * | pDoc, |
SfxItemSet & | rSet | ||
) |
Definition at line 87 of file unopback.cxx.
References SvxItemPropertySetUsrAnys::AreThereOwnUsrAnys(), SfxItemSet::ClearItem(), SfxItemSet::GetPool(), SfxItemPropertyMap::getPropertyEntries(), SvxItemPropertySet::getPropertyMap(), SvxItemPropertySetUsrAnys::GetUsrAnyForID(), maUsrAnys, MID_BITMAP, MID_FILLGRADIENT, MID_FILLHATCH, MID_NAME, mpDoc, mpPropSet, mpSet, SfxItemSet::Put(), rSet, setPropertyValue(), SfxListener::StartListening(), XATTR_FILLBITMAP(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), and XATTR_FILLHATCH().
Referenced by SdDrawPage::setBackground(), and SdMasterPage::setBackground().
|
overridevirtual |
Definition at line 164 of file unopback.cxx.
|
overridevirtual |
Definition at line 377 of file unopback.cxx.
References SfxItemPool::GetDefaultItem(), getPropertyMapEntry(), mpSet, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, SfxItemSet::Put(), and SvxItemPropertySet_getPropertyValue().
|
privatenoexcept |
this is used because our property map is not sorted yet
Definition at line 402 of file unopback.cxx.
Referenced by getPropertyDefault(), getPropertyState(), getPropertyValue(), setPropertyToDefault(), and setPropertyValue().
|
overridevirtual |
Definition at line 180 of file unopback.cxx.
References SvxItemPropertySet::getPropertySetInfo(), and mpPropSet.
|
overridevirtual |
Definition at line 295 of file unopback.cxx.
References getPropertyMapEntry(), SvxItemPropertySetUsrAnys::GetUsrAnyForID(), maUsrAnys, mpSet, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
|
overridevirtual |
Definition at line 340 of file unopback.cxx.
References nCount.
|
overridevirtual |
Definition at line 239 of file unopback.cxx.
References SfxItemSet::Count(), SfxItemPool::GetDefaultItem(), getPropertyMapEntry(), SvxItemPropertySet::getPropertyValue(), maUsrAnys, mpPropSet, mpSet, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, SfxItemSet::Put(), SvxItemPropertySet_getPropertyValue(), XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
|
overridevirtual |
Definition at line 174 of file unopback.cxx.
References sUNO_Service_FillProperties, and sUNO_Service_PageBackground.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 72 of file unopback.cxx.
References SfxHint::GetId(), SdrHint::GetKind(), mpDoc, and mpSet.
|
overridevirtual |
Definition at line 290 of file unopback.cxx.
|
overridevirtual |
Definition at line 292 of file unopback.cxx.
|
overridevirtual |
Definition at line 354 of file unopback.cxx.
References getPropertyMapEntry(), mpSet, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
|
overridevirtual |
Definition at line 185 of file unopback.cxx.
References aName, SfxItemSet::Count(), eMode, SfxItemPool::GetDefaultItem(), getPropertyMapEntry(), maUsrAnys, MID_NAME, mpSet, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, SfxItemSet::Put(), SvxShape::SetFillAttribute(), SvxItemPropertySet::setPropertyValue(), SvxItemPropertySet_setPropertyValue(), XATTR_FILLBITMAP(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), and XATTR_FILLHATCH().
Referenced by fillItemSet().
|
overridevirtual |
Definition at line 169 of file unopback.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 50 of file unopback.hxx.
Referenced by fillItemSet(), getPropertyState(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 52 of file unopback.hxx.
Referenced by fillItemSet(), Notify(), and ~SdUnoPageBackground().
|
private |
Definition at line 49 of file unopback.hxx.
Referenced by fillItemSet(), getPropertySetInfo(), and getPropertyValue().
|
private |
Definition at line 51 of file unopback.hxx.
Referenced by fillItemSet(), getPropertyDefault(), getPropertyState(), getPropertyValue(), Notify(), SdUnoPageBackground(), setPropertyToDefault(), and setPropertyValue().