예제 #1
0
 public PageLayoutCellsReader()
 {
     this.AvenueSizeX     = this.query.AddCell(SrcConstants.PageLayoutAvenueSizeX, nameof(SrcConstants.PageLayoutAvenueSizeX));
     this.AvenueSizeY     = this.query.AddCell(SrcConstants.PageLayoutAvenueSizeY, nameof(SrcConstants.PageLayoutAvenueSizeY));
     this.BlockSizeX      = this.query.AddCell(SrcConstants.PageLayoutBlockSizeX, nameof(SrcConstants.PageLayoutBlockSizeX));
     this.BlockSizeY      = this.query.AddCell(SrcConstants.PageLayoutBlockSizeY, nameof(SrcConstants.PageLayoutBlockSizeY));
     this.ControlAsInput  = this.query.AddCell(SrcConstants.PageLayoutControlAsInput, nameof(SrcConstants.PageLayoutControlAsInput));
     this.DynamicsOff     = this.query.AddCell(SrcConstants.PageLayoutDynamicsOff, nameof(SrcConstants.PageLayoutDynamicsOff));
     this.EnableGrid      = this.query.AddCell(SrcConstants.PageLayoutEnableGrid, nameof(SrcConstants.PageLayoutEnableGrid));
     this.LineAdjustFrom  = this.query.AddCell(SrcConstants.PageLayoutLineAdjustFrom, nameof(SrcConstants.PageLayoutLineAdjustFrom));
     this.LineAdjustTo    = this.query.AddCell(SrcConstants.PageLayoutLineAdjustTo, nameof(SrcConstants.PageLayoutLineAdjustTo));
     this.LineJumpCode    = this.query.AddCell(SrcConstants.PageLayoutLineJumpCode, nameof(SrcConstants.PageLayoutLineJumpCode));
     this.LineJumpFactorX = this.query.AddCell(SrcConstants.PageLayoutLineJumpFactorX, nameof(SrcConstants.PageLayoutLineJumpFactorX));
     this.LineJumpFactorY = this.query.AddCell(SrcConstants.PageLayoutLineJumpFactorY, nameof(SrcConstants.PageLayoutLineJumpFactorY));
     this.LineJumpStyle   = this.query.AddCell(SrcConstants.PageLayoutLineJumpStyle, nameof(SrcConstants.PageLayoutLineJumpStyle));
     this.LineRouteExt    = this.query.AddCell(SrcConstants.PageLayoutLineRouteExt, nameof(SrcConstants.PageLayoutLineRouteExt));
     this.LineToLineX     = this.query.AddCell(SrcConstants.PageLayoutLineToLineX, nameof(SrcConstants.PageLayoutLineToLineX));
     this.LineToLineY     = this.query.AddCell(SrcConstants.PageLayoutLineToLineY, nameof(SrcConstants.PageLayoutLineToLineY));
     this.LineToNodeX     = this.query.AddCell(SrcConstants.PageLayoutLineToNodeX, nameof(SrcConstants.PageLayoutLineToNodeX));
     this.LineToNodeY     = this.query.AddCell(SrcConstants.PageLayoutLineToNodeY, nameof(SrcConstants.PageLayoutLineToNodeY));
     this.LineJumpDirX    = this.query.AddCell(SrcConstants.PageLayoutLineJumpDirX, nameof(SrcConstants.PageLayoutLineJumpDirX));
     this.LineJumpDirY    = this.query.AddCell(SrcConstants.PageLayoutLineJumpDirY, nameof(SrcConstants.PageLayoutLineJumpDirY));
     this.ShapeSplit      = this.query.AddCell(SrcConstants.PageLayoutShapeSplit, nameof(SrcConstants.PageLayoutShapeSplit));
     this.PlaceDepth      = this.query.AddCell(SrcConstants.PageLayoutPlaceDepth, nameof(SrcConstants.PageLayoutPlaceDepth));
     this.PlaceFlip       = this.query.AddCell(SrcConstants.PageLayoutPlaceFlip, nameof(SrcConstants.PageLayoutPlaceFlip));
     this.PlaceStyle      = this.query.AddCell(SrcConstants.PageLayoutPlaceStyle, nameof(SrcConstants.PageLayoutPlaceStyle));
     this.PlowCode        = this.query.AddCell(SrcConstants.PageLayoutPlowCode, nameof(SrcConstants.PageLayoutPlowCode));
     this.ResizePage      = this.query.AddCell(SrcConstants.PageLayoutResizePage, nameof(SrcConstants.PageLayoutResizePage));
     this.RouteStyle      = this.query.AddCell(SrcConstants.PageLayoutRouteStyle, nameof(SrcConstants.PageLayoutRouteStyle));
     this.AvoidPageBreaks = this.query.AddCell(SrcConstants.PageLayoutAvoidPageBreaks, nameof(SrcConstants.PageLayoutAvoidPageBreaks));
 }
예제 #2
0
        private static void Main(string[] args)
        {
            var inputValues = new List <ISimpleCell>();

            CellColumn workerCells;
            var        results = new float[3] {
                (float)0.5,
                0,
                0
            };

            inputValues.Add(new SimpleCell((float)0.5));
            inputValues.Add(new SimpleCell((float)0));
            inputValues.Add(new SimpleCell((float)-0.5));

            workerCells = new CellColumn(6, inputValues);
            var expectedResults = new CellColumn(3, workerCells.Cells, results);
            var resultsColumn   = new CellColumn(3, workerCells.Cells);

            for (int i = 0; i < 20; i++)
            {
                workerCells.UpdateValues();
                resultsColumn.UpdateValues();

                PrintNetwork(i, inputValues, workerCells, expectedResults, resultsColumn);

                expectedResults.UpdateAncestorWeights();
                workerCells.UpdateAncestorWeights();
            }

            Console.ReadKey();
        }
예제 #3
0
        public static void PrintNetwork(int index,
                                        List <ISimpleCell> inputValues,
                                        CellColumn workerCells,
                                        CellColumn expectedResultCells,
                                        CellColumn resultCells)
        {
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine($"Generation {index}");

            foreach (var cell in inputValues)
            {
                Console.Write($"{cell.Value} ");
            }

            Console.WriteLine();

            foreach (var cell in workerCells.Cells)
            {
                Console.Write($"{cell.Value} ");
            }

            Console.WriteLine();

            foreach (var cell in resultCells.Cells)
            {
                Console.Write($"{cell.Value} ");
            }
            Console.WriteLine();

            foreach (var cell in expectedResultCells.Cells)
            {
                Console.Write($"{cell.Value} ");
            }
        }
예제 #4
0
        public static List <ShapeXFormData> Get(Microsoft.Office.Interop.Visio.Page page, TargetShapeIDs target)
        {
            if (query == null)
            {
                query      = new CellQuery();
                ColPinX    = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormPinX, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormPinX));
                ColPinY    = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormPinY, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormPinY));
                ColLocPinX = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormLocPinX, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormLocPinX));
                ColLocPinY = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormLocPinY, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormLocPinY));
                ColWidth   = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormWidth, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormWidth));
                ColHeight  = query.Columns.Add(VisioAutomation.ShapeSheet.SrcConstants.XFormHeight, nameof(VisioAutomation.ShapeSheet.SrcConstants.XFormHeight));
            }

            var results = query.GetResults <double>(page, target.ShapeIDs);

            if (results.Count != target.ShapeIDs.Count)
            {
                throw new VisioAutomation.Exceptions.InternalAssertionException("Didn't get as many rows back as expected");
            }
            var list = new List <ShapeXFormData>(target.ShapeIDs.Count);

            foreach (var row in results)
            {
                var xform = new ShapeXFormData();
                xform.PinX    = row.Cells[ColPinX];
                xform.PinY    = row.Cells[ColPinY];
                xform.LocPinX = row.Cells[ColLocPinX];
                xform.LocPinY = row.Cells[ColLocPinY];
                xform.Width   = row.Cells[ColWidth];
                xform.Height  = row.Cells[ColHeight];
                list.Add(xform);
            }
            return(list);
        }
예제 #5
0
 public ShapeFormatCellsReader()
 {
     this.FillBackground             = this.query.AddCell(SrcConstants.FillBackground, nameof(SrcConstants.FillBackground));
     this.FillBackgroundTransparency = this.query.AddCell(SrcConstants.FillBackgroundTransparency, nameof(SrcConstants.FillBackgroundTransparency));
     this.FillForeground             = this.query.AddCell(SrcConstants.FillForeground, nameof(SrcConstants.FillForeground));
     this.FillForegroundTransparency = this.query.AddCell(SrcConstants.FillForegroundTransparency, nameof(SrcConstants.FillForegroundTransparency));
     this.FillPattern                      = this.query.AddCell(SrcConstants.FillPattern, nameof(SrcConstants.FillPattern));
     this.FillShadowObliqueAngle           = this.query.AddCell(SrcConstants.FillShadowObliqueAngle, nameof(SrcConstants.FillShadowObliqueAngle));
     this.FillShadowOffsetX                = this.query.AddCell(SrcConstants.FillShadowOffsetX, nameof(SrcConstants.FillShadowOffsetX));
     this.FillShadowOffsetY                = this.query.AddCell(SrcConstants.FillShadowOffsetY, nameof(SrcConstants.FillShadowOffsetY));
     this.FillShadowScaleFactor            = this.query.AddCell(SrcConstants.FillShadowScaleFactor, nameof(SrcConstants.FillShadowScaleFactor));
     this.FillShadowType                   = this.query.AddCell(SrcConstants.FillShadowType, nameof(SrcConstants.FillShadowType));
     this.FillShadowBackground             = this.query.AddCell(SrcConstants.FillShadowBackground, nameof(SrcConstants.FillShadowBackground));
     this.FillShadowBackgroundTransparency = this.query.AddCell(SrcConstants.FillShadowBackgroundTransparency, nameof(SrcConstants.FillShadowBackgroundTransparency));
     this.FillShadowForeground             = this.query.AddCell(SrcConstants.FillShadowForeground, nameof(SrcConstants.FillShadowForeground));
     this.FillShadowForegroundTransparency = this.query.AddCell(SrcConstants.FillShadowForegroundTransparency, nameof(SrcConstants.FillShadowForegroundTransparency));
     this.FillShadowPattern                = this.query.AddCell(SrcConstants.FillShadowPattern, nameof(SrcConstants.FillShadowPattern));
     this.LineBeginArrow                   = this.query.AddCell(SrcConstants.LineBeginArrow, nameof(SrcConstants.LineBeginArrow));
     this.LineBeginArrowSize               = this.query.AddCell(SrcConstants.LineBeginArrowSize, nameof(SrcConstants.LineBeginArrowSize));
     this.LineEndArrow                     = this.query.AddCell(SrcConstants.LineEndArrow, nameof(SrcConstants.LineEndArrow));
     this.LineEndArrowSize                 = this.query.AddCell(SrcConstants.LineEndArrowSize, nameof(SrcConstants.LineEndArrowSize));
     this.LineColor      = this.query.AddCell(SrcConstants.LineColor, nameof(SrcConstants.LineColor));
     this.LineCap        = this.query.AddCell(SrcConstants.LineCap, nameof(SrcConstants.LineCap));
     this.LineColorTrans = this.query.AddCell(SrcConstants.LineColorTransparency, nameof(SrcConstants.LineColorTransparency));
     this.LinePattern    = this.query.AddCell(SrcConstants.LinePattern, nameof(SrcConstants.LinePattern));
     this.LineWeight     = this.query.AddCell(SrcConstants.LineWeight, nameof(SrcConstants.LineWeight));
     this.LineRounding   = this.query.AddCell(SrcConstants.LineRounding, nameof(SrcConstants.LineRounding));
 }
예제 #6
0
 public TextXFormCellsReader()
 {
     this.PinX    = this.query.Columns.Add(SrcConstants.TextXFormPinX, nameof(this.PinX));
     this.PinY    = this.query.Columns.Add(SrcConstants.TextXFormPinY, nameof(this.PinY));
     this.LocPinX = this.query.Columns.Add(SrcConstants.TextXFormLocPinX, nameof(this.LocPinX));
     this.LocPinY = this.query.Columns.Add(SrcConstants.TextXFormLocPinY, nameof(this.LocPinY));
     this.Width   = this.query.Columns.Add(SrcConstants.TextXFormWidth, nameof(this.Width));
     this.Height  = this.query.Columns.Add(SrcConstants.TextXFormHeight, nameof(this.Height));
     this.Angle   = this.query.Columns.Add(SrcConstants.TextXFormAngle, nameof(this.Angle));
 }
예제 #7
0
 public ShapeXFormCellsReader()
 {
     this.PinX    = this.query.AddCell(SrcConstants.XFormPinX, nameof(SrcConstants.XFormPinX));
     this.PinY    = this.query.AddCell(SrcConstants.XFormPinY, nameof(SrcConstants.XFormPinY));
     this.LocPinX = this.query.AddCell(SrcConstants.XFormLocPinX, nameof(SrcConstants.XFormLocPinX));
     this.LocPinY = this.query.AddCell(SrcConstants.XFormLocPinY, nameof(SrcConstants.XFormLocPinY));
     this.Width   = this.query.AddCell(SrcConstants.XFormWidth, nameof(SrcConstants.XFormWidth));
     this.Height  = this.query.AddCell(SrcConstants.XFormHeight, nameof(SrcConstants.XFormHeight));
     this.Angle   = this.query.AddCell(SrcConstants.XFormAngle, nameof(SrcConstants.XFormAngle));
 }
예제 #8
0
 public TextBlockCellsReader()
 {
     this.BottomMargin           = this.query.Columns.Add(SrcConstants.TextBlockBottomMargin, nameof(this.BottomMargin));
     this.LeftMargin             = this.query.Columns.Add(SrcConstants.TextBlockLeftMargin, nameof(this.LeftMargin));
     this.RightMargin            = this.query.Columns.Add(SrcConstants.TextBlockRightMargin, nameof(this.RightMargin));
     this.TopMargin              = this.query.Columns.Add(SrcConstants.TextBlockTopMargin, nameof(this.TopMargin));
     this.DefaultTabStop         = this.query.Columns.Add(SrcConstants.TextBlockDefaultTabStop, nameof(this.DefaultTabStop));
     this.Background             = this.query.Columns.Add(SrcConstants.TextBlockBackground, nameof(this.Background));
     this.BackgroundTransparency = this.query.Columns.Add(SrcConstants.TextBlockBackgroundTransparency, nameof(this.BackgroundTransparency));
     this.Direction              = this.query.Columns.Add(SrcConstants.TextBlockDirection, nameof(this.Direction));
     this.VerticalAlign          = this.query.Columns.Add(SrcConstants.TextBlockVerticalAlign, nameof(this.VerticalAlign));
 }
예제 #9
0
 public PageRulerAndGridCellsReader()
 {
     this.XGridDensity  = this.query.Columns.Add(SrcConstants.XGridDensity, nameof(this.XGridDensity));
     this.XGridOrigin   = this.query.Columns.Add(SrcConstants.XGridOrigin, nameof(this.XGridOrigin));
     this.XGridSpacing  = this.query.Columns.Add(SrcConstants.XGridSpacing, nameof(this.XGridSpacing));
     this.XRulerDensity = this.query.Columns.Add(SrcConstants.XRulerDensity, nameof(this.XRulerDensity));
     this.XRulerOrigin  = this.query.Columns.Add(SrcConstants.XRulerOrigin, nameof(this.XRulerOrigin));
     this.YGridDensity  = this.query.Columns.Add(SrcConstants.YGridDensity, nameof(this.YGridDensity));
     this.YGridOrigin   = this.query.Columns.Add(SrcConstants.YGridOrigin, nameof(this.YGridOrigin));
     this.YGridSpacing  = this.query.Columns.Add(SrcConstants.YGridSpacing, nameof(this.YGridSpacing));
     this.YRulerDensity = this.query.Columns.Add(SrcConstants.YRulerDensity, nameof(this.YRulerDensity));
     this.YRulerOrigin  = this.query.Columns.Add(SrcConstants.YRulerOrigin, nameof(this.YRulerOrigin));
 }
예제 #10
0
 public PageFormatCellsReader()
 {
     this.DrawingScale       = this.query.AddCell(SrcConstants.PageDrawingScale, nameof(SrcConstants.PageDrawingScale));
     this.DrawingScaleType   = this.query.AddCell(SrcConstants.PageDrawingScaleType, nameof(SrcConstants.PageDrawingScaleType));
     this.DrawingSizeType    = this.query.AddCell(SrcConstants.PageDrawingSizeType, nameof(SrcConstants.PageDrawingSizeType));
     this.InhibitSnap        = this.query.AddCell(SrcConstants.PageInhibitSnap, nameof(SrcConstants.PageInhibitSnap));
     this.Height             = this.query.AddCell(SrcConstants.PageHeight, nameof(SrcConstants.PageHeight));
     this.Scale              = this.query.AddCell(SrcConstants.PageScale, nameof(SrcConstants.PageScale));
     this.Width              = this.query.AddCell(SrcConstants.PageWidth, nameof(SrcConstants.PageWidth));
     this.ShadowObliqueAngle = this.query.AddCell(SrcConstants.PageShadowObliqueAngle, nameof(SrcConstants.PageShadowObliqueAngle));
     this.ShadowOffsetX      = this.query.AddCell(SrcConstants.PageShadowOffsetX, nameof(SrcConstants.PageShadowOffsetX));
     this.ShadowOffsetY      = this.query.AddCell(SrcConstants.PageShadowOffsetY, nameof(SrcConstants.PageShadowOffsetY));
     this.ShadowScaleFactor  = this.query.AddCell(SrcConstants.PageShadowScaleFactor, nameof(SrcConstants.PageShadowScaleFactor));
     this.ShadowType         = this.query.AddCell(SrcConstants.PageShadowType, nameof(SrcConstants.PageShadowType));
     this.UIVisibility       = this.query.AddCell(SrcConstants.PageUIVisibility, nameof(SrcConstants.PageUIVisibility));
     this.DrawingResizeType  = this.query.AddCell(SrcConstants.PageDrawingResizeType, nameof(SrcConstants.PageDrawingResizeType));
 }
예제 #11
0
 public PagePrintCellsReader()
 {
     this.LeftMargin      = this.query.AddCell(SrcConstants.PrintLeftMargin, nameof(SrcConstants.PrintLeftMargin));
     this.CenterX         = this.query.AddCell(SrcConstants.PrintCenterX, nameof(SrcConstants.PrintCenterX));
     this.CenterY         = this.query.AddCell(SrcConstants.PrintCenterY, nameof(SrcConstants.PrintCenterY));
     this.OnPage          = this.query.AddCell(SrcConstants.PrintOnPage, nameof(SrcConstants.PrintOnPage));
     this.BottomMargin    = this.query.AddCell(SrcConstants.PrintBottomMargin, nameof(SrcConstants.PrintBottomMargin));
     this.RightMargin     = this.query.AddCell(SrcConstants.PrintRightMargin, nameof(SrcConstants.PrintRightMargin));
     this.PagesX          = this.query.AddCell(SrcConstants.PrintPagesX, nameof(SrcConstants.PrintPagesX));
     this.PagesY          = this.query.AddCell(SrcConstants.PrintPagesY, nameof(SrcConstants.PrintPagesY));
     this.TopMargin       = this.query.AddCell(SrcConstants.PrintTopMargin, nameof(SrcConstants.PrintTopMargin));
     this.PaperKind       = this.query.AddCell(SrcConstants.PrintPaperKind, nameof(SrcConstants.PrintPaperKind));
     this.Grid            = this.query.AddCell(SrcConstants.PrintGrid, nameof(SrcConstants.PrintGrid));
     this.PageOrientation = this.query.AddCell(SrcConstants.PrintPageOrientation, nameof(SrcConstants.PrintPageOrientation));
     this.ScaleX          = this.query.AddCell(SrcConstants.PrintScaleX, nameof(SrcConstants.PrintScaleX));
     this.ScaleY          = this.query.AddCell(SrcConstants.PrintScaleY, nameof(SrcConstants.PrintScaleY));
     this.PaperSource     = this.query.AddCell(SrcConstants.PrintPaperSource, nameof(SrcConstants.PrintPaperSource));
 }
예제 #12
0
        protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state)
        {
            PropertyDescriptor property = context.DataContext.GetProperties()[ExcelCreate.GetExcelAppTag];
            Excel::Application excelApp = property.GetValue(context.DataContext) as Excel::Application;

            try
            {
                Int32             cellColumn = CellColumn.Get(context);
                Int32             cellRow    = CellRow.Get(context);
                string            cellName   = CellName.Get(context);
                string            sheetName  = SheetName.Get(context);
                Excel::_Worksheet sheet;

                if (sheetName == null)
                {
                    sheet = excelApp.ActiveSheet;
                }
                else
                {
                    sheet = excelApp.ActiveWorkbook.Sheets[sheetName];
                }
                object cellContent = null;
                if (cellName == null)
                {
                    cellContent = sheet.Cells[cellRow, cellColumn].Value2;
                }
                else
                {
                    cellContent = sheet.Range[cellName].Value2;
                }
                CellContent.Set(context, cellContent);

                System.Runtime.InteropServices.Marshal.ReleaseComObject(sheet);
                sheet = null;
                GC.Collect();
            }
            catch (Exception e)
            {
                SharedObject.Instance.Output(SharedObject.enOutputType.Error, "EXCEL获取单元格内容出错", e.Message);
                new CommonVariable().realaseProcessExit(excelApp);
            }
            m_Delegate = new runDelegate(Run);
            return(m_Delegate.BeginInvoke(callback, state));
        }
예제 #13
0
 public ShapeLayoutCellsReader()
 {
     this.ConnectorFixedCode  = this.query.AddCell(SrcConstants.ShapeLayoutConnectorFixedCode, nameof(SrcConstants.ShapeLayoutConnectorFixedCode));
     this.LineJumpCode        = this.query.AddCell(SrcConstants.ShapeLayoutLineJumpCode, nameof(SrcConstants.ShapeLayoutLineJumpCode));
     this.LineJumpDirX        = this.query.AddCell(SrcConstants.ShapeLayoutLineJumpDirX, nameof(SrcConstants.ShapeLayoutLineJumpDirX));
     this.LineJumpDirY        = this.query.AddCell(SrcConstants.ShapeLayoutLineJumpDirY, nameof(SrcConstants.ShapeLayoutLineJumpDirY));
     this.LineJumpStyle       = this.query.AddCell(SrcConstants.ShapeLayoutLineJumpStyle, nameof(SrcConstants.ShapeLayoutLineJumpStyle));
     this.LineRouteExt        = this.query.AddCell(SrcConstants.ShapeLayoutLineRouteExt, nameof(SrcConstants.ShapeLayoutLineRouteExt));
     this.ShapeFixedCode      = this.query.AddCell(SrcConstants.ShapeLayoutShapeFixedCode, nameof(SrcConstants.ShapeLayoutShapeFixedCode));
     this.ShapePermeablePlace = this.query.AddCell(SrcConstants.ShapeLayoutShapePermeablePlace, nameof(SrcConstants.ShapeLayoutShapePermeablePlace));
     this.ShapePermeableX     = this.query.AddCell(SrcConstants.ShapeLayoutShapePermeableX, nameof(SrcConstants.ShapeLayoutShapePermeableX));
     this.ShapePermeableY     = this.query.AddCell(SrcConstants.ShapeLayoutShapePermeableY, nameof(SrcConstants.ShapeLayoutShapePermeableY));
     this.ShapePlaceFlip      = this.query.AddCell(SrcConstants.ShapeLayoutShapePlaceFlip, nameof(SrcConstants.ShapeLayoutShapePlaceFlip));
     this.ShapePlaceStyle     = this.query.AddCell(SrcConstants.ShapeLayoutShapePlaceStyle, nameof(SrcConstants.ShapeLayoutShapePlaceStyle));
     this.ShapePlowCode       = this.query.AddCell(SrcConstants.ShapeLayoutShapePlowCode, nameof(SrcConstants.ShapeLayoutShapePlowCode));
     this.ShapeRouteStyle     = this.query.AddCell(SrcConstants.ShapeLayoutShapeRouteStyle, nameof(SrcConstants.ShapeLayoutShapeRouteStyle));
     this.ShapeSplit          = this.query.AddCell(SrcConstants.ShapeLayoutShapeSplit, nameof(SrcConstants.ShapeLayoutShapeSplit));
     this.ShapeSplittable     = this.query.AddCell(SrcConstants.ShapeLayoutShapeSplittable, nameof(SrcConstants.ShapeLayoutShapeSplittable));
     this.ShapeDisplayLevel   = this.query.AddCell(SrcConstants.ShapeLayoutShapeDisplayLevel, nameof(SrcConstants.ShapeLayoutShapeDisplayLevel));
     this.Relationships       = this.query.AddCell(SrcConstants.ShapeLayoutRelationships, nameof(SrcConstants.ShapeLayoutRelationships));
 }
예제 #14
0
 public LockCellsReader()
 {
     this.LockAspect          = this.query.AddCell(SrcConstants.LockAspect, nameof(SrcConstants.LockAspect));
     this.LockBegin           = this.query.AddCell(SrcConstants.LockBegin, nameof(SrcConstants.LockBegin));
     this.LockCalcWH          = this.query.AddCell(SrcConstants.LockCalcWH, nameof(SrcConstants.LockCalcWH));
     this.LockCrop            = this.query.AddCell(SrcConstants.LockCrop, nameof(SrcConstants.LockCrop));
     this.LockCustomProp      = this.query.AddCell(SrcConstants.LockCustomProp, nameof(SrcConstants.LockCustomProp));
     this.LockDelete          = this.query.AddCell(SrcConstants.LockDelete, nameof(SrcConstants.LockDelete));
     this.LockEnd             = this.query.AddCell(SrcConstants.LockEnd, nameof(SrcConstants.LockEnd));
     this.LockFormat          = this.query.AddCell(SrcConstants.LockFormat, nameof(SrcConstants.LockFormat));
     this.LockFromGroupFormat = this.query.AddCell(SrcConstants.LockFromGroupFormat, nameof(SrcConstants.LockFromGroupFormat));
     this.LockGroup           = this.query.AddCell(SrcConstants.LockGroup, nameof(SrcConstants.LockGroup));
     this.LockHeight          = this.query.AddCell(SrcConstants.LockHeight, nameof(SrcConstants.LockHeight));
     this.LockMoveX           = this.query.AddCell(SrcConstants.LockMoveX, nameof(SrcConstants.LockMoveX));
     this.LockMoveY           = this.query.AddCell(SrcConstants.LockMoveY, nameof(SrcConstants.LockMoveY));
     this.LockRotate          = this.query.AddCell(SrcConstants.LockRotate, nameof(SrcConstants.LockRotate));
     this.LockSelect          = this.query.AddCell(SrcConstants.LockSelect, nameof(SrcConstants.LockSelect));
     this.LockTextEdit        = this.query.AddCell(SrcConstants.LockTextEdit, nameof(SrcConstants.LockTextEdit));
     this.LockThemeColors     = this.query.AddCell(SrcConstants.LockThemeColors, nameof(SrcConstants.LockThemeColors));
     this.LockThemeEffects    = this.query.AddCell(SrcConstants.LockThemeEffects, nameof(SrcConstants.LockThemeEffects));
     this.LockVertexEdit      = this.query.AddCell(SrcConstants.LockVertexEdit, nameof(SrcConstants.LockVertexEdit));
     this.LockWidth           = this.query.AddCell(SrcConstants.LockWidth, nameof(SrcConstants.LockWidth));
 }
예제 #15
0
        public PageCellsReader()
        {
            this.PrintLeftMargin      = this.query.AddCell(SrcConstants.PrintLeftMargin, nameof(SrcConstants.PrintLeftMargin));
            this.PrintCenterX         = this.query.AddCell(SrcConstants.PrintCenterX, nameof(SrcConstants.PrintCenterX));
            this.PrintCenterY         = this.query.AddCell(SrcConstants.PrintCenterY, nameof(SrcConstants.PrintCenterY));
            this.PrintOnPage          = this.query.AddCell(SrcConstants.PrintOnPage, nameof(SrcConstants.PrintOnPage));
            this.PrintBottomMargin    = this.query.AddCell(SrcConstants.PrintBottomMargin, nameof(SrcConstants.PrintBottomMargin));
            this.PrintRightMargin     = this.query.AddCell(SrcConstants.PrintRightMargin, nameof(SrcConstants.PrintRightMargin));
            this.PrintPagesX          = this.query.AddCell(SrcConstants.PrintPagesX, nameof(SrcConstants.PrintPagesX));
            this.PrintPagesY          = this.query.AddCell(SrcConstants.PrintPagesY, nameof(SrcConstants.PrintPagesY));
            this.PrintTopMargin       = this.query.AddCell(SrcConstants.PrintTopMargin, nameof(SrcConstants.PrintTopMargin));
            this.PrintPaperKind       = this.query.AddCell(SrcConstants.PrintPaperKind, nameof(SrcConstants.PrintPaperKind));
            this.PrintGrid            = this.query.AddCell(SrcConstants.PrintGrid, nameof(SrcConstants.PrintGrid));
            this.PrintPageOrientation = this.query.AddCell(SrcConstants.PrintPageOrientation, nameof(SrcConstants.PrintPageOrientation));
            this.PrintScaleX          = this.query.AddCell(SrcConstants.PrintScaleX, nameof(SrcConstants.PrintScaleX));
            this.PrintScaleY          = this.query.AddCell(SrcConstants.PrintScaleY, nameof(SrcConstants.PrintScaleY));
            this.PrintPaperSource     = this.query.AddCell(SrcConstants.PrintPaperSource, nameof(SrcConstants.PrintPaperSource));

            this.PageDrawingScale       = this.query.AddCell(SrcConstants.PageDrawingScale, nameof(SrcConstants.PageDrawingScale));
            this.PageDrawingScaleType   = this.query.AddCell(SrcConstants.PageDrawingScaleType, nameof(SrcConstants.PageDrawingScaleType));
            this.PageDrawingSizeType    = this.query.AddCell(SrcConstants.PageDrawingSizeType, nameof(SrcConstants.PageDrawingSizeType));
            this.PageInhibitSnap        = this.query.AddCell(SrcConstants.PageInhibitSnap, nameof(SrcConstants.PageInhibitSnap));
            this.PageHeight             = this.query.AddCell(SrcConstants.PageHeight, nameof(SrcConstants.PageHeight));
            this.PageScale              = this.query.AddCell(SrcConstants.PageScale, nameof(SrcConstants.PageScale));
            this.PageWidth              = this.query.AddCell(SrcConstants.PageWidth, nameof(SrcConstants.PageWidth));
            this.PageShadowObliqueAngle = this.query.AddCell(SrcConstants.PageShadowObliqueAngle, nameof(SrcConstants.PageShadowObliqueAngle));
            this.PageShadowOffsetX      = this.query.AddCell(SrcConstants.PageShadowOffsetX, nameof(SrcConstants.PageShadowOffsetX));
            this.PageShadowOffsetY      = this.query.AddCell(SrcConstants.PageShadowOffsetY, nameof(SrcConstants.PageShadowOffsetY));
            this.PageShadowScaleFactor  = this.query.AddCell(SrcConstants.PageShadowScaleFactor, nameof(SrcConstants.PageShadowScaleFactor));
            this.PageShadowType         = this.query.AddCell(SrcConstants.PageShadowType, nameof(SrcConstants.PageShadowType));
            this.PageUIVisibility       = this.query.AddCell(SrcConstants.PageUIVisibility, nameof(SrcConstants.PageUIVisibility));
            this.PageDrawingResizeType  = this.query.AddCell(SrcConstants.PageDrawingResizeType, nameof(SrcConstants.PageDrawingResizeType));

            this.XGridDensity  = this.query.AddCell(SrcConstants.XGridDensity, nameof(SrcConstants.XGridDensity));
            this.XGridOrigin   = this.query.AddCell(SrcConstants.XGridOrigin, nameof(SrcConstants.XGridOrigin));
            this.XGridSpacing  = this.query.AddCell(SrcConstants.XGridSpacing, nameof(SrcConstants.XGridSpacing));
            this.XRulerDensity = this.query.AddCell(SrcConstants.XRulerDensity, nameof(SrcConstants.XRulerDensity));
            this.XRulerOrigin  = this.query.AddCell(SrcConstants.XRulerOrigin, nameof(SrcConstants.XRulerOrigin));
            this.YGridDensity  = this.query.AddCell(SrcConstants.YGridDensity, nameof(SrcConstants.YGridDensity));
            this.YGridOrigin   = this.query.AddCell(SrcConstants.YGridOrigin, nameof(SrcConstants.YGridOrigin));
            this.YGridSpacing  = this.query.AddCell(SrcConstants.YGridSpacing, nameof(SrcConstants.YGridSpacing));
            this.YRulerDensity = this.query.AddCell(SrcConstants.YRulerDensity, nameof(SrcConstants.YRulerDensity));
            this.YRulerOrigin  = this.query.AddCell(SrcConstants.YRulerOrigin, nameof(SrcConstants.YRulerOrigin));

            this.PageLayoutAvenueSizeX     = this.query.AddCell(SrcConstants.PageLayoutAvenueSizeX, nameof(SrcConstants.PageLayoutAvenueSizeX));
            this.PageLayoutAvenueSizeY     = this.query.AddCell(SrcConstants.PageLayoutAvenueSizeY, nameof(SrcConstants.PageLayoutAvenueSizeY));
            this.PageLayoutBlockSizeX      = this.query.AddCell(SrcConstants.PageLayoutBlockSizeX, nameof(SrcConstants.PageLayoutBlockSizeX));
            this.PageLayoutBlockSizeY      = this.query.AddCell(SrcConstants.PageLayoutBlockSizeY, nameof(SrcConstants.PageLayoutBlockSizeY));
            this.PageLayoutControlAsInput  = this.query.AddCell(SrcConstants.PageLayoutControlAsInput, nameof(SrcConstants.PageLayoutControlAsInput));
            this.PageLayoutDynamicsOff     = this.query.AddCell(SrcConstants.PageLayoutDynamicsOff, nameof(SrcConstants.PageLayoutDynamicsOff));
            this.PageLayoutEnableGrid      = this.query.AddCell(SrcConstants.PageLayoutEnableGrid, nameof(SrcConstants.PageLayoutEnableGrid));
            this.PageLayoutLineAdjustFrom  = this.query.AddCell(SrcConstants.PageLayoutLineAdjustFrom, nameof(SrcConstants.PageLayoutLineAdjustFrom));
            this.PageLayoutLineAdjustTo    = this.query.AddCell(SrcConstants.PageLayoutLineAdjustTo, nameof(SrcConstants.PageLayoutLineAdjustTo));
            this.PageLayoutLineJumpCode    = this.query.AddCell(SrcConstants.PageLayoutLineJumpCode, nameof(SrcConstants.PageLayoutLineJumpCode));
            this.PageLayoutLineJumpFactorX = this.query.AddCell(SrcConstants.PageLayoutLineJumpFactorX, nameof(SrcConstants.PageLayoutLineJumpFactorX));
            this.PageLayoutLineJumpFactorY = this.query.AddCell(SrcConstants.PageLayoutLineJumpFactorY, nameof(SrcConstants.PageLayoutLineJumpFactorY));
            this.PageLayoutLineJumpStyle   = this.query.AddCell(SrcConstants.PageLayoutLineJumpStyle, nameof(SrcConstants.PageLayoutLineJumpStyle));
            this.PageLayoutLineRouteExt    = this.query.AddCell(SrcConstants.PageLayoutLineRouteExt, nameof(SrcConstants.PageLayoutLineRouteExt));
            this.PageLayoutLineToLineX     = this.query.AddCell(SrcConstants.PageLayoutLineToLineX, nameof(SrcConstants.PageLayoutLineToLineX));
            this.PageLayoutLineToLineY     = this.query.AddCell(SrcConstants.PageLayoutLineToLineY, nameof(SrcConstants.PageLayoutLineToLineY));
            this.PageLayoutLineToNodeX     = this.query.AddCell(SrcConstants.PageLayoutLineToNodeX, nameof(SrcConstants.PageLayoutLineToNodeX));
            this.PageLayoutLineToNodeY     = this.query.AddCell(SrcConstants.PageLayoutLineToNodeY, nameof(SrcConstants.PageLayoutLineToNodeY));
            this.PageLayoutLineJumpDirX    = this.query.AddCell(SrcConstants.PageLayoutLineJumpDirX, nameof(SrcConstants.PageLayoutLineJumpDirX));
            this.PageLayoutLineJumpDirY    = this.query.AddCell(SrcConstants.PageLayoutLineJumpDirY, nameof(SrcConstants.PageLayoutLineJumpDirY));
            this.PageLayoutShapeSplit      = this.query.AddCell(SrcConstants.PageLayoutShapeSplit, nameof(SrcConstants.PageLayoutShapeSplit));
            this.PageLayoutPlaceDepth      = this.query.AddCell(SrcConstants.PageLayoutPlaceDepth, nameof(SrcConstants.PageLayoutPlaceDepth));
            this.PageLayoutPlaceFlip       = this.query.AddCell(SrcConstants.PageLayoutPlaceFlip, nameof(SrcConstants.PageLayoutPlaceFlip));
            this.PageLayoutPlaceStyle      = this.query.AddCell(SrcConstants.PageLayoutPlaceStyle, nameof(SrcConstants.PageLayoutPlaceStyle));
            this.PageLayoutPlowCode        = this.query.AddCell(SrcConstants.PageLayoutPlowCode, nameof(SrcConstants.PageLayoutPlowCode));
            this.PageLayoutResizePage      = this.query.AddCell(SrcConstants.PageLayoutResizePage, nameof(SrcConstants.PageLayoutResizePage));
            this.PageLayoutRouteStyle      = this.query.AddCell(SrcConstants.PageLayoutRouteStyle, nameof(SrcConstants.PageLayoutRouteStyle));
            this.PageLayoutAvoidPageBreaks = this.query.AddCell(SrcConstants.PageLayoutAvoidPageBreaks, nameof(SrcConstants.PageLayoutAvoidPageBreaks));
        }