Outliner.hxx (cdf0e10c) Outliner.hxx (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 *

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

30
31#include <svx/svdobj.hxx>
32#include <svx/svdoutl.hxx>
33#include "pres.hxx"
34#include "OutlinerIterator.hxx"
35#include <editeng/SpellPortions.hxx>
36#include <memory>
37#include <boost/shared_ptr.hpp>
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 *

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

30
31#include <svx/svdobj.hxx>
32#include <svx/svdoutl.hxx>
33#include "pres.hxx"
34#include "OutlinerIterator.hxx"
35#include <editeng/SpellPortions.hxx>
36#include <memory>
37#include <boost/shared_ptr.hpp>
38#include <boost/weak_ptr.hpp>
39#include <boost/noncopyable.hpp>
38
39class Dialog;
40class SdPage;
41class SdrObject;
42class SdrTextObj;
43class SdDrawDocument;
44class SfxStyleSheetPool;
45class SdrObjListIter;

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

99 <type>SvxSearchItem</type>.</li>
100 <li>The <member>HasSelection()</member> view shell method that returns
101 whether or not a selection exists. However, it is called from the
102 search dialog with an argument so that only text selections are
103 queried. This is only sufficient for searching the outline view.
104 </p>
105*/
106class Outliner
40
41class Dialog;
42class SdPage;
43class SdrObject;
44class SdrTextObj;
45class SdDrawDocument;
46class SfxStyleSheetPool;
47class SdrObjListIter;

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

101 <type>SvxSearchItem</type>.</li>
102 <li>The <member>HasSelection()</member> view shell method that returns
103 whether or not a selection exists. However, it is called from the
104 search dialog with an argument so that only text selections are
105 queried. This is only sufficient for searching the outline view.
106 </p>
107*/
108class Outliner
107 : public SdrOutliner
109 : public SdrOutliner,
110 public ::boost::noncopyable
108{
109public:
110 friend class ::sd::outliner::OutlinerContainer;
111
112 /** Create a new sd outliner object.
113 @param pDoc
114 The draw document from which to take the content.
115 @param nMode

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

188 ::std::auto_ptr<Implementation> mpImpl;
189
190 /// Specifies whether to search and replace, to spell check or to do a
191 /// text conversion.
192 enum mode {SEARCH, SPELL, TEXT_CONVERSION} meMode;
193
194 /// The view which displays the searched objects.
195 ::sd::View* mpView;
111{
112public:
113 friend class ::sd::outliner::OutlinerContainer;
114
115 /** Create a new sd outliner object.
116 @param pDoc
117 The draw document from which to take the content.
118 @param nMode

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

191 ::std::auto_ptr<Implementation> mpImpl;
192
193 /// Specifies whether to search and replace, to spell check or to do a
194 /// text conversion.
195 enum mode {SEARCH, SPELL, TEXT_CONVERSION} meMode;
196
197 /// The view which displays the searched objects.
198 ::sd::View* mpView;
196 /// The view shell containing the view.
197 ::boost::shared_ptr<ViewShell> mpViewShell;
199 /** The view shell containing the view. It is held as weak
200 pointer to avoid keeping it alive when the view is changed
201 during searching.
202 */
203 ::boost::weak_ptr<ViewShell> mpWeakViewShell;
198 /// This window contains the view.
199 ::sd::Window* mpWindow;
200 /// The document on whose objects and pages this class operates.
201 SdDrawDocument* mpDrawDocument;
202
203 /** this is the language that is used for current text conversion.
204 Only valid if meMode is TEXT_CONVERSION.
205 */

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

341 */
342 bool mbWholeDocumentProcessed;
343
344 /** When this flag is true then a PrepareSpelling() is executed when
345 StartSearchAndReplace() is called the next time.
346 */
347 bool mbPrepareSpellingPending;
348
204 /// This window contains the view.
205 ::sd::Window* mpWindow;
206 /// The document on whose objects and pages this class operates.
207 SdDrawDocument* mpDrawDocument;
208
209 /** this is the language that is used for current text conversion.
210 Only valid if meMode is TEXT_CONVERSION.
211 */

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

347 */
348 bool mbWholeDocumentProcessed;
349
350 /** When this flag is true then a PrepareSpelling() is executed when
351 StartSearchAndReplace() is called the next time.
352 */
353 bool mbPrepareSpellingPending;
354
349 /** In this flag we store whether the view shell is valid and may be
350 accessed.
351 */
352 bool mbViewShellValid;
353
354 /** Initialize the object iterator. Call this method after being
355 invoked from the search or spellcheck dialog. It creates a new
356 iterator pointing at the current object when this has not been done
357 before. It reverses the direction of iteration if the given flag
358 differs from the current direction.
359 @param bDirectionIsForward
360 This flag specifies in which direction to iterator over the
361 objects. If it differs from the current direction the iterator

--- 192 unchanged lines hidden ---
355 /** Initialize the object iterator. Call this method after being
356 invoked from the search or spellcheck dialog. It creates a new
357 iterator pointing at the current object when this has not been done
358 before. It reverses the direction of iteration if the given flag
359 differs from the current direction.
360 @param bDirectionIsForward
361 This flag specifies in which direction to iterator over the
362 objects. If it differs from the current direction the iterator

--- 192 unchanged lines hidden ---