X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=fold.h;h=79ee7354cc7c0c005f30f859ab5799240e83c101;hb=2466c23751f131a07432df964658c2de90315e7b;hp=e53e06d08ce1ee65d41128610b8101d6126f21cf;hpb=cf035fa1849a5e65c0d636ce2718bc2c85994680;p=odcread.git diff --git a/fold.h b/fold.h index e53e06d..79ee735 100644 --- a/fold.h +++ b/fold.h @@ -1,5 +1,5 @@ -#ifndef _TEXTMODEL_H_ -#define _TEXTMODEL_H_ +#ifndef _FOLD_H_ +#define _FOLD_H_ #include #include @@ -9,36 +9,35 @@ namespace odc { class View : public Store { private: - static const std::string TYPENAME; - static const TypeProxy PROXY; + static const TypeProxy PROXY; public: - View(INTEGER id); - static const std::string &getType(); - static const std::string *getSuper(); + static const std::string TYPENAME; virtual const std::string &getTypeName() const; + + View(INTEGER id); virtual void internalize(Reader &reader); }; class Fold : public View { private: - static const std::string TYPENAME; - static const TypeProxy PROXY; + static const TypeProxy PROXY; Store *d_hidden; SHORTCHAR *d_label; + bool d_collapsed; public: - Fold(INTEGER id); - static const std::string &getType(); - static const std::string *getSuper(); + static const std::string TYPENAME; virtual const std::string &getTypeName() const; + + Fold(INTEGER id); virtual void internalize(Reader &reader); virtual std::string toString(); - virtual std::string toPlainText(); + virtual void accept(Visitor &visitor) const; }; } -#endif +#endif // _FOLD_H_