diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-24 11:31:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-29 11:04:01 +0200 |
commit | 7e018afaf74ab118fe21d92edc9fb95ddea5d61b (patch) | |
tree | 740eb08b1a2841f35f68e8f6257d7abd46d09219 /sc/inc | |
parent | 86c0a56a9ee2e3d15286b11afad65568d1a87c11 (diff) |
simplify return argument of SfxPoolItem::GetPresentation
since all two of the actual call-sites only care about whether
it is a valid presentation or not, not what kind of presentation it is.
Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/attrib.hxx | 10 | ||||
-rw-r--r-- | sc/inc/docpool.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index df7ed0106b6c..ab083065bc4e 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -111,7 +111,7 @@ public: virtual ~ScProtectionAttr(); virtual OUString GetValueText() const; - virtual SfxItemPresentation GetPresentation( + virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, @@ -164,7 +164,7 @@ public: // "pure virtual methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; - virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, + virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, @@ -219,7 +219,7 @@ public: // "pure virtual Methoden" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; - virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, + virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, @@ -290,7 +290,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const SAL_OVERRIDE; virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const SAL_OVERRIDE; - virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, + virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString& rText, @@ -350,7 +350,7 @@ public: { mnWidth = nWidth; mnHeight = nHeight; } inline void SetInvalid() { mnWidth = mnHeight = 0; } - virtual SfxItemPresentation GetPresentation( + virtual bool GetPresentation( SfxItemPresentation ePresentation, SfxMapUnit, SfxMapUnit, OUString& rText, diff --git a/sc/inc/docpool.hxx b/sc/inc/docpool.hxx index ceff3d1210f3..db65148a391b 100644 --- a/sc/inc/docpool.hxx +++ b/sc/inc/docpool.hxx @@ -58,7 +58,7 @@ public: void StyleDeleted( ScStyleSheet* pStyle ); // delete templates(?) in organizer void CellStyleCreated( const OUString& rName ); - virtual SfxItemPresentation GetPresentation( + virtual bool GetPresentation( const SfxPoolItem& rItem, SfxMapUnit ePresentationMetric, OUString& rText, |