X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FOutputParams.h;h=65b4fc266f83975822775666a0cccf6d14ee4f00;hb=2abde5d16254e8aac29e344442b09e6272000f13;hp=64ab2f3cf02278f3416e56ed1a3181996616d5e0;hpb=c2229d388b622a65029d0566f5eca53b43d92528;p=lyx.git diff --git a/src/OutputParams.h b/src/OutputParams.h index 64ab2f3cf0..65b4fc266f 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -433,7 +433,12 @@ public: SearchNonOutput = 8 }; - int for_search = 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; @@ -446,6 +451,8 @@ public: /// A postponed \\noindent (after VSpace) mutable bool need_noindent = false; +private: + int for_search = NoSearch; };