]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
FindAdv: Allow regex searches at start of paragraph
[lyx.git] / src / lyxfind.h
index bfaae8f43d96d6bfdda818cabdda8637eafd7fdc..deb31b294e3ddb27c36c62cf17f96e1c2427545a 100644 (file)
 
 namespace lyx {
 
-
-
-class Buffer;
 class Cursor;
 class BufferView;
 class DocIterator;
 class FuncRequest;
-class Text;
 
 /** Encode the parameters needed to find \c search as a string
  *  that can be dispatched to the LyX core in a FuncRequest wrapper.
@@ -109,6 +105,7 @@ public:
        bool casesensitive;
        bool matchword;
        bool forward;
+       bool matchstart;
        bool expandmacros;
        bool ignoreformat;
        /// This is docstring() if no replace was requested
@@ -129,7 +126,7 @@ std::ostringstream & operator<<(std::ostringstream & os, lyx::FindAndReplaceOpti
 std::istringstream & operator>>(std::istringstream & is, lyx::FindAndReplaceOptions & opt);
 
 /// Perform a FindAdv operation.
-bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt);
+bool findAdv(BufferView * bv, FindAndReplaceOptions & opt);
 
 /** Computes the simple-text or LaTeX export (depending on opt) of buf starting
  ** from cur and ending len positions after cur, if len is positive, or at the