diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-17 11:41:00 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-17 11:41:00 +0100 |
commit | 1b82d24e0944c56247a278f65c31e4259160fb49 (patch) | |
tree | 2224a6a268dc2f8eb7db7aad78d633f21e922920 /sd/source/ui/app/tmplctrl.cxx | |
parent | 4dc1c742bded628b25af7c518f405d6368636185 (diff) |
removetooltypes01: #i112600# Remove tools types from sd
Diffstat (limited to 'sd/source/ui/app/tmplctrl.cxx')
-rwxr-xr-x[-rw-r--r--] | sd/source/ui/app/tmplctrl.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx index 7ba048a0d..3a3e57cd9 100644..100755 --- a/sd/source/ui/app/tmplctrl.cxx +++ b/sd/source/ui/app/tmplctrl.cxx @@ -52,10 +52,10 @@ class TemplatePopup_Impl : public PopupMenu public: TemplatePopup_Impl(); - USHORT GetCurId() const { return nCurId; } + sal_uInt16 GetCurId() const { return nCurId; } private: - USHORT nCurId; + sal_uInt16 nCurId; virtual void Select(); }; @@ -77,8 +77,8 @@ void TemplatePopup_Impl::Select() // class SdTemplateControl ------------------------------------------ -SdTemplateControl::SdTemplateControl( USHORT _nSlotId, - USHORT _nId, +SdTemplateControl::SdTemplateControl( sal_uInt16 _nSlotId, + sal_uInt16 _nId, StatusBar& rStb ) : SfxStatusBarControl( _nSlotId, _nId, rStb ) { @@ -93,7 +93,7 @@ SdTemplateControl::~SdTemplateControl() // ----------------------------------------------------------------------- void SdTemplateControl::StateChanged( - USHORT /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) + sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { if( eState != SFX_ITEM_AVAILABLE || pState->ISA( SfxVoidItem ) ) GetStatusBar().SetItemText( GetId(), String() ); @@ -130,10 +130,10 @@ void SdTemplateControl::Command( const CommandEvent& rCEvt ) CaptureMouse(); TemplatePopup_Impl aPop; { - const USHORT nMasterCount = pDoc->GetMasterSdPageCount(PK_STANDARD); + const sal_uInt16 nMasterCount = pDoc->GetMasterSdPageCount(PK_STANDARD); - USHORT nCount = 0; - for( USHORT nPage = 0; nPage < nMasterCount; ++nPage ) + sal_uInt16 nCount = 0; + for( sal_uInt16 nPage = 0; nPage < nMasterCount; ++nPage ) { SdPage* pMaster = pDoc->GetMasterSdPage(nPage, PK_STANDARD); if( pMaster ) @@ -141,7 +141,7 @@ void SdTemplateControl::Command( const CommandEvent& rCEvt ) } aPop.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel()); - USHORT nCurrId = aPop.GetCurId()-1; + sal_uInt16 nCurrId = aPop.GetCurId()-1; if( nCurrId < nMasterCount ) { SdPage* pMaster = pDoc->GetMasterSdPage(nCurrId, PK_STANDARD); |