Example #1
0
        protected override Control CreateViewerControl()
        {
            var control = new ViewerPane(this, false);

#if DESKTOP
            if (this.Document.EditMode)
            {
                control.Viewer.Cursor = new Cursor(CursorType.Crosshair);
            }
#endif
            control.SizeChanged += delegate
            {
                //Console.WriteLine ("What the f!");
                //if (BGI != null)
                //	BGI.ResetGraphics ();
            };

            /*if (Generator.IsMac) {
             *      // ugh
             *      control.Scroll += delegate {
             *              if (BGI != null)
             *                      BGI.ResetGraphics ();
             *      };
             * }*/
            return(control);
        }
Example #2
0
 public AllowGrow(ViewerPane viewerPane)
 {
     this.ViewerPane = viewerPane;
     this.ID         = ActionID;
     this.MenuText   = "&Expand to Fit";
     this.ToolTip    = "Make the document expand to fit the view if it is smaller";
 }
Example #3
0
 public FitHeight(ViewerPane viewerPane)
 {
     this.ViewerPane = viewerPane;
     this.ID         = ActionID;
     this.MenuText   = "Fit &Height";
     this.ToolTip    = "Fit the document to the height of the view";
 }
Example #4
0
 public FitWidth(ViewerPane viewerPane)
 {
     this.ViewerPane = viewerPane;
     this.ID         = ActionID;
     this.MenuText   = "Fit &Width";
     this.ToolTip    = "Fit the document to the width of the view";
 }
Example #5
0
 public Autoscroll(ViewerPane viewerPane)
 {
     this.ViewerPane = viewerPane;
     base.ID         = ActionID;
     this.MenuText   = "Auto&scroll";
     this.ToolTip    = "Automaticaly scroll when viewing";
     this.Checked    = ViewerPane.ViewHandler.Document.Info.AutoScroll;
 }