Exemplo n.º 1
0
 /// <ToBeCompleted></ToBeCompleted>
 public virtual void SaveFields(IRepositoryWriter writer, int version)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteInt32(shapePropertyId);
     writer.WriteInt32(modelPropertyId);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(gluePointPos.X);
     writer.WriteInt32(gluePointPos.Y);
     if (version >= 3)
     {
         writer.WriteBool(maintainOrientation);
     }
 }
Exemplo n.º 4
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)SupplementalLayers);
     writer.WriteInt32(_angle);
     if (version >= 5)
     {
         writer.WriteString(_data);
     }
 }
Exemplo n.º 5
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     writer.WriteFloat(intercept);
     writer.WriteFloat(slope);
 }
Exemplo n.º 6
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.º 7
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.º 8
0
 /// <ToBeCompleted></ToBeCompleted>
 public void SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version)
 {
     if (propertyName == null)
     {
         throw new ArgumentNullException("propertyName");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (propertyName == "ConnectionPointMappings")
     {
         // Save ConnectionPoint mappings
         writer.BeginWriteInnerObjects();
         foreach (KeyValuePair <ControlPointId, TerminalId> item in connectionPointMappings)
         {
             writer.BeginWriteInnerObject();
             writer.WriteInt32((int)item.Key);
             writer.WriteInt32((int)item.Value);
             writer.EndWriteInnerObject();
         }
         writer.EndWriteInnerObjects();
     }
 }
Exemplo n.º 9
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(shapePoints[0].X);
     writer.WriteInt32(shapePoints[0].Y);
     writer.WriteInt32(shapePoints[1].X);
     writer.WriteInt32(shapePoints[1].Y);
     writer.WriteInt32(shapePoints[2].X);
     writer.WriteInt32(shapePoints[2].Y);
 }
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
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(shapePoints[0].X);
     writer.WriteInt32(shapePoints[0].Y);
     writer.WriteInt32(shapePoints[1].X);
     writer.WriteInt32(shapePoints[1].Y);
     writer.WriteInt32(shapePoints[2].X);
     writer.WriteInt32(shapePoints[2].Y);
 }
Exemplo n.º 12
0
 /// <ToBeCompleted></ToBeCompleted>
 public virtual void SaveFields(IRepositoryWriter writer, int version)
 {
     if (writer == null) throw new ArgumentNullException("writer");
     writer.WriteInt32(shapePropertyId);
     writer.WriteInt32(modelPropertyId);
 }
Exemplo n.º 13
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     writer.WriteFloat(intercept);
     writer.WriteFloat(slope);
 }
Exemplo n.º 14
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);
		}
Exemplo n.º 15
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.º 16
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);
		}
Exemplo n.º 17
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version) {
			base.SaveFieldsCore(writer, version);
			writer.WriteInt32(internalDiameter);
		}
Exemplo n.º 18
0
		/// <ToBeCompleted></ToBeCompleted>
		public void SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version) {
			if (propertyName == null) throw new ArgumentNullException("propertyName");
			if (writer == null) throw new ArgumentNullException("writer");
			if (propertyName == "ConnectionPointMappings") {
				// Save ConnectionPoint mappings
				writer.BeginWriteInnerObjects();
				foreach (ControlPointId pointId in Shape.GetControlPointIds(ControlPointCapabilities.Connect)) {
					TerminalId terminalId = GetMappedTerminalId(pointId);
					writer.BeginWriteInnerObject();
					writer.WriteInt32(pointId);
					writer.WriteInt32((int)terminalId);
					writer.EndWriteInnerObject();
				}
				writer.EndWriteInnerObjects();
			}
		}
 /// <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.º 20
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(HeadWidth);
     writer.WriteInt32(BodyHeight);
 }
Exemplo n.º 21
0
 /// <ToBeCompleted></ToBeCompleted>
 public void SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version)
 {
     if (propertyName == null) throw new ArgumentNullException("propertyName");
     if (writer == null) throw new ArgumentNullException("writer");
     if (propertyName == "ConnectionPointMappings") {
         // Save ConnectionPoint mappings
         writer.BeginWriteInnerObjects();
         foreach (KeyValuePair<ControlPointId, TerminalId> item in connectionPointMappings) {
             writer.BeginWriteInnerObject();
             writer.WriteInt32((int)item.Key);
             writer.WriteInt32((int)item.Value);
             writer.EndWriteInnerObject();
         }
         writer.EndWriteInnerObjects();
     }
 }
Exemplo n.º 22
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteFloat(diameter);
     writer.WriteInt32(VertexCount);
 }
Exemplo n.º 23
0
 private void WriteStyle(IRepositoryWriter writer, IStyle style)
 {
     writer.WriteInt32((int)GetMappedStyleType(style));
     writer.WriteStyle(style);
 }
Exemplo n.º 24
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(_internalDiameter);
 }
Exemplo n.º 25
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     WriteStyle(writer, defaultStyle);
 }
Exemplo n.º 26
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version) {
			base.SaveFieldsCore(writer, version);
			writer.WriteInt32(gluePointPos.X);
			writer.WriteInt32(gluePointPos.Y);
			if (version > 2) writer.WriteBool(maintainOrientation);
		}
Exemplo n.º 27
0
		/// <override></override>
		protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
		{
			base.SaveFieldsCore(writer, version);
			writer.WriteInt32(Width);
			writer.WriteInt32(Height);
		}
Exemplo n.º 28
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     writer.WriteString(format);
 }
Exemplo n.º 29
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteStyle(ColumnBackgroundColorStyle);
     writer.WriteStyle(ColumnCharacterStyle);
     writer.WriteStyle(ColumnParagraphStyle);
     writer.WriteInt32(ColumnNames.Length);
 }
Exemplo n.º 30
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.º 31
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(Angle);
     writer.WriteStyle(privateFillStyle);
 }
Exemplo n.º 32
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.º 33
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteFloat(diameter);
     writer.WriteInt32(VertexCount);
 }
Exemplo n.º 34
0
 /// <override></override>
 public override void SaveFields(IRepositoryWriter writer, int version)
 {
     base.SaveFields(writer, version);
     writer.WriteInt32((int)mappingType);
     WriteStyle(writer, defaultStyle);
 }
Exemplo n.º 35
0
 /// <override></override>
 protected override void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     base.SaveFieldsCore(writer, version);
     writer.WriteInt32(Angle);
     writer.WriteStyle(privateFillStyle);
 }
Exemplo n.º 36
0
 private void WriteStyle(IRepositoryWriter writer, IStyle style)
 {
     writer.WriteInt32((int)GetMappedStyleType(style));
     writer.WriteStyle(style);
 }