xref: /trunk/main/sc/sdi/graphsh.sdi (revision a22ac757c2d74ad34699b832b04067f5ac53bbed)
1*e07c0dceSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*e07c0dceSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*e07c0dceSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*e07c0dceSAndrew Rist * distributed with this work for additional information
6*e07c0dceSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*e07c0dceSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*e07c0dceSAndrew Rist * "License"); you may not use this file except in compliance
9*e07c0dceSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*e07c0dceSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*e07c0dceSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*e07c0dceSAndrew Rist * software distributed under the License is distributed on an
15*e07c0dceSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e07c0dceSAndrew Rist * KIND, either express or implied.  See the License for the
17*e07c0dceSAndrew Rist * specific language governing permissions and limitations
18*e07c0dceSAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*e07c0dceSAndrew Rist *************************************************************/
21*e07c0dceSAndrew Rist
22cdf0e10cSrcweirinterface GraphSelection
23cdf0e10cSrcweir{
24cdf0e10cSrcweir    // filters
25cdf0e10cSrcweir
26cdf0e10cSrcweir    SID_GRFFILTER
27cdf0e10cSrcweir    [
28cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
29cdf0e10cSrcweir        StateMethod = GetFilterState ;
30cdf0e10cSrcweir    ]
31cdf0e10cSrcweir    SID_GRFFILTER_INVERT
32cdf0e10cSrcweir    [
33cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
34cdf0e10cSrcweir        StateMethod = GetFilterState ;
35cdf0e10cSrcweir    ]
36cdf0e10cSrcweir    SID_GRFFILTER_SMOOTH
37cdf0e10cSrcweir    [
38cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
39cdf0e10cSrcweir        StateMethod = GetFilterState ;
40cdf0e10cSrcweir    ]
41cdf0e10cSrcweir    SID_GRFFILTER_SHARPEN
42cdf0e10cSrcweir    [
43cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
44cdf0e10cSrcweir        StateMethod = GetFilterState ;
45cdf0e10cSrcweir    ]
46cdf0e10cSrcweir    SID_GRFFILTER_REMOVENOISE
47cdf0e10cSrcweir    [
48cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
49cdf0e10cSrcweir        StateMethod = GetFilterState ;
50cdf0e10cSrcweir    ]
51cdf0e10cSrcweir    SID_GRFFILTER_SOBEL
52cdf0e10cSrcweir    [
53cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
54cdf0e10cSrcweir        StateMethod = GetFilterState ;
55cdf0e10cSrcweir    ]
56cdf0e10cSrcweir    SID_GRFFILTER_MOSAIC
57cdf0e10cSrcweir    [
58cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
59cdf0e10cSrcweir        StateMethod = GetFilterState ;
60cdf0e10cSrcweir    ]
61cdf0e10cSrcweir    SID_GRFFILTER_EMBOSS
62cdf0e10cSrcweir    [
63cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
64cdf0e10cSrcweir        StateMethod = GetFilterState ;
65cdf0e10cSrcweir    ]
66cdf0e10cSrcweir    SID_GRFFILTER_POSTER
67cdf0e10cSrcweir    [
68cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
69cdf0e10cSrcweir        StateMethod = GetFilterState ;
70cdf0e10cSrcweir    ]
71cdf0e10cSrcweir    SID_GRFFILTER_POPART
72cdf0e10cSrcweir    [
73cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
74cdf0e10cSrcweir        StateMethod = GetFilterState ;
75cdf0e10cSrcweir    ]
76cdf0e10cSrcweir    SID_GRFFILTER_SEPIA
77cdf0e10cSrcweir    [
78cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
79cdf0e10cSrcweir        StateMethod = GetFilterState ;
80cdf0e10cSrcweir    ]
81cdf0e10cSrcweir    SID_GRFFILTER_SOLARIZE
82cdf0e10cSrcweir    [
83cdf0e10cSrcweir        ExecMethod = ExecuteFilter ;
84cdf0e10cSrcweir        StateMethod = GetFilterState ;
85cdf0e10cSrcweir    ]
86cdf0e10cSrcweir
87cdf0e10cSrcweir    // other graphics functions
88cdf0e10cSrcweir
89cdf0e10cSrcweir    SID_ATTR_GRAF_MODE
90cdf0e10cSrcweir    [
91cdf0e10cSrcweir        ExecMethod = Execute ;
92cdf0e10cSrcweir        StateMethod = GetAttrState ;
93cdf0e10cSrcweir    ]
94cdf0e10cSrcweir    SID_ATTR_GRAF_RED
95cdf0e10cSrcweir    [
96cdf0e10cSrcweir        ExecMethod = Execute ;
97cdf0e10cSrcweir        StateMethod = GetAttrState ;
98cdf0e10cSrcweir    ]
99cdf0e10cSrcweir    SID_ATTR_GRAF_GREEN
100cdf0e10cSrcweir    [
101cdf0e10cSrcweir        ExecMethod = Execute ;
102cdf0e10cSrcweir        StateMethod = GetAttrState ;
103cdf0e10cSrcweir    ]
104cdf0e10cSrcweir    SID_ATTR_GRAF_BLUE
105cdf0e10cSrcweir    [
106cdf0e10cSrcweir        ExecMethod = Execute ;
107cdf0e10cSrcweir        StateMethod = GetAttrState ;
108cdf0e10cSrcweir    ]
109cdf0e10cSrcweir    SID_ATTR_GRAF_LUMINANCE
110cdf0e10cSrcweir    [
111cdf0e10cSrcweir        ExecMethod = Execute ;
112cdf0e10cSrcweir        StateMethod = GetAttrState ;
113cdf0e10cSrcweir    ]
114cdf0e10cSrcweir    SID_ATTR_GRAF_CONTRAST
115cdf0e10cSrcweir    [
116cdf0e10cSrcweir        ExecMethod = Execute ;
117cdf0e10cSrcweir        StateMethod = GetAttrState ;
118cdf0e10cSrcweir    ]
119cdf0e10cSrcweir    SID_ATTR_GRAF_GAMMA
120cdf0e10cSrcweir    [
121cdf0e10cSrcweir        ExecMethod = Execute ;
122cdf0e10cSrcweir        StateMethod = GetAttrState ;
123cdf0e10cSrcweir    ]
124cdf0e10cSrcweir    SID_ATTR_GRAF_TRANSPARENCE
125cdf0e10cSrcweir    [
126cdf0e10cSrcweir        ExecMethod = Execute ;
127cdf0e10cSrcweir        StateMethod = GetAttrState ;
128cdf0e10cSrcweir    ]
129cdf0e10cSrcweir    SID_ATTR_GRAF_CROP
130cdf0e10cSrcweir    [
131cdf0e10cSrcweir        ExecMethod = Execute ;
132cdf0e10cSrcweir        StateMethod = GetAttrState ;
133cdf0e10cSrcweir    ]
134cdf0e10cSrcweir    SID_COLOR_SETTINGS
135cdf0e10cSrcweir    [
136cdf0e10cSrcweir        ExecMethod = Execute ;
137cdf0e10cSrcweir        StateMethod = GetAttrState ;
138cdf0e10cSrcweir    ]
139cdf0e10cSrcweir}
140cdf0e10cSrcweir
141cdf0e10cSrcweir// ===========================================================================
142cdf0e10cSrcweirshell ScGraphicShell : ScDrawShell
143cdf0e10cSrcweir{
144cdf0e10cSrcweir    import GraphSelection ;
145cdf0e10cSrcweir}
146