diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2011-01-14 17:22:33 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2011-01-14 17:22:33 +0100 |
commit | 351f811977224b7ef0cd10256d02f43b1ad19324 (patch) | |
tree | 0fa15e08d3b2039dfe875e1d2ec68ce7e1de5c2b /desktop/source/migration | |
parent | 9233ec54a1708a98aa19c7b2f607c128f228539f (diff) |
removetooltypes01: #i112600# remove tooltypes from desktop
Diffstat (limited to 'desktop/source/migration')
-rw-r--r-- | desktop/source/migration/pages.cxx | 18 | ||||
-rw-r--r-- | desktop/source/migration/pages.hxx | 8 | ||||
-rw-r--r-- | desktop/source/migration/services/oo3extensionmigration.cxx | 4 | ||||
-rwxr-xr-x | desktop/source/migration/services/wordbookmigration.cxx | 2 | ||||
-rw-r--r-- | desktop/source/migration/wizard.cxx | 4 | ||||
-rw-r--r-- | desktop/source/migration/wizard.hxx | 2 |
6 files changed, 19 insertions, 19 deletions
diff --git a/desktop/source/migration/pages.cxx b/desktop/source/migration/pages.cxx index 53ec488c2082..c8164d498e41 100644 --- a/desktop/source/migration/pages.cxx +++ b/desktop/source/migration/pages.cxx @@ -225,7 +225,7 @@ IMPL_LINK( LicensePage, PageDownHdl, PushButton *, EMPTYARG ) IMPL_LINK( LicensePage, EndReachedHdl, LicenseView *, EMPTYARG ) { - m_bLicenseRead = TRUE; + m_bLicenseRead = sal_True; updateDialogTravelUI(); return 0; } @@ -259,20 +259,20 @@ void LicenseView::ScrollDown( ScrollType eScroll ) pScroll->DoScrollAction( eScroll ); } -BOOL LicenseView::IsEndReached() const +sal_Bool LicenseView::IsEndReached() const { - BOOL bEndReached; + sal_Bool bEndReached; ExtTextView* pView = GetTextView(); ExtTextEngine* pEdit = GetTextEngine(); - ULONG nHeight = pEdit->GetTextHeight(); + sal_uLong nHeight = pEdit->GetTextHeight(); Size aOutSize = pView->GetWindow()->GetOutputSizePixel(); Point aBottom( 0, aOutSize.Height() ); - if ( (ULONG) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 ) - bEndReached = TRUE; + if ( (sal_uLong) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 ) + bEndReached = sal_True; else - bEndReached = FALSE; + bEndReached = sal_False; return bEndReached; } @@ -281,8 +281,8 @@ void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint ) { if ( rHint.IsA( TYPE(TextHint) ) ) { - BOOL bLastVal = EndReached(); - ULONG nId = ((const TextHint&)rHint).GetId(); + sal_Bool bLastVal = EndReached(); + sal_uLong nId = ((const TextHint&)rHint).GetId(); if ( nId == TEXT_HINT_PARAINSERTED ) { diff --git a/desktop/source/migration/pages.hxx b/desktop/source/migration/pages.hxx index 776268eb475c..4981f68bbaa0 100644 --- a/desktop/source/migration/pages.hxx +++ b/desktop/source/migration/pages.hxx @@ -66,7 +66,7 @@ protected: class LicenseView : public MultiLineEdit, public SfxListener { - BOOL mbEndReached; + sal_Bool mbEndReached; Link maEndReachedHdl; Link maScrolledHdl; @@ -76,9 +76,9 @@ public: void ScrollDown( ScrollType eScroll ); - BOOL IsEndReached() const; - BOOL EndReached() const { return mbEndReached; } - void SetEndReached( BOOL bEnd ) { mbEndReached = bEnd; } + sal_Bool IsEndReached() const; + sal_Bool EndReached() const { return mbEndReached; } + void SetEndReached( sal_Bool bEnd ) { mbEndReached = bEnd; } void SetEndReachedHdl( const Link& rHdl ) { maEndReachedHdl = rHdl; } const Link& GetAutocompleteHdl() const { return maEndReachedHdl; } diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index 3e9836fa2e84..8bb9e82f3810 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -292,7 +292,7 @@ bool OO3ExtensionMigration::scanDescriptionXml( const ::rtl::OUString& sDescript utl::TextSearch ts(param, LANGUAGE_DONTKNOW); xub_StrLen start = 0; - xub_StrLen end = static_cast<USHORT>(aExtIdentifier.getLength()); + xub_StrLen end = static_cast<sal_uInt16>(aExtIdentifier.getLength()); if (ts.SearchFrwrd(aExtIdentifier, &start, &end)) return false; } @@ -317,7 +317,7 @@ bool OO3ExtensionMigration::scanDescriptionXml( const ::rtl::OUString& sDescript utl::TextSearch ts(param, LANGUAGE_DONTKNOW); xub_StrLen start = 0; - xub_StrLen end = static_cast<USHORT>(sDescriptionXmlURL.getLength()); + xub_StrLen end = static_cast<sal_uInt16>(sDescriptionXmlURL.getLength()); if (ts.SearchFrwrd(sDescriptionXmlURL, &start, &end)) return false; } diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx index 1ac8f38dca56..fb73a905db6b 100755 --- a/desktop/source/migration/services/wordbookmigration.cxx +++ b/desktop/source/migration/services/wordbookmigration.cxx @@ -176,7 +176,7 @@ bool IsUserWordbook( const ::rtl::OUString& rFile ) bRet = true; else { - USHORT nLen; + sal_uInt16 nLen; pStream->Seek (nSniffPos); *pStream >> nLen; if ( nLen < MAX_HEADER_LENGTH ) diff --git a/desktop/source/migration/wizard.cxx b/desktop/source/migration/wizard.cxx index 5cc90577aaff..3a4a0069967f 100644 --- a/desktop/source/migration/wizard.cxx +++ b/desktop/source/migration/wizard.cxx @@ -112,7 +112,7 @@ static sal_Int32 getBuildId() return nBuildId; } -WizardResId::WizardResId( USHORT nId ) : +WizardResId::WizardResId( sal_uInt16 nId ) : ResId( nId, *FirstStartWizard::GetResManager() ) { } @@ -280,7 +280,7 @@ long FirstStartWizard::PreNotify( NotifyEvent& rNEvt ) { const KeyCode& rKey = rNEvt.GetKeyEvent()->GetKeyCode(); if( rKey.GetCode() == KEY_F1 && ! rKey.GetModifier() ) - return TRUE; + return sal_True; } return RoadmapWizard::PreNotify(rNEvt); } diff --git a/desktop/source/migration/wizard.hxx b/desktop/source/migration/wizard.hxx index 3317880f8bd6..7e97f7d8e30e 100644 --- a/desktop/source/migration/wizard.hxx +++ b/desktop/source/migration/wizard.hxx @@ -40,7 +40,7 @@ namespace desktop class WizardResId : public ResId { public: - WizardResId( USHORT nId ); + WizardResId( sal_uInt16 nId ); }; class FirstStartWizard : public svt::RoadmapWizard |