diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-12-12 18:19:51 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-12-12 18:19:51 +0000 |
commit | 6ed37f6803f63cde3884f7e81eee2236b1c96dae (patch) | |
tree | 81eb517fc15124350d88e2ce69361409d477db41 /sd | |
parent | b1a010435b77e5175b9b51a160f72e210ebde4c7 (diff) |
INTEGRATION: CWS sdwarningsbegone (1.5.38); FILE MERGED
2006/11/22 12:42:30 cl 1.5.38.1: #i69285# warning free code changes for unxlngi6.pro
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdruler.cxx | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/sd/source/ui/view/sdruler.cxx b/sd/source/ui/view/sdruler.cxx index 40e9f48667eb..7a802b800d57 100644 --- a/sd/source/ui/view/sdruler.cxx +++ b/sd/source/ui/view/sdruler.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sdruler.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: obo $ $Date: 2006-09-16 19:42:12 $ + * last change: $Author: kz $ $Date: 2006-12-12 19:19:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -89,10 +89,9 @@ class RulerCtrlItem : public SfxControllerItem |* \************************************************************************/ -RulerCtrlItem::RulerCtrlItem(USHORT nId, Ruler& rRlr, - SfxBindings& rBind) : - SfxControllerItem(nId, rBind), - rRuler(rRlr) +RulerCtrlItem::RulerCtrlItem(USHORT _nId, Ruler& rRlr, SfxBindings& rBind) +: SfxControllerItem(_nId, rBind) +, rRuler(rRlr) { } @@ -101,14 +100,13 @@ RulerCtrlItem::RulerCtrlItem(USHORT nId, Ruler& rRlr, |* \************************************************************************/ -void RulerCtrlItem::StateChanged( USHORT nSId, - SfxItemState eState, const SfxPoolItem* pState ) +void RulerCtrlItem::StateChanged( USHORT nSId, SfxItemState, const SfxPoolItem* pState ) { switch( nSId ) { case SID_RULER_NULL_OFFSET: { - const SfxPointItem* pItem = PTR_CAST(SfxPointItem, pState); + const SfxPointItem* pItem = dynamic_cast< const SfxPointItem* >(pState); DBG_ASSERT(pState ? pItem != NULL : TRUE, "SfxPointItem erwartet"); if ( pItem ) rRuler.SetNullOffset(pItem->GetValue()); @@ -124,16 +122,10 @@ void RulerCtrlItem::StateChanged( USHORT nSId, |* \************************************************************************/ -Ruler::Ruler ( - DrawViewShell& rViewSh, - ::Window* pParent, - ::sd::Window* pWin, - USHORT nRulerFlags, - SfxBindings& rBindings, - WinBits nWinStyle) - : SvxRuler(pParent, pWin, nRulerFlags, rBindings, nWinStyle), - pDrViewShell(&rViewSh), - pSdWin(pWin) +Ruler::Ruler( DrawViewShell& rViewSh, ::Window* pParent, ::sd::Window* pWin, USHORT nRulerFlags, SfxBindings& rBindings, WinBits nWinStyle) +: SvxRuler(pParent, pWin, nRulerFlags, rBindings, nWinStyle) +, pSdWin(pWin) +, pDrViewShell(&rViewSh) { rBindings.EnterRegistrations(); pCtrlItem = new RulerCtrlItem(SID_RULER_NULL_OFFSET, *this, rBindings); |