diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-12 11:24:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-13 07:47:24 +0100 |
commit | 078ee7560d4c7ac3883c0a625023ad22ec8dc326 (patch) | |
tree | d638c9c98dff401eab4dded6aa89cbad972e0958 | |
parent | cf4cf3ed0d9f57981b3fd15d64ef1c53bc16c0f1 (diff) |
sal_uIntPtr->sal_Int32 in SdrModel
Change-Id: I7cf53514641c52f3ebb503251e25df90bd6db8c7
Reviewed-on: https://gerrit.libreoffice.org/46310
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/svx/svdmodel.hxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 14 | ||||
-rw-r--r-- | svx/source/svdraw/svdtext.cxx | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 6808db46cc3f..d7924d795a80 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -164,7 +164,7 @@ protected: SdrOutliner* pDrawOutliner; // an Outliner for outputting text SdrOutliner* pHitTestOutliner;// an Outliner for the HitTest SdrOutliner* pChainingOutliner; // an Outliner for chaining overflowing text - sal_uIntPtr nDefTextHgt; // Default text height in logical units + sal_Int32 mnDefTextHgt; // Default text height in logical units VclPtr<OutputDevice> pRefOutDev; // ReferenceDevice for the EditEngine rtl::Reference< SfxStyleSheetBasePool > mxStyleSheetPool; SfxStyleSheet* pDefaultStyleSheet; @@ -287,7 +287,7 @@ public: const SdrTextObj* GetFormattingTextObj() const; // put the TextDefaults (Font,Height,Color) in a Set void SetTextDefaults() const; - static void SetTextDefaults( SfxItemPool* pItemPool, sal_uIntPtr nDefTextHgt ); + static void SetTextDefaults( SfxItemPool* pItemPool, sal_Int32 nDefTextHgt ); SdrOutliner& GetChainingOutliner(const SdrTextObj* pObj) const; TextChain * GetTextChain() const; @@ -298,8 +298,8 @@ public: // If a new MapMode is set on the RefDevice (or similar) void RefDeviceChanged(); // not yet implemented // default font height in logical units - void SetDefaultFontHeight(sal_uIntPtr nVal); - sal_uIntPtr GetDefaultFontHeight() const { return nDefTextHgt; } + void SetDefaultFontHeight(sal_Int32 nVal); + sal_Int32 GetDefaultFontHeight() const { return mnDefTextHgt; } // default tabulator width for the EditEngine void SetDefaultTabulator(sal_uInt16 nVal); sal_uInt16 GetDefaultTabulator() const { return nDefaultTabulator; } diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 95532a7b6b34..1290930214a8 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -185,9 +185,9 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbe // using static SdrEngineDefaults only if default SvxFontHeight item is not available const SfxPoolItem* pPoolItem = pItemPool->GetPoolDefaultItem( EE_CHAR_FONTHEIGHT ); if ( pPoolItem ) - nDefTextHgt = static_cast<const SvxFontHeightItem*>(pPoolItem)->GetHeight(); + mnDefTextHgt = static_cast<const SvxFontHeightItem*>(pPoolItem)->GetHeight(); else - nDefTextHgt = SdrEngineDefaults::GetFontHeight(); + mnDefTextHgt = SdrEngineDefaults::GetFontHeight(); pItemPool->SetPoolDefaultItem( makeSdrTextWordWrapItem( false ) ); @@ -689,10 +689,10 @@ SdrPage* SdrModel::AllocPage(bool bMasterPage) void SdrModel::SetTextDefaults() const { - SetTextDefaults( pItemPool, nDefTextHgt ); + SetTextDefaults( pItemPool, mnDefTextHgt ); } -void SdrModel::SetTextDefaults( SfxItemPool* pItemPool, sal_uIntPtr nDefTextHgt ) +void SdrModel::SetTextDefaults( SfxItemPool* pItemPool, sal_Int32 nDefTextHgt ) { // set application-language specific dynamic pool language defaults SvxFontItem aSvxFontItem( EE_CHAR_FONTINFO) ; @@ -889,10 +889,10 @@ void SdrModel::RefDeviceChanged() ImpReformatAllTextObjects(); } -void SdrModel::SetDefaultFontHeight(sal_uIntPtr nVal) +void SdrModel::SetDefaultFontHeight(sal_Int32 nVal) { - if (nVal!=nDefTextHgt) { - nDefTextHgt=nVal; + if (nVal!=mnDefTextHgt) { + mnDefTextHgt=nVal; Broadcast(SdrHint(SdrHintKind::DefaultFontHeightChange)); ImpReformatAllTextObjects(); } diff --git a/svx/source/svdraw/svdtext.cxx b/svx/source/svdraw/svdtext.cxx index 1b7c81b037ec..48621a84560d 100644 --- a/svx/source/svdraw/svdtext.cxx +++ b/svx/source/svdraw/svdtext.cxx @@ -137,8 +137,8 @@ void SdrText::SetModel( SdrModel* pNewModel ) // Now move the OutlinerParaObject into a new Pool. // TODO: We should compare the DefTab and RefDevice of both Models to // see whether we need to use AutoGrow! - sal_uIntPtr nOldFontHgt=pOldModel->GetDefaultFontHeight(); - sal_uIntPtr nNewFontHgt=pNewModel->GetDefaultFontHeight(); + sal_Int32 nOldFontHgt=pOldModel->GetDefaultFontHeight(); + sal_Int32 nNewFontHgt=pNewModel->GetDefaultFontHeight(); bool bDefHgtChanged=nNewFontHgt!=nOldFontHgt; bool bSetHgtItem=bDefHgtChanged && !bHgtSet; if (bSetHgtItem) |