X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fchanges.h;h=1103bd2012fe204f962369d6fbb651c4c28513fa;hb=65ca7003ba47b7348610393a9a0d2d309b4e9702;hp=36a1266eb040ea4d62aeb2f03f309d70bc82678e;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/changes.h b/src/changes.h index 36a1266eb0..1103bd2012 100644 --- a/src/changes.h +++ b/src/changes.h @@ -19,9 +19,10 @@ #include #include -#include -struct Change { + +class Change { +public: /// the type of change enum Type { UNCHANGED, // no change @@ -88,14 +89,16 @@ public: /// output latex to mark a transition between two changetypes /// returns length of text outputted - static int latexMarkChange(std::ostream & os, Change::Type old, Change::Type change); + static int latexMarkChange(std::ostream & os, Change::Type old, + Change::Type change, bool const & output); /// output .lyx file format for transitions between changes static void lyxMarkChange(std::ostream & os, int & column, lyx::time_type curtime, Change const & old, Change const & change); private: - struct Range { + class Range { + public: Range(lyx::pos_type s, lyx::pos_type e) : start(s), end(e) {} @@ -121,7 +124,8 @@ private: friend bool operator==(Range const & r1, Range const & r2); friend bool operator!=(Range const & r1, Range const & r2); - struct ChangeRange { + class ChangeRange { + public: ChangeRange(lyx::pos_type s, lyx::pos_type e, Change c) : range(Range(s, e)), change(c) {} Range range;