diff options
Diffstat (limited to 'sd/source/ui/slidesorter/model/SlideSorterModel.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/model/SlideSorterModel.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx index d0fdf848f06f..27cb286cbd8f 100644 --- a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx +++ b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -186,7 +186,7 @@ SharedPageDescriptor SlideSorterModel::GetPageDescriptor ( sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSlide) const { ::osl::MutexGuard aGuard (maMutex); - + // First try to guess the right index. Reference<beans::XPropertySet> xSet (rxSlide, UNO_QUERY); if (xSet.is()) @@ -216,7 +216,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli for (sal_Int32 nIndex=0; nIndex<nCount; ++nIndex) { SharedPageDescriptor pDescriptor (maPageDescriptors[nIndex]); - + // Make sure that the descriptor exists. Without it the given slide // can not be found. if (pDescriptor.get() == NULL) @@ -224,7 +224,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli // Call GetPageDescriptor() to create the missing descriptor. pDescriptor = GetPageDescriptor(nIndex,true); } - + if (pDescriptor->GetXDrawPage() == rxSlide) return nIndex; } @@ -307,7 +307,7 @@ void SlideSorterModel::SetPageObjectFactory( -const controller::PageObjectFactory& +const controller::PageObjectFactory& SlideSorterModel::GetPageObjectFactory (void) const { ::osl::MutexGuard aGuard (maMutex); |