Пример #1
0
		public void  placeObject23(PlaceObject tag)
		{
			if (tag.hasCharID())
			{
				if (tag.ref_Renamed.name != null)
				{
					indent();
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("<!-- instance of " + tag.ref_Renamed.name + " -->");
				}
			}
			
			open(tag);
			if (tag.hasClassName())
				out_Renamed.Write(" className='" + tag.className + "'");
			if (tag.hasImage())
				out_Renamed.Write(" hasImage='true' ");
			if (tag.hasCharID())
				out_Renamed.Write(" idref='" + idRef(tag.ref_Renamed) + "'");
			if (tag.hasName())
				out_Renamed.Write(" name='" + tag.name + "'");
			out_Renamed.Write(" depth='" + tag.depth + "'");
			if (tag.hasClipDepth())
				out_Renamed.Write(" clipDepth='" + tag.clipDepth + "'");
			if (tag.hasRatio())
				out_Renamed.Write(" ratio='" + tag.ratio + "'");
			if (tag.hasCxform())
			{
				out_Renamed.Write(" cxform='" + tag.colorTransform + "'");
			}
			if (tag.hasMatrix())
			{
				out_Renamed.Write(" matrix='" + tag.matrix + "'");
			}
			if (tag.hasBlendMode())
				out_Renamed.Write(" blendmode='" + tag.blendMode + "'");
			if (tag.hasFilterList())
			{
				// todo - pretty print this once we actually care
				out_Renamed.Write(" filters='");
				//UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
				for (System.Collections.IEnumerator it = tag.filters.GetEnumerator(); it.MoveNext(); )
				{
					//UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
					out_Renamed.Write((((Filter) it.Current).getID()) + " ");
				}
				out_Renamed.Write("'");
			}
			
			if (tag.hasClipAction())
			{
				end();
				System.Collections.IEnumerator it = tag.clipActions.clipActionRecords.GetEnumerator();
				
				openCDATA();
				//UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
				while (it.MoveNext())
				{
					//UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
					ClipActionRecord record = (ClipActionRecord) it.Current;
					indent();
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("onClipEvent(" + printClipEventFlags(record.eventFlags) + (record.hasKeyPress()?"<" + record.keyCode + ">":"") + ") {");
					indent_Renamed_Field++;
					if (showActions)
					{
						printActions(record.actionList);
					}
					else
					{
						indent();
						//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
						out_Renamed.WriteLine("// " + record.actionList.size() + " action(s) elided");
					}
					indent_Renamed_Field--;
					indent();
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("}");
				}
				closeCDATA();
				close(tag);
			}
			else
			{
				close();
			}
		}