Exemplo n.º 1
0
 /// <ToBeCompleted></ToBeCompleted>
 public void SaveFields(IRepositoryWriter writer, int version)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteString(_name);
     // See comment in GetPropertyDefinitions()
     writer.WriteString(_title);
     writer.WriteString(_description);
 }
Exemplo n.º 2
0
 /// <ToBeCompleted></ToBeCompleted>
 public void SaveFields(IRepositoryWriter writer, int version)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteString(name);
     if (version >= 3)
     {
         writer.WriteString(title);
     }
     writer.WriteString(description);
 }
Exemplo n.º 3
0
 void IEntity.SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version)
 {
     Project.AssertSupportedVersion(true, version);
     writer.BeginWriteInnerObjects();
     foreach (LibraryData ld in libraries)
     {
         writer.BeginWriteInnerObject();
         writer.WriteString(ld.Name);
         writer.WriteString(ld.AssemblyName);
         writer.WriteInt32(ld.RepositoryVersion);
         writer.EndWriteInnerObject();
     }
     writer.EndWriteInnerObjects();
 }
Exemplo n.º 4
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(integerValue);
     writer.WriteFloat(floatValue);
     writer.WriteString(stringValue);
 }
Exemplo n.º 5
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version) {
			base.SaveFieldsCore(writer, version);
			// ILabel members
			writer.WriteStyle(privateCharacterStyle);
			writer.WriteStyle(privateParagraphStyle);
			writer.WriteString(Text);
		}
Exemplo n.º 6
0
 /// <ToBeCompleted></ToBeCompleted>
 protected virtual void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     writer.WriteString(name);
     if (version >= 4)
     {
         writer.WriteChar(SecurityDomainName);
     }
 }
Exemplo n.º 7
0
 void IEntity.SaveFields(IRepositoryWriter writer, int version)
 {
     writer.WriteDate(DateTime.Now);
     if (version >= 5)
     {
         writer.WriteString(description);
     }
 }
Exemplo n.º 8
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     // Do the actual writing
     writer.WriteTemplate(template);
     writer.WriteInt32(X);
     writer.WriteInt32(Y);
     writer.WriteInt32(ZOrder);
     writer.WriteInt32((int)Layers);
     writer.WriteInt32(angle);
     if (version >= 5)
     {
         writer.WriteString(data);
     }
 }
Exemplo n.º 9
0
 /// <ToBeCompleted></ToBeCompleted>
 protected virtual void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     writer.WriteString(name);
 }
Exemplo n.º 10
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     writer.WriteString(format);
 }
Exemplo n.º 11
0
		/// <ToBeCompleted></ToBeCompleted>
		public void SaveFields(IRepositoryWriter writer, int version) {
			if (writer == null) throw new ArgumentNullException("writer");
			writer.WriteString(name);
			if (version > 2) writer.WriteString(title);
			writer.WriteString(description);
		}
Exemplo n.º 12
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
		{
			base.SaveFieldsCore(writer, version);
			// ILabel members
			writer.WriteStyle(privateCharacterStyle);
			writer.WriteStyle(privateParagraphStyle);
			writer.WriteString(Text);
		}
Exemplo n.º 13
0
 void IEntity.SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version)
 {
     Debug.Assert(propertyName == "Layers");
     writer.BeginWriteInnerObjects();
     foreach (Layer l in layers) {
         writer.BeginWriteInnerObject();
         writer.WriteInt32((int)l.Id);
         writer.WriteString(l.Name);
         writer.WriteString(l.Title);
         writer.WriteInt32(l.LowerZoomThreshold);
         writer.WriteInt32(l.UpperZoomThreshold);
         writer.EndWriteInnerObject();
     }
     writer.EndWriteInnerObjects();
 }
Exemplo n.º 14
0
 void IEntity.SaveFields(IRepositoryWriter writer, int version)
 {
     writer.WriteString(name);
     if (version >= 3) writer.WriteString(title);
     if (version >= 4) writer.WriteChar(securityDomainName);
     writer.WriteInt32(size.Width);
     writer.WriteInt32(size.Height);
     writer.WriteInt32(BackgroundColor.ToArgb());
     writer.WriteInt32(BackgroundGradientColor.ToArgb());
     if (NamedImage.IsNullOrEmpty(backImage)) {
         writer.WriteString(string.Empty);
         writer.WriteImage(null);
     } else {
         writer.WriteString(backImage.Name);
         object imgTag = backImage.Image.Tag;
         backImage.Image.Tag = backImage.Name;
         writer.WriteImage(backImage.Image);
         backImage.Image.Tag = imgTag;
     }
     writer.WriteByte((byte)imageLayout);
     writer.WriteFloat(imageGamma);
     writer.WriteByte(imageTransparency);
     writer.WriteBool(imageGrayScale);
     writer.WriteInt32(imageTransparentColor.ToArgb());
 }
Exemplo n.º 15
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     writer.WriteString(format);
 }
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteByte((byte)imageLayout);
     writer.WriteByte(imageTransparency);
     writer.WriteFloat(imageGamma);
     writer.WriteByte(compressionQuality);
     writer.WriteBool(imageGrayScale);
     if (NamedImage.IsNullOrEmpty(image)) {
         writer.WriteString(string.Empty);
         writer.WriteImage(null);
     } else {
         writer.WriteString(image.Name);
         object imgTag = image.Image.Tag;
         image.Image.Tag = image.Name;
         writer.WriteImage(image.Image);
         image.Image.Tag = imgTag;
     }
     writer.WriteInt32(transparentColor.ToArgb());
 }
Exemplo n.º 17
0
 /// <override></override>
 protected override void SaveInnerObjectsCore(string propertyName, IRepositoryWriter writer, int version)
 {
     if (propertyName == attrNameColumns) {
         writer.BeginWriteInnerObjects();
         int cnt = CaptionCount;
         for (int i = 1; i < cnt; ++i) {	// Skip first caption (title)
             writer.BeginWriteInnerObject();
             writer.WriteInt32(i - 1);
             writer.WriteString(GetCaptionText(i));
             writer.EndWriteInnerObject();
         }
         writer.EndWriteInnerObjects();
     } else base.SaveInnerObjectsCore(propertyName, writer, version);
 }
Exemplo n.º 18
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
		{
			base.SaveFieldsCore(writer, version);
			writer.WriteStyle(fillStyle);
			writer.WriteStyle(charStyle);
			writer.WriteStyle(ParagraphStyle);

			writer.WriteString(Text);
			writer.WriteInt32(w);
			writer.WriteInt32(h);
		}