diff options
Diffstat (limited to 'include/sfx2/ctrlitem.hxx')
-rw-r--r-- | include/sfx2/ctrlitem.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sfx2/ctrlitem.hxx b/include/sfx2/ctrlitem.hxx index 489fdb9461a8..da9f86f93e1c 100644 --- a/include/sfx2/ctrlitem.hxx +++ b/include/sfx2/ctrlitem.hxx @@ -30,9 +30,10 @@ class SfxBindings; class SFX2_DLLPUBLIC SfxControllerItem { private: - sal_uInt16 nId; + sal_uInt16 nId; SfxControllerItem* pNext; // to notify next ControllerItem SfxBindings* pBindings; + MapUnit eFallbackCoreMetric; public: SfxBindings & GetBindings() { @@ -67,6 +68,11 @@ public: virtual void GetControlState( sal_uInt16 nSID, boost::property_tree::ptree& ); MapUnit GetCoreMetric() const; + // override what GetCoreMetric will return if it cannot determine the current CoreMetric + void SetFallbackCoreMetric(MapUnit eFallback) + { + eFallbackCoreMetric = eFallback; + } static SfxItemState GetItemState( const SfxPoolItem* pState ); |