Esempio n. 1
0
 public ClearObjectCommand(Document document, IStream stream, eTypeObjectCollection typeCollection, int index)
     : base(document)
 {
     _oldObject = stream[typeCollection][index];
     _newObject = stream.GetNewObject(typeCollection, index);
     _newObject.CorrectionSequence(this);
 }
Esempio n. 2
0
 public SetObjectCommand(Document document, IStream stream, eTypeObjectCollection typeCollection, int index, string text)
     : base(document)
 {
     _oldObject = stream[typeCollection][index];
     _newObject = stream.GetObject(typeCollection, index, text);
     _newObject.CorrectionSequence(this);
     if (_newObject.Type != eTypeObjectStream.Default && typeCollection == eTypeObjectCollection._1D && stream.EventCount == index + 1)
     {
         Add(new InsertColumnCommand(document, index + 1));
     }
 }
Esempio n. 3
0
 public SetObjectCommand(Document document, IStream element, eTypeObjectCollection typeCollection, int index, eTypeObjectStream typeObject, object data = null)
     : base(document)
 {
     _oldObject = element[typeCollection][index];
     _newObject = element.GetObject(typeCollection, index, typeObject, data);
     _newObject.CorrectionSequence(this);
     if (_newObject.Type != eTypeObjectStream.Default && typeCollection == eTypeObjectCollection._1D && element.EventCount == index + 1)
     {
         Add(new InsertColumnCommand(document, index + 1));
     }
 }