xref: /aoo42x/main/svx/source/dialog/bmpmask.src (revision 7ea7a1cc)
109a1d057SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
309a1d057SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
409a1d057SAndrew Rist * or more contributor license agreements.  See the NOTICE file
509a1d057SAndrew Rist * distributed with this work for additional information
609a1d057SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
709a1d057SAndrew Rist * to you under the Apache License, Version 2.0 (the
809a1d057SAndrew Rist * "License"); you may not use this file except in compliance
909a1d057SAndrew Rist * with the License.  You may obtain a copy of the License at
1009a1d057SAndrew Rist *
1109a1d057SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
1209a1d057SAndrew Rist *
1309a1d057SAndrew Rist * Unless required by applicable law or agreed to in writing,
1409a1d057SAndrew Rist * software distributed under the License is distributed on an
1509a1d057SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1609a1d057SAndrew Rist * KIND, either express or implied.  See the License for the
1709a1d057SAndrew Rist * specific language governing permissions and limitations
1809a1d057SAndrew Rist * under the License.
1909a1d057SAndrew Rist *
2009a1d057SAndrew Rist *************************************************************/
2109a1d057SAndrew Rist
2209a1d057SAndrew Rist
23cdf0e10cSrcweir // include ---------------------------------------------------------------
24cdf0e10cSrcweir#include <svx/svxids.hrc>
25cdf0e10cSrcweir#include <svx/dialogs.hrc>
26cdf0e10cSrcweir#include "bmpmask.hrc"
27cdf0e10cSrcweir#include "helpid.hrc"
28cdf0e10cSrcweir
29cdf0e10cSrcweir
30cdf0e10cSrcweir#define MASKCOLOR	MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
31cdf0e10cSrcweir
32cdf0e10cSrcweir
33cdf0e10cSrcweir // RID_SVXDLG_BMPMASK ----------------------------------------------------
34cdf0e10cSrcweirDockingWindow RID_SVXDLG_BMPMASK
35cdf0e10cSrcweir{
36cdf0e10cSrcweir	HelpId = CMD_SID_BMPMASK ;
37cdf0e10cSrcweir	OutputSize = TRUE ;
38cdf0e10cSrcweir	Hide = TRUE ;
39cdf0e10cSrcweir	SVLook = TRUE ;
40cdf0e10cSrcweir	Pos = MAP_APPFONT ( 0 , 0 ) ;
41cdf0e10cSrcweir    Size = MAP_APPFONT ( 163 , 126 ) ;
42cdf0e10cSrcweir	Sizeable = FALSE ;
43cdf0e10cSrcweir	Moveable = TRUE ;
44cdf0e10cSrcweir	Closeable = TRUE ;
45cdf0e10cSrcweir	Zoomable = TRUE ;
46cdf0e10cSrcweir	Dockable = TRUE ;
47cdf0e10cSrcweir	EnableResizing = TRUE ;
48cdf0e10cSrcweir    FixedLine GRP_Q
49cdf0e10cSrcweir	{
50cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 26 ) ;
51cdf0e10cSrcweir        Size = MAP_APPFONT ( 151 , 8 ) ;
52cdf0e10cSrcweir		Text [ en-US ] = "Colors" ;
53cdf0e10cSrcweir	};
54cdf0e10cSrcweir	FixedText FT_1
55cdf0e10cSrcweir	{
56cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 37 ) ;
57cdf0e10cSrcweir        Size = MAP_APPFONT ( 44 , 8 ) ;
58cdf0e10cSrcweir		Text [ en-US ] = "Source color" ;
59cdf0e10cSrcweir	};
60cdf0e10cSrcweir	FixedText FT_2
61cdf0e10cSrcweir	{
62cdf0e10cSrcweir        Pos = MAP_APPFONT ( 58 , 37 ) ;
63cdf0e10cSrcweir        Size = MAP_APPFONT ( 34 , 8 ) ;
64cdf0e10cSrcweir		Text [ en-US ] = "Tolerance" ;
65cdf0e10cSrcweir	};
66cdf0e10cSrcweir	FixedText FT_3
67cdf0e10cSrcweir	{
68cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 37 ) ;
69cdf0e10cSrcweir        Size = MAP_APPFONT ( 64 , 8 ) ;
70cdf0e10cSrcweir		Text [ en-US ] = "Replace with..." ;
71cdf0e10cSrcweir	};
72cdf0e10cSrcweir
73cdf0e10cSrcweir	// line 1
74cdf0e10cSrcweir
75cdf0e10cSrcweir	CheckBox CBX_1
76cdf0e10cSrcweir	{
77cdf0e10cSrcweir	    HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_1";
78cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 50 ) ;
79cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
80cdf0e10cSrcweir		TabStop = TRUE ;
81cdf0e10cSrcweir	};
82cdf0e10cSrcweir	Control QCOL_1
83cdf0e10cSrcweir	{
84cdf0e10cSrcweir		HelpId = HID_BMPMASK_CTL_QCOL_1 ;
85cdf0e10cSrcweir        Pos = MAP_APPFONT ( 24 , 48 ) ;
86cdf0e10cSrcweir		Size = MAP_APPFONT ( 24 , 12 ) ;
87cdf0e10cSrcweir		Border = TRUE ;
88cdf0e10cSrcweir		TabStop = TRUE ;
89cdf0e10cSrcweir	};
90cdf0e10cSrcweir	MetricField SP_1
91cdf0e10cSrcweir	{
92cdf0e10cSrcweir	    HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_1";
93cdf0e10cSrcweir		Border = TRUE ;
94cdf0e10cSrcweir        Pos = MAP_APPFONT ( 58 , 48 ) ;
95cdf0e10cSrcweir        Size = MAP_APPFONT ( 29 , 12 ) ;
96cdf0e10cSrcweir		TabStop = TRUE ;
97cdf0e10cSrcweir		Repeat = TRUE ;
98cdf0e10cSrcweir		Spin = TRUE ;
99cdf0e10cSrcweir		Maximum = 99 ;
100cdf0e10cSrcweir		Last = 99 ;
101cdf0e10cSrcweir		SpinSize = 1 ;
102*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
103cdf0e10cSrcweir	};
104cdf0e10cSrcweir	ListBox LB_1
105cdf0e10cSrcweir	{
106cdf0e10cSrcweir	    HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_1";
107cdf0e10cSrcweir		Border = TRUE ;
108cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 48 ) ;
109cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 75 ) ;
110cdf0e10cSrcweir		TabStop = TRUE ;
111cdf0e10cSrcweir		DropDown = TRUE ;
112cdf0e10cSrcweir		DDExtraWidth = TRUE ;
113cdf0e10cSrcweir	};
114cdf0e10cSrcweir
115cdf0e10cSrcweir	// line 2
116cdf0e10cSrcweir
117cdf0e10cSrcweir	CheckBox CBX_2
118cdf0e10cSrcweir	{
119cdf0e10cSrcweir	    HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_2";
120cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 65 ) ;
121cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
122cdf0e10cSrcweir		TabStop = TRUE ;
123cdf0e10cSrcweir	};
124cdf0e10cSrcweir	Control QCOL_2
125cdf0e10cSrcweir	{
126cdf0e10cSrcweir		HelpId = HID_BMPMASK_CTL_QCOL_1 ;
127cdf0e10cSrcweir        Pos = MAP_APPFONT ( 24 , 63 ) ;
128cdf0e10cSrcweir		Size = MAP_APPFONT ( 24 , 12 ) ;
129cdf0e10cSrcweir		Border = TRUE ;
130cdf0e10cSrcweir		TabStop = TRUE ;
131cdf0e10cSrcweir	};
132cdf0e10cSrcweir	MetricField SP_2
133cdf0e10cSrcweir	{
134cdf0e10cSrcweir	    HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_2";
135cdf0e10cSrcweir		Border = TRUE ;
136cdf0e10cSrcweir        Pos = MAP_APPFONT ( 58 , 63 ) ;
137cdf0e10cSrcweir        Size = MAP_APPFONT ( 29 , 12 ) ;
138cdf0e10cSrcweir		TabStop = TRUE ;
139cdf0e10cSrcweir		Repeat = TRUE ;
140cdf0e10cSrcweir		Spin = TRUE ;
141cdf0e10cSrcweir		Maximum = 99 ;
142cdf0e10cSrcweir		Last = 99 ;
143cdf0e10cSrcweir		SpinSize = 1 ;
144*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
145cdf0e10cSrcweir	};
146cdf0e10cSrcweir	ListBox LB_2
147cdf0e10cSrcweir	{
148cdf0e10cSrcweir	    HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_2";
149cdf0e10cSrcweir		Border = TRUE ;
150cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 63 ) ;
151cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 75 ) ;
152cdf0e10cSrcweir		TabStop = TRUE ;
153cdf0e10cSrcweir		DropDown = TRUE ;
154cdf0e10cSrcweir		DDExtraWidth = TRUE ;
155cdf0e10cSrcweir	};
156cdf0e10cSrcweir
157cdf0e10cSrcweir	// line 3
158cdf0e10cSrcweir
159cdf0e10cSrcweir	CheckBox CBX_3
160cdf0e10cSrcweir	{
161cdf0e10cSrcweir	    HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_3";
162cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 80 ) ;
163cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
164cdf0e10cSrcweir		TabStop = TRUE ;
165cdf0e10cSrcweir	};
166cdf0e10cSrcweir	Control QCOL_3
167cdf0e10cSrcweir	{
168cdf0e10cSrcweir		HelpId = HID_BMPMASK_CTL_QCOL_1 ;
169cdf0e10cSrcweir        Pos = MAP_APPFONT ( 24 , 78 ) ;
170cdf0e10cSrcweir		Size = MAP_APPFONT ( 24 , 12 ) ;
171cdf0e10cSrcweir		Border = TRUE ;
172cdf0e10cSrcweir		TabStop = TRUE ;
173cdf0e10cSrcweir	};
174cdf0e10cSrcweir	MetricField SP_3
175cdf0e10cSrcweir	{
176cdf0e10cSrcweir	    HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_3";
177cdf0e10cSrcweir		Border = TRUE ;
178cdf0e10cSrcweir        Pos = MAP_APPFONT ( 58, 78 ) ;
179cdf0e10cSrcweir        Size = MAP_APPFONT ( 29 , 12 ) ;
180cdf0e10cSrcweir		TabStop = TRUE ;
181cdf0e10cSrcweir		Repeat = TRUE ;
182cdf0e10cSrcweir		Spin = TRUE ;
183cdf0e10cSrcweir		Maximum = 99 ;
184cdf0e10cSrcweir		Last = 99 ;
185cdf0e10cSrcweir		SpinSize = 1 ;
186*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
187cdf0e10cSrcweir	};
188cdf0e10cSrcweir	ListBox LB_3
189cdf0e10cSrcweir	{
190cdf0e10cSrcweir	    HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_3";
191cdf0e10cSrcweir		Border = TRUE ;
192cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 78 ) ;
193cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 75 ) ;
194cdf0e10cSrcweir		TabStop = TRUE ;
195cdf0e10cSrcweir		DropDown = TRUE ;
196cdf0e10cSrcweir		DDExtraWidth = TRUE ;
197cdf0e10cSrcweir	};
198cdf0e10cSrcweir
199cdf0e10cSrcweir	// Line 4
200cdf0e10cSrcweir
201cdf0e10cSrcweir	CheckBox CBX_4
202cdf0e10cSrcweir	{
203cdf0e10cSrcweir	    HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_4";
204cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 95 ) ;
205cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
206cdf0e10cSrcweir		TabStop = TRUE ;
207cdf0e10cSrcweir	};
208cdf0e10cSrcweir	Control QCOL_4
209cdf0e10cSrcweir	{
210cdf0e10cSrcweir		HelpId = HID_BMPMASK_CTL_QCOL_1 ;
211cdf0e10cSrcweir        Pos = MAP_APPFONT ( 24 , 93 ) ;
212cdf0e10cSrcweir		Size = MAP_APPFONT ( 24 , 12 ) ;
213cdf0e10cSrcweir		Border = TRUE ;
214cdf0e10cSrcweir		TabStop = TRUE ;
215cdf0e10cSrcweir	};
216cdf0e10cSrcweir	MetricField SP_4
217cdf0e10cSrcweir	{
218cdf0e10cSrcweir	    HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_4";
219cdf0e10cSrcweir		Border = TRUE ;
220cdf0e10cSrcweir        Pos = MAP_APPFONT ( 58 , 93 ) ;
221cdf0e10cSrcweir        Size = MAP_APPFONT ( 29 , 12 ) ;
222cdf0e10cSrcweir		TabStop = TRUE ;
223cdf0e10cSrcweir		Repeat = TRUE ;
224cdf0e10cSrcweir		Spin = TRUE ;
225cdf0e10cSrcweir		Maximum = 99 ;
226cdf0e10cSrcweir		Last = 99 ;
227cdf0e10cSrcweir		SpinSize = 1 ;
228*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
229cdf0e10cSrcweir	};
230cdf0e10cSrcweir	ListBox LB_4
231cdf0e10cSrcweir	{
232cdf0e10cSrcweir	    HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_4";
233cdf0e10cSrcweir		Border = TRUE ;
234cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 93 ) ;
235cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 75 ) ;
236cdf0e10cSrcweir		TabStop = TRUE ;
237cdf0e10cSrcweir		DropDown = TRUE ;
238cdf0e10cSrcweir		DDExtraWidth = TRUE ;
239cdf0e10cSrcweir	};
240cdf0e10cSrcweir
241cdf0e10cSrcweir	CheckBox CBX_TRANS
242cdf0e10cSrcweir	{
243cdf0e10cSrcweir	    HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_TRANS";
244cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 110 ) ;
245cdf0e10cSrcweir        Size = MAP_APPFONT ( 71 , 10 ) ;
246cdf0e10cSrcweir		TabStop = TRUE ;
247cdf0e10cSrcweir		Text [ en-US ] = "Tr~ansparency" ;
248cdf0e10cSrcweir	};
249cdf0e10cSrcweir
250cdf0e10cSrcweir	PushButton BTN_EXEC
251cdf0e10cSrcweir	{
252cdf0e10cSrcweir	    HelpID = "svx:PushButton:RID_SVXDLG_BMPMASK:BTN_EXEC";
253cdf0e10cSrcweir		Pos = MAP_APPFONT ( 93 , 6 ) ;
254cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 14 ) ;
255cdf0e10cSrcweir		Text [ en-US ] = "~Replace" ;
256cdf0e10cSrcweir	};
257cdf0e10cSrcweir
258cdf0e10cSrcweir	ListBox LB_TRANS
259cdf0e10cSrcweir	{
260cdf0e10cSrcweir	    HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_TRANS";
261cdf0e10cSrcweir		Border = TRUE ;
262cdf0e10cSrcweir        Pos = MAP_APPFONT ( 93 , 108 ) ;
263cdf0e10cSrcweir		Size = MAP_APPFONT ( 64 , 75 ) ;
264cdf0e10cSrcweir		TabStop = TRUE ;
265cdf0e10cSrcweir		DropDown = TRUE ;
266cdf0e10cSrcweir		DDExtraWidth = TRUE ;
267cdf0e10cSrcweir	};
268cdf0e10cSrcweir	ToolBox TBX_PIPETTE
269cdf0e10cSrcweir	{
270cdf0e10cSrcweir		SVLook = TRUE ;
271cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 7 ) ;
272cdf0e10cSrcweir		ItemList =
273cdf0e10cSrcweir		{
274cdf0e10cSrcweir			ToolBoxItem
275cdf0e10cSrcweir			{
276cdf0e10cSrcweir				AutoCheck = TRUE ;
277cdf0e10cSrcweir				Identifier = TBI_PIPETTE ;
278cdf0e10cSrcweir				HelpId = HID_BMPMASK_TBI_PIPETTE ;
279cdf0e10cSrcweir				ItemImage = Image
280cdf0e10cSrcweir				{
281cdf0e10cSrcweir					ImageBitmap = Bitmap { File = "sc10350.bmp" ; };
282cdf0e10cSrcweir					MASKCOLOR
283cdf0e10cSrcweir				};
284cdf0e10cSrcweir				Text [ en-US ] = "Pipette" ;
285cdf0e10cSrcweir			};
286cdf0e10cSrcweir		};
287cdf0e10cSrcweir	};
288cdf0e10cSrcweir	Control WND_PIPETTE
289cdf0e10cSrcweir	{
290cdf0e10cSrcweir		HelpId = HID_BMPMASK_CTL_PIPETTE ;
291cdf0e10cSrcweir		Border = TRUE ;
292cdf0e10cSrcweir        Pos = MAP_APPFONT ( 22 , 6 ) ;
293cdf0e10cSrcweir		Size = MAP_APPFONT ( 43 , 14 ) ;
294cdf0e10cSrcweir	};
295cdf0e10cSrcweir	Text [ en-US ] = "Color Replacer" ;
296cdf0e10cSrcweir
297cdf0e10cSrcweir	Image IMG_PIPETTE
298cdf0e10cSrcweir	{
299cdf0e10cSrcweir		ImageBitmap = Bitmap { File = "sc10350.bmp" ; };
300cdf0e10cSrcweir		MASKCOLOR
301cdf0e10cSrcweir	};
302cdf0e10cSrcweir
303cdf0e10cSrcweir	Image IMG_PIPETTE_H
304cdf0e10cSrcweir	{
305cdf0e10cSrcweir		ImageBitmap = Bitmap { File = "sc10350_h.bmp" ; };
306cdf0e10cSrcweir		MASKCOLOR
307cdf0e10cSrcweir	};
308cdf0e10cSrcweir};
309cdf0e10cSrcweir
310cdf0e10cSrcweirString RID_SVXDLG_BMPMASK_STR_TRANSP
311cdf0e10cSrcweir{
312cdf0e10cSrcweir	Text [ en-US ] = "Transparent";
313cdf0e10cSrcweir};
314cdf0e10cSrcweir
315cdf0e10cSrcweirString RID_SVXDLG_BMPMASK_STR_SOURCECOLOR
316cdf0e10cSrcweir{
317cdf0e10cSrcweir    // This string is used by the eyedropper dialog to denote a color in an image
318cdf0e10cSrcweir    // that will be replaced by another color.
319cdf0e10cSrcweir	Text [ en-US ] = "Source Color";
320cdf0e10cSrcweir};
321cdf0e10cSrcweir
322cdf0e10cSrcweirString RID_SVXDLG_BMPMASK_STR_PALETTE
323cdf0e10cSrcweir{
324cdf0e10cSrcweir	Text [ en-US ] = "Color Palette";
325cdf0e10cSrcweir};
326cdf0e10cSrcweirString RID_SVXDLG_BMPMASK_STR_TOLERANCE
327cdf0e10cSrcweir{
328cdf0e10cSrcweir	Text [ en-US ] = "Tolerance";
329cdf0e10cSrcweir};
330cdf0e10cSrcweirString RID_SVXDLG_BMPMASK_STR_REPLACEWITH
331cdf0e10cSrcweir{
332cdf0e10cSrcweir	Text [ en-US ] = "Replace with";
333cdf0e10cSrcweir};
334cdf0e10cSrcweir
335