diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 18:57:32 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-12 18:57:32 -0600 |
commit | 9cd038e5b89c978ea24ba7efa7c3152801190455 (patch) | |
tree | 7d938fd9373eb827095787955e2feffca942b8fd /svx/source/svdraw | |
parent | e65c0fe553a9d1b85dcacfff7af9df8231427876 (diff) |
fix mis-merge all-around.
Diffstat (limited to 'svx/source/svdraw')
-rwxr-xr-x | svx/source/svdraw/svdattr.cxx | 2 | ||||
-rwxr-xr-x | svx/source/svdraw/svdedtv2.cxx | 8 | ||||
-rwxr-xr-x | svx/source/svdraw/svdmodel.cxx | 2 | ||||
-rwxr-xr-x | svx/source/svdraw/svdograf.cxx | 3 | ||||
-rwxr-xr-x | svx/source/svdraw/svdopath.cxx | 2 | ||||
-rwxr-xr-x | svx/source/svdraw/svdotext.cxx | 18 | ||||
-rwxr-xr-x | svx/source/svdraw/svdview.cxx | 2 |
7 files changed, 19 insertions, 18 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index dcab84f3de01..1e38fb7167ca 100755 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -2215,7 +2215,7 @@ SfxPoolItem* SdrGrafInvertItem::Clone( SfxItemPool* /*pPool*/) const return new SdrGrafInvertItem( *this ); } -SfxPoolItem* SdrGrafInvertItem::Create( SvStream& rIn, USHORT /*nVer*/) const +SfxPoolItem* SdrGrafInvertItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const { return new SdrGrafInvertItem( rIn ); } diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index 4d002d1ba888..a27d1d1b4a4f 100755 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -828,7 +828,7 @@ void SdrEditView::DistributeMarkedObjects() SvxDistributeVertical eVer = pDlg->GetDistributeVer(); ImpDistributeEntryList aEntryList; ImpDistributeEntryList::iterator itEntryList; - UINT32 nFullLength; + sal_uInt32 nFullLength; const bool bUndo = IsUndoEnabled(); if( bUndo ) @@ -875,7 +875,8 @@ void SdrEditView::DistributeMarkedObjects() for ( itEntryList = aEntryList.begin(); itEntryList < aEntryList.end() && (*itEntryList)->mnPos < pNew->mnPos; - ++itEntryList ); + ++itEntryList ) + {}; if ( itEntryList < aEntryList.end() ) aEntryList.insert( itEntryList, pNew ); else @@ -969,7 +970,8 @@ void SdrEditView::DistributeMarkedObjects() for ( itEntryList = aEntryList.begin(); itEntryList < aEntryList.end() && (*itEntryList)->mnPos < pNew->mnPos; - ++itEntryList ); + ++itEntryList ) + {}; if ( itEntryList < aEntryList.end() ) aEntryList.insert( itEntryList, pNew ); else diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 6d93c2e771b3..0aa0febe0da4 100755 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -477,7 +477,7 @@ bool SdrModel::Undo() bool SdrModel::Redo() { - bool bRet=FALSE; + bool bRet = false; if( mpImpl->mpUndoManager ) { OSL_FAIL("svx::SdrModel::Redo(), method not supported with application undo manager!"); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 96c93b38b0aa..1d8e36c9abfc 100755 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -72,7 +72,6 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> #include <osl/thread.hxx> -#include <vos/mutex.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::io; @@ -201,7 +200,7 @@ void SAL_CALL SdrGraphicUpdater::run(void) { Graphic aGraphic( ImpLoadLinkedGraphic( mrFileName, mrFilterName ) ); ::osl::MutexGuard aGuard(maMutex); - vos::OGuard aSolarGuard( Application::GetSolarMutex() ); + SolarMutexGuard aSolarGuard; if ( !mbIsTerminated ) { mrGraphicLink.DataChanged( aGraphic ); diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index 3ae99e5dd63d..65db1d27db58 100755 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -1425,7 +1425,7 @@ bool ImpPathForDragAndCreate::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) if (rStat.GetPointAnz()>=2) eCmd=SDRCREATE_FORCEEND; bRet = eCmd==SDRCREATE_FORCEEND; if (bRet) { - mbCreating = FALSE; + mbCreating = sal_False; delete pU; rStat.SetUser(NULL); } diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 0ea30bc54ad4..198beaecab93 100755 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1436,8 +1436,8 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, // line-breaking text that we need some more samples // loop early-exits if we detect an already attained value - USHORT nMinStretchX=0, nMinStretchY=0; - USHORT aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0}; + sal_uInt16 nMinStretchX=0, nMinStretchY=0; + sal_uInt16 aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0}; const size_t aStretchArySize=sizeof(aOldStretchXVals)/sizeof(*aOldStretchXVals); for(unsigned int i=0; i<aStretchArySize; ++i) { @@ -1448,7 +1448,7 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, else fFactor = double(rTextSize.Height())/aCurrTextSize.Height(); - USHORT nCurrStretchX, nCurrStretchY; + sal_uInt16 nCurrStretchX, nCurrStretchY; rOutliner.GetGlobalCharStretching(nCurrStretchX, nCurrStretchY); if (fFactor >= 1.0 ) @@ -1465,17 +1465,17 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, if (fFactor < 1.0 || (fFactor >= 1.0 && nCurrStretchX != 100)) { - nCurrStretchX = sal::static_int_cast<USHORT>(nCurrStretchX*fFactor); - nCurrStretchY = sal::static_int_cast<USHORT>(nCurrStretchY*fFactor); - rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nCurrStretchX), - std::min(USHORT(100),nCurrStretchY)); + nCurrStretchX = sal::static_int_cast<sal_uInt16>(nCurrStretchX*fFactor); + nCurrStretchY = sal::static_int_cast<sal_uInt16>(nCurrStretchY*fFactor); + rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nCurrStretchX), + std::min(sal_uInt16(100),nCurrStretchY)); OSL_TRACE("SdrTextObj::onEditOutlinerStatusEvent(): zoom is %d", nCurrStretchX); } } OSL_TRACE("---- SdrTextObj::onEditOutlinerStatusEvent(): final zoom is %d ----", nMinStretchX); - rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nMinStretchX), - std::min(USHORT(100),nMinStretchY)); + rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nMinStretchX), + std::min(sal_uInt16(100),nMinStretchY)); } void SdrTextObj::SetupOutlinerFormatting( SdrOutliner& rOutl, Rectangle& rPaintRect ) const diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index e77265155642..a28ca620205f 100755 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -501,7 +501,7 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co Point aTemporaryTextRelativePosition(aLocalLogicPosition - aTextRect.TopLeft()); // FitToSize berueksichtigen - BOOL bFitToSize(pTextObj->IsFitToSize()); + bool bFitToSize(pTextObj->IsFitToSize()); if (bFitToSize) { Fraction aX(aTextRect.GetWidth()-1,aAnchor.GetWidth()-1); Fraction aY(aTextRect.GetHeight()-1,aAnchor.GetHeight()-1); |