1 L0 = <http://www.simantics.org/Layer0-1.1>
2 G2D = <http://www.simantics.org/G2D-1.1>
3 DIA = <http://www.simantics.org/Diagram-2.2>
5 //// Diagram-specific settings
7 DIA.HasPageDescription <R L0.HasProperty : L0.FunctionalRelation
8 --> DIA.PageDescription
10 DIA.PageDescription <T L0.Value
11 @L0.singleProperty DIA.PageDescription.Size
12 @L0.singleProperty DIA.PageDescription.Orientation
13 @L0.singleProperty DIA.PageDescription.Margins
14 >-- DIA.PageDescription.Size --> G2D.Point2D <R L0.HasProperty : L0.FunctionalRelation
15 L0.HasLabel "Page Size"
16 >-- DIA.PageDescription.Orientation --> DIA.Orientation <R L0.IsRelatedTo : L0.FunctionalRelation
17 L0.HasLabel "Page Orientation"
18 >-- DIA.PageDescription.Margins --> DIA.Margins <R L0.HasProperty : L0.FunctionalRelation
21 DIA.Orientation <T L0.Value
22 @L0.tag L0.Enumeration
23 DIA.Orientation.Portrait : DIA.Orientation
24 DIA.Orientation.Landscape : DIA.Orientation
26 DIA.Margins <T L0.Value
27 @L0.singleProperty DIA.PageDescription.Margins.Top
28 @L0.singleProperty DIA.PageDescription.Margins.Bottom
29 @L0.singleProperty DIA.PageDescription.Margins.Left
30 @L0.singleProperty DIA.PageDescription.Margins.Right
31 >-- DIA.PageDescription.Margins.Top --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
32 L0.HasLabel "Top Margin"
33 >-- DIA.PageDescription.Margins.Bottom --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
34 L0.HasLabel "Bottom Margin"
35 >-- DIA.PageDescription.Margins.Left --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
36 L0.HasLabel "Left Margin"
37 >-- DIA.PageDescription.Margins.Right --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
38 L0.HasLabel "Right Margin"
52 DIA.HasGridSize <R L0.HasProperty : L0.FunctionalRelation
53 L0.HasLabel "Grid Size"
56 DIA.NavigationEnabled <R L0.HasProperty
57 L0.HasDescription "Boolean value indicating if navigation is enabled or not. Default is true."
60 //// Diagram editor state properties
62 DIA.HasEditorState <R L0.HasProperty : L0.FunctionalRelation
64 --> DIA.EditorState <T L0.Value
65 >-- DIA.EditorState.ViewTransform --> G2D.Transform <R L0.HasProperty : L0.FunctionalRelation
66 L0.HasDescription "For storing the current view transformation of a diagram editor."
67 >-- DIA.EditorState.Selection --> DIA.Element <R L0.IsRelatedTo
68 L0.HasDescription "For storing the current selection of elements in a diagram editor."
69 >-- DIA.EditorState.ToolMode --> L0.String <R L0.IsRelatedTo : L0.FunctionalRelation
70 L0.HasDescription "For storing the current tool mode of the diagram editor."