X-Git-Url: http://deadsoftware.ru/gitweb?p=odcread.git;a=blobdiff_plain;f=fold.cc;h=5cdbbb46ec12e89c40c4d1be530c937f5505e7e8;hp=4be4081d8b3fd1d479b4c8fad85d7ab35be14138;hb=519462238ad20b1aca242075e3fe8c0d0719b3d4;hpb=5abab2c54b3da53cc9d64cbf0f369fc7486d194c diff --git a/fold.cc b/fold.cc index 4be4081..5cdbbb4 100644 --- a/fold.cc +++ b/fold.cc @@ -26,7 +26,7 @@ void View::internalize(Reader &reader) { reader.readVersion(0, 0); } -const std::string Fold::TYPENAME("Folds.Fold^"); +const std::string Fold::TYPENAME("StdFolds.Fold^"); const TypeProxy Fold::PROXY; Fold::Fold(INTEGER id) : View(id) {} @@ -44,15 +44,19 @@ const std::string &Fold::getTypeName() const { } void Fold::internalize(Reader &reader) { - Store::internalize(reader); + View::internalize(reader); if (reader.isCancelled()) return; reader.readVersion(0, 0); if (reader.isCancelled()) return; - reader.readSInt(); // FIXME IMPLEMENT // rd.ReadXInt(xint);fold.leftSide := xint = 0; + reader.readSInt(); // rd.ReadXInt(xint); fold.collapsed := xint = 0; + reader.readSInt(); // rd.ReadXString(fold.label); + SHORTCHAR label[32]; + reader.readSString(label); // the label // rd.ReadStore(store); + reader.readStore(); // the hidden part // IF store # NIL THEN fold.hidden := store(TextModels.Model); Stores.Join(fold.hidden, fold) // ELSE fold.hidden := NIL // END;