X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FUpdateFlags.h;h=d092e74b3e4b92981ee7951ac976391949924407;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=3c8da08853bcc74a74c466f814e9b495bd81afb4;hpb=37e164c6f9e792e51ceac0ad58885ee5b3758330;p=lyx.git diff --git a/src/UpdateFlags.h b/src/UpdateFlags.h index 3c8da08853..d092e74b3e 100644 --- a/src/UpdateFlags.h +++ b/src/UpdateFlags.h @@ -1,28 +1,40 @@ -#ifndef UPDATE_FLAGS_H -#define UPDATE_FLAGS_H - -namespace lyx { - -namespace Update { - enum flags { - None = 0, - FitCursor = 1, - Force = 2, - SinglePar = 4, - MultiParSel = 8 - }; - -inline flags operator|(flags const f, flags const g) -{ - return static_cast(int(f) | int(g)); -} - -inline flags operator&(flags const f, flags const g) -{ - return static_cast(int(f) & int(g)); -} - -} // namespace - -} // namespace lyx -#endif +// -*- C++ -*- +/** + * \file UpdateFlags.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author The Denmark Cowboys + * + * Full author contact details are available in file CREDITS. + */ + +#ifndef UPDATE_FLAGS_H +#define UPDATE_FLAGS_H + +namespace lyx { + +namespace Update { + enum flags { + None = 0, + FitCursor = 1, + Force = 2, + SinglePar = 4, + MultiParSel = 8, + Decoration = 16 + }; + +inline flags operator|(flags const f, flags const g) +{ + return static_cast(int(f) | int(g)); +} + +inline flags operator&(flags const f, flags const g) +{ + return static_cast(int(f) & int(g)); +} + +} // namespace + +} // namespace lyx +#endif