]> git.lyx.org Git - lyx.git/blobdiff - src/update_flags.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / update_flags.h
index dbbcdc98ba3dd7482cb30a7c7e6dca512938d770..af71c0e78d5f8452fbfb8647fcd853036e68fd92 100644 (file)
@@ -21,13 +21,12 @@ namespace Update {
                /// Recenter the screen around the cursor if is found outside the
                /// visible area.
                FitCursor = 1,
-               /// Force a full screen metrics update.
+               /// Force a full screen metrics update and a full draw.
                Force = 2,
+               /// Force a full redraw (but no metrics computations)
+               ForceDraw = 4,
                /// Try to rebreak only the current paragraph metrics.
-               SinglePar = 4,
-               /// Indicate a selection that spans multiple paragraphs.
-               /// FIXME: get rid of this.
-               MultiParSel = 8,
+               SinglePar = 8,
                /// Only the inset decorations need to be redrawn, no text metrics
                /// update is needed.
                Decoration = 16
@@ -43,7 +42,12 @@ inline flags operator&(flags const f, flags const g)
        return static_cast<flags>(int(f) & int(g));
 }
 
-} // namespace
+inline flags operator~(flags const f)
+{
+       return static_cast<flags>(~int(f));
+}
+
+} // namespace Update
 
 } // namespace lyx
 #endif