IDocumentWorkspace.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. namespace PaintDotNet.Measurement
  5. {
  6. public interface IDocumentWorkspace
  7. {
  8. Document GetDocument();
  9. IAppWorkspace GetAppWorkspace();
  10. Selection GetSelection();
  11. Layer GetActiveLayer();
  12. int GetActiveLayerIndex();
  13. void SetActiveLayerIndex(int value);
  14. bool Focused();
  15. PointF DocumentToClient(PointF pointF);
  16. void Focus();
  17. Surface BorrowScratchSurface(string v);
  18. void ReturnScratchSurface(Surface scratchSurface);
  19. PointF GetDocumentScrollPositionF();
  20. RectangleF GetVisibleDocumentRectangleF();
  21. void SetDocumentScrollPositionF(PointF newScroll);
  22. void SetStaticToolData(Type type, object data);
  23. object GetStaticToolData(Type type);
  24. void UpdateStatusBarToToolHelpText(Tool tool);
  25. void Update();
  26. SurfaceBoxRendererList GetRendererList();
  27. Tool GetTool();
  28. void SetStatus(string statusText, ImageResource statusIcon);
  29. object FindForm();
  30. Control GetThis();
  31. void InvalidateFromTool(bool v);
  32. void PerformDocumentMouseMove(StylusEventArgs stylusEventArgs);
  33. void PerformDocumentMouseMove(MouseEventArgs mouseEventArgs);
  34. Point UnscalePoint(Point stylusLoc);
  35. PointF UnscalePoint(PointF stylusLocF);
  36. Point PointToScreenFromTool(Point point);
  37. double GetRatio();
  38. Type GetToolType();
  39. ToolInfo[] GetToolInfos();
  40. void SetToolFromType(Type toolType);
  41. void PushNullTool();
  42. Type PreviousActiveToolType();
  43. void PopNullTool();
  44. void SetDocument(Document oldDocument);
  45. void ExecuteFunction(HistoryFunction deselectFunction);
  46. UserControl2 GetUserControl();
  47. void ZoomIn();
  48. void RecenterView(Point point);
  49. void ZoomToRectangle(Rectangle zoomTo);
  50. void ZoomOut();
  51. bool Visible();
  52. void SetEnableSelectionOutline(bool enableOutline);
  53. void ResetOutlineWhiteOpacity();
  54. void SetDocumentCenterPointF(PointF newCenterPt);
  55. void SetEnableSelectionTinting(bool v);
  56. void InvalidateSurface(Rectangle rectangle);
  57. void UpdateStatusBarToToolHelpText();
  58. SurfaceBox GetSurfaceBox();
  59. }
  60. }