]> git.lyx.org Git - lyx.git/blobdiff - src/OutputParams.h
inputenc only expects one option
[lyx.git] / src / OutputParams.h
index d00ec02d88a5d2cee665ddbb41dbec82546bd4b5..65b4fc266f83975822775666a0cccf6d14ee4f00 100644 (file)
@@ -429,10 +429,16 @@ public:
                NoSearch = 0,
                SearchWithDeleted = 1,
                SearchWithoutDeleted = 2,
+               SearchQuick = 4,
                SearchNonOutput = 8
        };
                
-       int for_searchAdv = NoSearch;
+       inline bool find_effective(void) const { return (for_search != OutputParams::NoSearch); }
+       inline bool find_with_non_output() const { return ((for_search & OutputParams::SearchNonOutput) != 0); }
+       inline bool find_with_deleted() const { return ((for_search & OutputParams::SearchWithDeleted) != 0); }
+       inline void find_set_feature(enum Search set_) { for_search = set_; }
+       inline void find_add_feature(enum Search add_) { for_search |= add_; }
+       inline void find_clean_features(void) { for_search = OutputParams::NoSearch; }
 
        /// Are we generating this material for instant preview?
        bool for_preview = false;
@@ -445,6 +451,8 @@ public:
 
        /// A postponed \\noindent (after VSpace)
        mutable bool need_noindent = false;
+private:
+       int for_search = NoSearch;
 };