OutlinerIterator.cxx (cdf0e10c) OutlinerIterator.cxx (967189ef)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 186 unchanged lines hidden (view full) ---

195{
196 // Decide on certain features of the outliner which kind of iterator to
197 // use.
198 if (mpOutliner->mbRestrictSearchToSelection)
199 // There is a selection. Search only in this.
200 return CreateSelectionIterator (
201 mpOutliner->maMarkListCopy,
202 mpOutliner->mpDrawDocument,
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 186 unchanged lines hidden (view full) ---

195{
196 // Decide on certain features of the outliner which kind of iterator to
197 // use.
198 if (mpOutliner->mbRestrictSearchToSelection)
199 // There is a selection. Search only in this.
200 return CreateSelectionIterator (
201 mpOutliner->maMarkListCopy,
202 mpOutliner->mpDrawDocument,
203 mpOutliner->mpViewShell,
203 mpOutliner->mpWeakViewShell.lock(),
204 mpOutliner->mbDirectionIsForward,
205 aLocation);
206 else
207 // Search in the whole document.
208 return CreateDocumentIterator (
209 mpOutliner->mpDrawDocument,
204 mpOutliner->mbDirectionIsForward,
205 aLocation);
206 else
207 // Search in the whole document.
208 return CreateDocumentIterator (
209 mpOutliner->mpDrawDocument,
210 mpOutliner->mpViewShell,
210 mpOutliner->mpWeakViewShell.lock(),
211 mpOutliner->mbDirectionIsForward,
212 aLocation);
213}
214
215Iterator OutlinerContainer::CreateSelectionIterator (
216 const ::std::vector<SdrObjectWeakRef>& rObjectList,
217 SdDrawDocument* pDocument,
218 const ::boost::shared_ptr<ViewShell>& rpViewShell,

--- 680 unchanged lines hidden ---
211 mpOutliner->mbDirectionIsForward,
212 aLocation);
213}
214
215Iterator OutlinerContainer::CreateSelectionIterator (
216 const ::std::vector<SdrObjectWeakRef>& rObjectList,
217 SdDrawDocument* pDocument,
218 const ::boost::shared_ptr<ViewShell>& rpViewShell,

--- 680 unchanged lines hidden ---