xref: /trunk/main/svx/source/sidebar/text/TextPropertyPanel.src (revision ae13266d75b65ee87b00aa35233d19a675341b8f)
1b9e67834SAndre Fischer/**************************************************************
2b9e67834SAndre Fischer *
3b9e67834SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one
4b9e67834SAndre Fischer * or more contributor license agreements.  See the NOTICE file
5b9e67834SAndre Fischer * distributed with this work for additional information
6b9e67834SAndre Fischer * regarding copyright ownership.  The ASF licenses this file
7b9e67834SAndre Fischer * to you under the Apache License, Version 2.0 (the
8b9e67834SAndre Fischer * "License"); you may not use this file except in compliance
9b9e67834SAndre Fischer * with the License.  You may obtain a copy of the License at
10b9e67834SAndre Fischer *
11b9e67834SAndre Fischer *   http://www.apache.org/licenses/LICENSE-2.0
12b9e67834SAndre Fischer *
13b9e67834SAndre Fischer * Unless required by applicable law or agreed to in writing,
14b9e67834SAndre Fischer * software distributed under the License is distributed on an
15b9e67834SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16b9e67834SAndre Fischer * KIND, either express or implied.  See the License for the
17b9e67834SAndre Fischer * specific language governing permissions and limitations
18b9e67834SAndre Fischer * under the License.
19b9e67834SAndre Fischer *
20b9e67834SAndre Fischer *************************************************************/
21b9e67834SAndre Fischer
22b9e67834SAndre Fischer#include "TextPropertyPanel.hrc"
23d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc>
24b9e67834SAndre Fischer#include "helpid.hrc"
25b9e67834SAndre Fischer
26b9e67834SAndre Fischer#define CONTROL_HEIGHT_FONT_NAME        250
27b9e67834SAndre Fischer#define CONTROL_HEIGHT_FONT_SIZE        180
28f79579d2SAndre Fischer#define FONTSIZE_WIDTH                  (TOOLBOX_ITEM_WIDTH * 2 - 1)
29f79579d2SAndre Fischer#define FONTNAME_WIDTH                  (PROPERTYPAGE_WIDTH - (FONTSIZE_WIDTH) - 6)
30b9e67834SAndre Fischer
31b9e67834SAndre Fischer#define TB_SPACE                18
32b9e67834SAndre Fischer#define TB_SPACE_V              4
33b9e67834SAndre Fischer#define TEXT_WIDTH              TOOLBOX_42_42_ITEM_DD_WIDTH + TB_SPACE - 3
34b9e67834SAndre Fischer
35b9e67834SAndre Fischer#define FT_TB_SPACE             1
36b9e67834SAndre Fischer#define BK_IMG                  20
37b9e67834SAndre Fischer
38f79579d2SAndre Fischer#define X0                      SECTIONPAGE_MARGIN_HORIZONTAL
39f79579d2SAndre Fischer#define X1                      SECTIONPAGE_MARGIN_HORIZONTAL + 1 + TOOLBOX_ITEM_WIDTH * 2  + 4
40f79579d2SAndre Fischer#define X2                      (PROPERTYPAGE_WIDTH - (FONTSIZE_WIDTH))
41f79579d2SAndre Fischer#define X3                      (X2 - (TOOLBOX_ITEM_DD_WIDTH) - 2)
42f79579d2SAndre Fischer
43f79579d2SAndre Fischer#define FIRST_LINE_Y            SECTIONPAGE_MARGIN_VERTICAL_TOP
44f79579d2SAndre Fischer#define SECOND_LINE_Y           FIRST_LINE_Y + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL  + 1
45f79579d2SAndre Fischer#define THIRD_LINE_Y            SECOND_LINE_Y + CONTROL_SPACING_VERTICAL + (TOOLBOX_ITEM_HEIGHT + 2)
46f79579d2SAndre Fischer
47f79579d2SAndre Fischer
48b9e67834SAndre FischerControl RID_SIDEBAR_TEXT_PANEL
49b9e67834SAndre Fischer{
50b9e67834SAndre Fischer    OutputSize = TRUE;
51b9e67834SAndre Fischer    DialogControl = TRUE;
52b9e67834SAndre Fischer    Border = FALSE;
53b9e67834SAndre Fischer
54b9e67834SAndre Fischer    Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + TOOLBOX_ITEM_HEIGHT * 2 + CONTROL_SPACING_VERTICAL * 2 + SECTIONPAGE_MARGIN_VERTICAL_BOT );
55b9e67834SAndre Fischer    HelpID = HID_PROPERTYPANEL_TEXT_SECTION ;
56b9e67834SAndre Fischer    Text = "Text";
57b9e67834SAndre Fischer
58b9e67834SAndre Fischer    ComboBox CB_SBFONT_FONT
59b9e67834SAndre Fischer    {
60b9e67834SAndre Fischer        Border = TRUE;
61f79579d2SAndre Fischer        Pos = MAP_APPFONT (X0 , FIRST_LINE_Y);
62b9e67834SAndre Fischer        Size = MAP_APPFONT (FONTNAME_WIDTH , CONTROL_HEIGHT_FONT_NAME);
63b9e67834SAndre Fischer        TabStop = TRUE;
64b9e67834SAndre Fischer        DropDown = TRUE;
65b9e67834SAndre Fischer        HelpID = HID_COMBO_FONT_NAME ;
66b9e67834SAndre Fischer        QuickHelpText [ en-US ] = "Font";
67bc7f1831SAndre Fischer//        Command = ".uno:CharFontName";
68b9e67834SAndre Fischer    };
69b9e67834SAndre Fischer    MetricBox MB_SBFONT_FONTSIZE
70b9e67834SAndre Fischer    {
71b9e67834SAndre Fischer        Border = TRUE;
72f79579d2SAndre Fischer        Pos = MAP_APPFONT (X2, FIRST_LINE_Y);
73f79579d2SAndre Fischer        Size = MAP_APPFONT (FONTSIZE_WIDTH, CONTROL_HEIGHT_FONT_SIZE);
74b9e67834SAndre Fischer        TabStop = TRUE;
75b9e67834SAndre Fischer        DropDown = TRUE;
76b9e67834SAndre Fischer        HelpID = HID_METRIC_FONT_SIZE;
77b9e67834SAndre Fischer        QuickHelpText [ en-US ] = "Font Size";
78bc7f1831SAndre Fischer//        Command = ".uno:FontHeight";
79b9e67834SAndre Fischer    };
80b9e67834SAndre Fischer
81b9e67834SAndre Fischer    ToolBox TB_INCREASE_DECREASE
82b9e67834SAndre Fischer    {
83b9e67834SAndre Fischer        SVLook = TRUE ;
84f79579d2SAndre Fischer        Pos = MAP_APPFONT (X2, SECOND_LINE_Y) ;
85b9e67834SAndre Fischer        Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 2 ,TOOLBOX_ITEM_HEIGHT ) ;
86b9e67834SAndre Fischer        TabStop = TRUE ;
87b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONTSIZE_INDE;
88b9e67834SAndre Fischer        Text = "Font Size Adjusting" ;
89b9e67834SAndre Fischer        ItemList =
90b9e67834SAndre Fischer        {
91b9e67834SAndre Fischer            ToolBoxItem
92b9e67834SAndre Fischer            {
93b9e67834SAndre Fischer                Identifier = TBI_INCREASE;
94b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_INCREASE;
95bc7f1831SAndre Fischer                Command = ".uno:Grow";
96b9e67834SAndre Fischer            };
97b9e67834SAndre Fischer            ToolBoxItem
98b9e67834SAndre Fischer            {
99b9e67834SAndre Fischer                Identifier = TBI_DECREASE;
100b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_DECREASE;
101bc7f1831SAndre Fischer                Command = ".uno:Shrink";
102b9e67834SAndre Fischer            };
103b9e67834SAndre Fischer        };
104b9e67834SAndre Fischer    };
105b9e67834SAndre Fischer    ToolBox TB_FONT
106b9e67834SAndre Fischer    {
107b9e67834SAndre Fischer        SVLook = TRUE ;
108f79579d2SAndre Fischer        Pos = MAP_APPFONT (X0 + 1, SECOND_LINE_Y) ;
109b9e67834SAndre Fischer        Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 4 + TOOLBOX_ITEM_DD_WIDTH, TOOLBOX_ITEM_HEIGHT ) ;
110b9e67834SAndre Fischer        TabStop = TRUE ;
111b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONT;
112b9e67834SAndre Fischer        Text = "Font Effects" ;
113b9e67834SAndre Fischer        ItemList =
114b9e67834SAndre Fischer        {
115b9e67834SAndre Fischer            ToolBoxItem
116b9e67834SAndre Fischer            {
117b9e67834SAndre Fischer                Identifier = TBI_BOLD;
118b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_BOLD;
119bc7f1831SAndre Fischer                Command = ".uno:Bold";
120b9e67834SAndre Fischer            };
121b9e67834SAndre Fischer            ToolBoxItem
122b9e67834SAndre Fischer            {
123b9e67834SAndre Fischer                Identifier = TBI_ITALIC;
124b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_ITALIC;
125bc7f1831SAndre Fischer                Command = ".uno:Italic";
126b9e67834SAndre Fischer            };
127b9e67834SAndre Fischer            ToolBoxItem
128b9e67834SAndre Fischer            {
129b9e67834SAndre Fischer                Identifier = TBI_UNDERLINE;
130b9e67834SAndre Fischer                DropDown = TRUE ;
131b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_UNDERLINE;
132bc7f1831SAndre Fischer                Command = ".uno:Underline";
133b9e67834SAndre Fischer            };
134b9e67834SAndre Fischer            ToolBoxItem
135b9e67834SAndre Fischer            {
136b9e67834SAndre Fischer                Identifier = TBI_STRIKEOUT;
137b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_STRIKEOUT;
138bc7f1831SAndre Fischer                Command = ".uno:Strikeout";
139b9e67834SAndre Fischer            };
140b9e67834SAndre Fischer            ToolBoxItem
141b9e67834SAndre Fischer            {
142b9e67834SAndre Fischer                Identifier = TBI_SHADOWED;
143b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SHADOWED;
144bc7f1831SAndre Fischer                Command = ".uno:Shadowed";
145b9e67834SAndre Fischer            };
146b9e67834SAndre Fischer        };
147b9e67834SAndre Fischer    };
148b9e67834SAndre Fischer
149b9e67834SAndre Fischer    ToolBox TB_FONTCOLOR
150b9e67834SAndre Fischer    {
151b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONT_COLOR;
152b9e67834SAndre Fischer        SVLook = TRUE ;
153f79579d2SAndre Fischer        Pos = MAP_APPFONT (X3, THIRD_LINE_Y) ;
154b9e67834SAndre Fischer        Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH ,TOOLBOX_ITEM_HEIGHT ) ;
155b9e67834SAndre Fischer        TabStop = TRUE ;
156b9e67834SAndre Fischer        ItemList =
157b9e67834SAndre Fischer        {
158b9e67834SAndre Fischer            ToolBoxItem
159b9e67834SAndre Fischer            {
160b9e67834SAndre Fischer                Identifier = TBI_FONTCOLOR ;
161b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_FONT_COLOR;
162b9e67834SAndre Fischer                DropDown = TRUE ;
163bc7f1831SAndre Fischer                Command = ".uno:Color";
164b9e67834SAndre Fischer            };
165b9e67834SAndre Fischer        };
166b9e67834SAndre Fischer    };
167*ae13266dSAndre Fischer    ToolBox TB_FONTCOLOR_SW
168*ae13266dSAndre Fischer    {
169*ae13266dSAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONT_COLOR;
170*ae13266dSAndre Fischer        SVLook = TRUE ;
171*ae13266dSAndre Fischer        Pos = MAP_APPFONT (X3, THIRD_LINE_Y) ;
172*ae13266dSAndre Fischer        Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH ,TOOLBOX_ITEM_HEIGHT ) ;
173*ae13266dSAndre Fischer        TabStop = TRUE ;
174*ae13266dSAndre Fischer        ItemList =
175*ae13266dSAndre Fischer        {
176*ae13266dSAndre Fischer            ToolBoxItem
177*ae13266dSAndre Fischer            {
178*ae13266dSAndre Fischer                Identifier = TBI_FONTCOLOR ;
179*ae13266dSAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_FONT_COLOR;
180*ae13266dSAndre Fischer                DropDown = TRUE ;
181*ae13266dSAndre Fischer                Command = ".uno:FontColor";
182*ae13266dSAndre Fischer            };
183*ae13266dSAndre Fischer        };
184*ae13266dSAndre Fischer    };
185b9e67834SAndre Fischer
186b9e67834SAndre Fischer    ToolBox TB_HIGHLIGHT
187b9e67834SAndre Fischer    {
188b9e67834SAndre Fischer        SVLook = TRUE ;
189f79579d2SAndre Fischer        Pos = MAP_APPFONT (X2, THIRD_LINE_Y) ;
190b9e67834SAndre Fischer        Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH ,TOOLBOX_ITEM_HEIGHT ) ;
191b9e67834SAndre Fischer        TabStop = TRUE ;
192b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_HIGHLIGHT_COLOR;
193b9e67834SAndre Fischer        Text = "Highlight Color" ;
194b9e67834SAndre Fischer        ItemList =
195b9e67834SAndre Fischer        {
196b9e67834SAndre Fischer            ToolBoxItem
197b9e67834SAndre Fischer            {
198b9e67834SAndre Fischer                Identifier = TBI_HIGHLIGHT ;
199b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_HIGHLIGHT_COLOR;
200b9e67834SAndre Fischer                DropDown = TRUE ;
201*ae13266dSAndre Fischer                Command = ".uno:BackColor";
202b9e67834SAndre Fischer            };
203b9e67834SAndre Fischer        };
204b9e67834SAndre Fischer    };
205b9e67834SAndre Fischer
206b9e67834SAndre Fischer    ToolBox TB_SCRIPT_SW
207b9e67834SAndre Fischer    {
208b9e67834SAndre Fischer        SVLook = TRUE ;
209f79579d2SAndre Fischer        Pos = MAP_APPFONT (X0 + 1 , THIRD_LINE_Y) ;
210b9e67834SAndre Fischer        Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 2 ,TOOLBOX_ITEM_HEIGHT ) ;
211b9e67834SAndre Fischer        TabStop = TRUE ;
212b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_SCRIPT_SW;
213b9e67834SAndre Fischer        Text = "Font Position" ;
214b9e67834SAndre Fischer        ItemList =
215b9e67834SAndre Fischer        {
216b9e67834SAndre Fischer            ToolBoxItem
217b9e67834SAndre Fischer            {
218b9e67834SAndre Fischer                Identifier = TBI_SUPER_SW;
219b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUPER_SW;
220bc7f1831SAndre Fischer                Command = ".uno:SuperScript";
221b9e67834SAndre Fischer            };
222b9e67834SAndre Fischer            ToolBoxItem
223b9e67834SAndre Fischer            {
224b9e67834SAndre Fischer                Identifier = TBI_SUB_SW;
225b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUB_SW;
226bc7f1831SAndre Fischer                Command = ".uno:SubScript";
227b9e67834SAndre Fischer            };
228b9e67834SAndre Fischer        };
229b9e67834SAndre Fischer    };
230b9e67834SAndre Fischer    ToolBox TB_SCRIPT
231b9e67834SAndre Fischer    {
232b9e67834SAndre Fischer        SVLook = TRUE ;
233f79579d2SAndre Fischer        Pos = MAP_APPFONT (X0 + 1 , THIRD_LINE_Y) ;
234b9e67834SAndre Fischer        Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 2 ,TOOLBOX_ITEM_HEIGHT ) ;
235b9e67834SAndre Fischer        TabStop = TRUE ;
236b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_TBX_SCRIPT;
237b9e67834SAndre Fischer        Text = "Font Position" ;
238b9e67834SAndre Fischer        ItemList =
239b9e67834SAndre Fischer        {
240b9e67834SAndre Fischer            ToolBoxItem
241b9e67834SAndre Fischer            {
242b9e67834SAndre Fischer                Identifier = TBI_SUPER;
243b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUPER;
244bc7f1831SAndre Fischer                Command = ".uno:SuperScript";
245b9e67834SAndre Fischer            };
246b9e67834SAndre Fischer            ToolBoxItem
247b9e67834SAndre Fischer            {
248b9e67834SAndre Fischer                Identifier = TBI_SUB;
249b9e67834SAndre Fischer                HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUB;
250bc7f1831SAndre Fischer                Command = ".uno:SubScript";
251b9e67834SAndre Fischer            };
252b9e67834SAndre Fischer        };
253b9e67834SAndre Fischer    };
254b9e67834SAndre Fischer
255b9e67834SAndre Fischer    ToolBox TB_SPACING
256b9e67834SAndre Fischer    {
257b9e67834SAndre Fischer        SVLook = TRUE ;
258f79579d2SAndre Fischer        Pos = MAP_APPFONT (X1, THIRD_LINE_Y) ;
259b9e67834SAndre Fischer        Size = MAP_APPFONT (TOOLBOX_24_16_ITEM_DD_WIDTH, TOOLBOX_24_16_ITEM_HEIGHT ) ;
260b9e67834SAndre Fischer        TabStop = TRUE ;
261b9e67834SAndre Fischer        HelpID = HID_TB_SPACING;
262b9e67834SAndre Fischer        Text = "Character Spacing" ;
263b9e67834SAndre Fischer        ItemList =
264b9e67834SAndre Fischer        {
265b9e67834SAndre Fischer            ToolBoxItem
266b9e67834SAndre Fischer            {
267b9e67834SAndre Fischer                Identifier = TBI_SPACING;
268b9e67834SAndre Fischer                DropDown = TRUE ;
269b9e67834SAndre Fischer                HelpID = HID_TBI_SPACING;
270bc7f1831SAndre Fischer                Command = ".uno:Spacing";
271b9e67834SAndre Fischer            };
272b9e67834SAndre Fischer        };
273b9e67834SAndre Fischer    };
274b9e67834SAndre Fischer};
275b9e67834SAndre Fischer
276b9e67834SAndre FischerControl RID_POPUPPANEL_TEXTPAGE_UNDERLINE
277b9e67834SAndre Fischer{
278b9e67834SAndre Fischer    OutputSize = TRUE;
279b9e67834SAndre Fischer    DialogControl = TRUE;
280b9e67834SAndre Fischer    Border = FALSE;
281b9e67834SAndre Fischer
282d4aefcaeSZheng Fan    Size = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_UNDERLINE_WIDTH,  13+ VS_UNDERLINE_HEIGHT + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE);
283b9e67834SAndre Fischer    Control VS_UNDERLINE
284b9e67834SAndre Fischer    {
285b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_UNDERLINE_VS;
286b9e67834SAndre Fischer        Hide = TRUE ;
287b9e67834SAndre Fischer        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
288d4aefcaeSZheng Fan        Size = MAP_APPFONT ( VS_UNDERLINE_WIDTH  ,VS_UNDERLINE_HEIGHT);
289b9e67834SAndre Fischer        TabStop = TRUE ;
290b9e67834SAndre Fischer        Text = "Underline";
291b9e67834SAndre Fischer    };
292b9e67834SAndre Fischer
293b9e67834SAndre Fischer    PushButton PB_OPTIONS
294b9e67834SAndre Fischer    {
295b9e67834SAndre Fischer        HelpID = HID_UNDERLINE_BTN;
296d4aefcaeSZheng Fan        Pos = MAP_APPFONT (  POPUPPANEL_MARGIN_SMALL + OFFSET_X  , POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y + VS_UNDERLINE_HEIGHT );
297d4aefcaeSZheng Fan        Size = MAP_APPFONT ( VS_UNDERLINE_WIDTH, 13 );
298b9e67834SAndre Fischer        TabStop = TRUE;
299b9e67834SAndre Fischer        Text [ en-US ] = "~More Options...";
300b9e67834SAndre Fischer    };
301b9e67834SAndre Fischer
302b9e67834SAndre Fischer
303b9e67834SAndre Fischer    Image IMG_SINGLE
304b9e67834SAndre Fischer    {
3057c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line1.bmp";};
306b9e67834SAndre Fischer    };
307b9e67834SAndre Fischer    Image IMG_DOUBLE
308b9e67834SAndre Fischer    {
3097c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line2.bmp";};
310b9e67834SAndre Fischer    };
311b9e67834SAndre Fischer    Image IMG_BOLD2
312b9e67834SAndre Fischer    {
3137c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line3.bmp";};
314b9e67834SAndre Fischer    };
315b9e67834SAndre Fischer    Image IMG_DOT
316b9e67834SAndre Fischer    {
3177c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line4.bmp";};
318b9e67834SAndre Fischer    };
319b9e67834SAndre Fischer    Image IMG_DOT_BOLD
320b9e67834SAndre Fischer    {
3217c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line5.bmp";};
322b9e67834SAndre Fischer    };
323b9e67834SAndre Fischer    Image IMG_DASH
324b9e67834SAndre Fischer    {
3257c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line6.bmp";};
326b9e67834SAndre Fischer    };
327b9e67834SAndre Fischer    Image IMG_DASH_LONG
328b9e67834SAndre Fischer    {
3297c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line7.bmp";};
330b9e67834SAndre Fischer    };
331b9e67834SAndre Fischer    Image IMG_DASH_DOT
332b9e67834SAndre Fischer    {
3337c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line8.bmp";};
334b9e67834SAndre Fischer    };
335b9e67834SAndre Fischer    Image IMG_DASH_DOT_DOT
336b9e67834SAndre Fischer    {
3377c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line9.bmp";};
338b9e67834SAndre Fischer    };
339b9e67834SAndre Fischer    Image IMG_WAVE
340b9e67834SAndre Fischer    {
3417c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line10.bmp";};
342b9e67834SAndre Fischer    };
343b9e67834SAndre Fischer
344b9e67834SAndre Fischer    //high contract
345b9e67834SAndre Fischer    Image IMG_SINGLE_H
346b9e67834SAndre Fischer    {
3477c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line1_h.bmp";};
348b9e67834SAndre Fischer    };
349b9e67834SAndre Fischer    Image IMG_DOUBLE_H
350b9e67834SAndre Fischer    {
3517c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line2_h.bmp";};
352b9e67834SAndre Fischer    };
353b9e67834SAndre Fischer    Image IMG_BOLD2_H
354b9e67834SAndre Fischer    {
3557c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line3_h.bmp";};
356b9e67834SAndre Fischer    };
357b9e67834SAndre Fischer    Image IMG_DOT_H
358b9e67834SAndre Fischer    {
3597c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line4_h.bmp";};
360b9e67834SAndre Fischer    };
361b9e67834SAndre Fischer    Image IMG_DOT_BOLD_H
362b9e67834SAndre Fischer    {
3637c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line5_h.bmp";};
364b9e67834SAndre Fischer    };
365b9e67834SAndre Fischer    Image IMG_DASH_H
366b9e67834SAndre Fischer    {
3677c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line6_h.bmp";};
368b9e67834SAndre Fischer    };
369b9e67834SAndre Fischer    Image IMG_DASH_LONG_H
370b9e67834SAndre Fischer    {
3717c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line7_h.bmp";};
372b9e67834SAndre Fischer    };
373b9e67834SAndre Fischer    Image IMG_DASH_DOT_H
374b9e67834SAndre Fischer    {
3757c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line8_h.bmp";};
376b9e67834SAndre Fischer    };
377b9e67834SAndre Fischer    Image IMG_DASH_DOT_DOT_H
378b9e67834SAndre Fischer    {
3797c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line9_h.bmp";};
380b9e67834SAndre Fischer    };
381b9e67834SAndre Fischer    Image IMG_WAVE_H
382b9e67834SAndre Fischer    {
3837c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/line10_h.bmp";};
384b9e67834SAndre Fischer    };
385b9e67834SAndre Fischer
386b9e67834SAndre Fischer    //image when selected
387b9e67834SAndre Fischer    Image IMG_SINGLE_SEL
388b9e67834SAndre Fischer    {
3897c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line1.bmp";};
390b9e67834SAndre Fischer    };
391b9e67834SAndre Fischer    Image IMG_DOUBLE_SEL
392b9e67834SAndre Fischer    {
3937c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line2.bmp";};
394b9e67834SAndre Fischer    };
395b9e67834SAndre Fischer    Image IMG_BOLD2_SEL
396b9e67834SAndre Fischer    {
3977c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line3.bmp";};
398b9e67834SAndre Fischer    };
399b9e67834SAndre Fischer    Image IMG_DOT_SEL
400b9e67834SAndre Fischer    {
4017c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line4.bmp";};
402b9e67834SAndre Fischer    };
403b9e67834SAndre Fischer    Image IMG_DOT_BOLD_SEL
404b9e67834SAndre Fischer    {
4057c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line5.bmp";};
406b9e67834SAndre Fischer    };
407b9e67834SAndre Fischer    Image IMG_DASH_SEL
408b9e67834SAndre Fischer    {
4097c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line6.bmp";};
410b9e67834SAndre Fischer    };
411b9e67834SAndre Fischer    Image IMG_DASH_LONG_SEL
412b9e67834SAndre Fischer    {
4137c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line7.bmp";};
414b9e67834SAndre Fischer    };
415b9e67834SAndre Fischer    Image IMG_DASH_DOT_SEL
416b9e67834SAndre Fischer    {
4177c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line8.bmp";};
418b9e67834SAndre Fischer    };
419b9e67834SAndre Fischer    Image IMG_DASH_DOT_DOT_SEL
420b9e67834SAndre Fischer    {
4217c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line9.bmp";};
422b9e67834SAndre Fischer    };
423b9e67834SAndre Fischer    Image IMG_WAVE_SEL
424b9e67834SAndre Fischer    {
4257c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/selected-line10.bmp";};
426b9e67834SAndre Fischer    };
427b9e67834SAndre Fischer
428a3586beeSOliver-Rainer Wittmann    String STR_WITHOUT
429a3586beeSOliver-Rainer Wittmann    {
430a3586beeSOliver-Rainer Wittmann        Text [ en-US ] = "(Without)";
431a3586beeSOliver-Rainer Wittmann    };
432a3586beeSOliver-Rainer Wittmann
433b9e67834SAndre Fischer    //tips
434b9e67834SAndre Fischer    String STR_SINGLE
435b9e67834SAndre Fischer    {
436b9e67834SAndre Fischer        Text [ en-US ] = "Single";
437b9e67834SAndre Fischer    };
438b9e67834SAndre Fischer    String STR_DOUBLE
439b9e67834SAndre Fischer    {
440b9e67834SAndre Fischer        Text [ en-US ] = "Double";
441b9e67834SAndre Fischer    };
442b9e67834SAndre Fischer    String STR_BOLD
443b9e67834SAndre Fischer    {
444b9e67834SAndre Fischer        Text [ en-US ] = "Bold";
445b9e67834SAndre Fischer    };
446b9e67834SAndre Fischer    String STR_DOT
447b9e67834SAndre Fischer    {
448b9e67834SAndre Fischer        Text [ en-US ] = "Dotted";
449b9e67834SAndre Fischer    };
450b9e67834SAndre Fischer    String STR_DOT_BOLD
451b9e67834SAndre Fischer    {
452b9e67834SAndre Fischer        Text [ en-US ] = "Dotted (Bold)";
453b9e67834SAndre Fischer    };
454b9e67834SAndre Fischer    String STR_DASH
455b9e67834SAndre Fischer    {
456b9e67834SAndre Fischer        Text [ en-US ] = "Dash";
457b9e67834SAndre Fischer    };
458b9e67834SAndre Fischer    String STR_DASH_LONG
459b9e67834SAndre Fischer    {
460b9e67834SAndre Fischer        Text [ en-US ] = "Long Dash";
461b9e67834SAndre Fischer    };
462b9e67834SAndre Fischer    String STR_DASH_DOT
463b9e67834SAndre Fischer    {
464b9e67834SAndre Fischer        Text [ en-US ] = "Dot Dash";
465b9e67834SAndre Fischer    };
466b9e67834SAndre Fischer    String STR_DASH_DOT_DOT
467b9e67834SAndre Fischer    {
468b9e67834SAndre Fischer        Text [ en-US ] = "Dot Dot Dash";
469b9e67834SAndre Fischer    };
470b9e67834SAndre Fischer    String STR_WAVE
471b9e67834SAndre Fischer    {
472b9e67834SAndre Fischer        Text [ en-US ] = "Wave";
473b9e67834SAndre Fischer    };
474b9e67834SAndre Fischer
475b9e67834SAndre Fischer};
476b9e67834SAndre Fischer
477b9e67834SAndre Fischer
478b9e67834SAndre FischerControl RID_POPUPPANEL_TEXTPAGE_FONT_COLOR
479b9e67834SAndre Fischer{
480b9e67834SAndre Fischer    OutputSize = TRUE;
481b9e67834SAndre Fischer    DialogControl = TRUE;
482b9e67834SAndre Fischer    Border = FALSE;
483b9e67834SAndre Fischer    Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT  );
484b9e67834SAndre Fischer
485b9e67834SAndre Fischer    Control VS_FONT_COLOR
486b9e67834SAndre Fischer    {
487b9e67834SAndre Fischer        HelpID = HID_PPROPERTYPANEL_TEXT_COLOR_VS;
488b9e67834SAndre Fischer        Hide = TRUE ;
489b9e67834SAndre Fischer        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
490b9e67834SAndre Fischer        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
491b9e67834SAndre Fischer        TabStop = TRUE ;
492b9e67834SAndre Fischer        Text = "Color Picker";
493b9e67834SAndre Fischer    };
494b9e67834SAndre Fischer    String STR_AUTOMATICE
495b9e67834SAndre Fischer    {
496b9e67834SAndre Fischer        Text [ en-US ] = "Automatic";
497b9e67834SAndre Fischer    };
498b9e67834SAndre Fischer};
499b9e67834SAndre Fischer
500b9e67834SAndre FischerControl RID_POPUPPANEL_TEXTPAGE_SPACING
501b9e67834SAndre Fischer{
502b9e67834SAndre Fischer    OutputSize = TRUE;
503b9e67834SAndre Fischer    DialogControl = TRUE;
504b9e67834SAndre Fischer    Border = FALSE;
505b9e67834SAndre Fischer
506b9e67834SAndre Fischer    Size = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_SPACING_WIDTH , POPUPPANEL_MARGIN_SMALL * 3 + 15 * 6 + CUSTOM_HEIGHT + TEXT_HEIGHT + POPUPPANEL_MARGIN_LARGE + POPUP_BORDER_WIDTH + 1);
507b9e67834SAndre Fischer
508b9e67834SAndre Fischer    Control VS_SPACING
509b9e67834SAndre Fischer    {
510b9e67834SAndre Fischer        HelpId = HID_PPROPERTYPANEL_TEXT_SPACING_VS ;
511b9e67834SAndre Fischer        Hide = TRUE ;
512b9e67834SAndre Fischer        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
513b9e67834SAndre Fischer        Size = MAP_APPFONT ( VS_SPACING_WIDTH  , 15 * 6);
514b9e67834SAndre Fischer        TabStop = TRUE ;
515b9e67834SAndre Fischer        Text  = "Character Spacing";
516b9e67834SAndre Fischer    };
517b9e67834SAndre Fischer
518b9e67834SAndre Fischer    FixedText FT_LASTCUSTOM
519b9e67834SAndre Fischer    {
520b9e67834SAndre Fischer        Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X ,POPUPPANEL_MARGIN_SMALL + OFFSET_Y + POPUPPANEL_MARGIN_SMALL + 15 * 6) ;
521b9e67834SAndre Fischer        Size = MAP_APPFONT ( CUSTOM_WIDTH , TEXT_HEIGHT );
522b9e67834SAndre Fischer        Left = TRUE ;
523b9e67834SAndre Fischer        Text [ en-US ] = "Custom:" ;
524b9e67834SAndre Fischer    };
525b9e67834SAndre Fischer    //custom area
526b9e67834SAndre Fischer    FixedText   FT_SPACING
527b9e67834SAndre Fischer    {
528b9e67834SAndre Fischer        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE);
529b9e67834SAndre Fischer        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , TEXT_HEIGHT );
530b9e67834SAndre Fischer        Left = TRUE ;
531b9e67834SAndre Fischer        Text [ en-US ] = "~Character spacing: " ;
532b9e67834SAndre Fischer    };
533b9e67834SAndre Fischer    ListBox LB_KERNING
534b9e67834SAndre Fischer    {
535b9e67834SAndre Fischer        Border = TRUE;
536b9e67834SAndre Fischer        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE + TEXT_HEIGHT + POPUPPANEL_MARGIN_SMALL);//20
537b9e67834SAndre Fischer        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , 80 ) ;
538b9e67834SAndre Fischer        TabStop = TRUE;
539b9e67834SAndre Fischer        DropDown = TRUE ;
540b9e67834SAndre Fischer        HelpID = HID_SPACING_CB_KERN;
541b9e67834SAndre Fischer        StringList [ en-US ] =
542b9e67834SAndre Fischer        {
543b9e67834SAndre Fischer            < "Default" ; Default ; > ;
544b9e67834SAndre Fischer            < "Expanded" ; Default ; > ;
545b9e67834SAndre Fischer            < "Condensed" ; Default ; > ;
546b9e67834SAndre Fischer        };
547b9e67834SAndre Fischer    };
548b9e67834SAndre Fischer    FixedText   FT_BY
549b9e67834SAndre Fischer    {
550b9e67834SAndre Fischer        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT + POPUPPANEL_MARGIN_SMALL + CBOX_HEIGHT );
551b9e67834SAndre Fischer        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , TEXT_HEIGHT );
552b9e67834SAndre Fischer        Left = TRUE ;
553b9e67834SAndre Fischer        Text [ en-US ] = "Change ~by: " ;
554b9e67834SAndre Fischer    };
555b9e67834SAndre Fischer    MetricField ED_KERNING
556b9e67834SAndre Fischer    {
557b9e67834SAndre Fischer        HelpID = HID_SPACING_MB_KERN;
558b9e67834SAndre Fischer        Border = TRUE;
559b9e67834SAndre Fischer        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT * 2 + POPUPPANEL_MARGIN_SMALL * 2 + CBOX_HEIGHT);//60
560b9e67834SAndre Fischer        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , MBOX_HEIGHT );
561b9e67834SAndre Fischer        TabStop = TRUE;
562b9e67834SAndre Fischer        Repeat = TRUE ;
563b9e67834SAndre Fischer        Spin = TRUE ;
564b9e67834SAndre Fischer        Maximum = 9999 ;
565b9e67834SAndre Fischer        DecimalDigits = 1 ;
566b9e67834SAndre Fischer        Unit = FUNIT_POINT ;
567b9e67834SAndre Fischer        SpinSize = 10 ;
568b9e67834SAndre Fischer    };
569b9e67834SAndre Fischer
570b9e67834SAndre Fischer    Image IMG_NORMAL
571b9e67834SAndre Fischer    {
5727c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_normal.bmp" ;};//"spacing_normal.bmp"
573b9e67834SAndre Fischer    };
574b9e67834SAndre Fischer    Image IMG_VERY_TIGHT
575b9e67834SAndre Fischer    {
5767c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_very tight.bmp";};
577b9e67834SAndre Fischer    };
578b9e67834SAndre Fischer    Image IMG_TIGHT
579b9e67834SAndre Fischer    {
5807c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_tight.bmp";};
581b9e67834SAndre Fischer    };
582b9e67834SAndre Fischer    Image IMG_LOOSE
583b9e67834SAndre Fischer    {
5847c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_loose.bmp";};
585b9e67834SAndre Fischer    };
586b9e67834SAndre Fischer    Image IMG_VERY_LOOSE
587b9e67834SAndre Fischer    {
5887c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_very loose.bmp";};
589b9e67834SAndre Fischer    };
590b9e67834SAndre Fischer
591b9e67834SAndre Fischer    Image IMG_NORMAL_S
592b9e67834SAndre Fischer    {
5937c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_normal_s.bmp";};
594b9e67834SAndre Fischer    };
595b9e67834SAndre Fischer    Image IMG_VERY_TIGHT_S
596b9e67834SAndre Fischer    {
5977c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_very tight_s.bmp";};
598b9e67834SAndre Fischer    };
599b9e67834SAndre Fischer    Image IMG_TIGHT_S
600b9e67834SAndre Fischer    {
6017c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_tight_s.bmp";};
602b9e67834SAndre Fischer    };
603b9e67834SAndre Fischer    Image IMG_LOOSE_S
604b9e67834SAndre Fischer    {
6057c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_loose_s.bmp";};
606b9e67834SAndre Fischer    };
607b9e67834SAndre Fischer    Image IMG_VERY_LOOSE_S
608b9e67834SAndre Fischer    {
6097c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/spacing_very loose_s.bmp";};
610b9e67834SAndre Fischer    };
611b9e67834SAndre Fischer
612b9e67834SAndre Fischer    Image IMG_CUSTOM
613b9e67834SAndre Fischer    {
6147c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/last_custom_common.png";};
615b9e67834SAndre Fischer    };
616b9e67834SAndre Fischer    Image IMG_CUSTOM_GRAY
617b9e67834SAndre Fischer    {
6187c526447SAndre Fischer        ImageBitmap = Bitmap{File = "symphony/last_custom_common_grey.png";};
619b9e67834SAndre Fischer    };
620b9e67834SAndre Fischer
621b9e67834SAndre Fischer    String STR_VERY_TIGHT
622b9e67834SAndre Fischer    {
623b9e67834SAndre Fischer        Text [ en-US ] = "Very Tight";
624b9e67834SAndre Fischer    };
625b9e67834SAndre Fischer    String STR_TIGHT
626b9e67834SAndre Fischer    {
627b9e67834SAndre Fischer        Text [ en-US ] = "Tight";
628b9e67834SAndre Fischer    };
629b9e67834SAndre Fischer    String STR_NORMAL
630b9e67834SAndre Fischer    {
631b9e67834SAndre Fischer        Text [ en-US ] = "Normal";
632b9e67834SAndre Fischer    };
633b9e67834SAndre Fischer    String STR_LOOSE
634b9e67834SAndre Fischer    {
635b9e67834SAndre Fischer        Text [ en-US ] = "Loose";
636b9e67834SAndre Fischer    };
637b9e67834SAndre Fischer    String STR_VERY_LOOSE
638b9e67834SAndre Fischer    {
639b9e67834SAndre Fischer        Text [ en-US ] = "Very Loose";
640b9e67834SAndre Fischer    };
641b9e67834SAndre Fischer    String STR_CUSTOM
642b9e67834SAndre Fischer    {
643b9e67834SAndre Fischer        Text [ en-US ] = "Last Custom Value";
644b9e67834SAndre Fischer    };
645b9e67834SAndre Fischer
646b9e67834SAndre Fischer    String STR_VERY_TIGHT_TIP
647b9e67834SAndre Fischer    {
648b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Condensed By: 3pt";
649b9e67834SAndre Fischer    };
650b9e67834SAndre Fischer    String STR_TIGHT_TIP
651b9e67834SAndre Fischer    {
652b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Condensed By: 1.5pt";
653b9e67834SAndre Fischer    };
654b9e67834SAndre Fischer    String STR_NORMAL_TIP
655b9e67834SAndre Fischer    {
656b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Normal";
657b9e67834SAndre Fischer    };
658b9e67834SAndre Fischer    String STR_LOOSE_TIP
659b9e67834SAndre Fischer    {
660b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Expanded By: 3pt";
661b9e67834SAndre Fischer    };
662b9e67834SAndre Fischer    String STR_VERY_LOOSE_TIP
663b9e67834SAndre Fischer    {
664b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Expanded By: 6pt";
665b9e67834SAndre Fischer    };
666b9e67834SAndre Fischer    String STR_CUSTOM_C_TIP
667b9e67834SAndre Fischer    {
668b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Condensed By: ";
669b9e67834SAndre Fischer    };
670b9e67834SAndre Fischer    String STR_CUSTOM_E_TIP
671b9e67834SAndre Fischer    {
672b9e67834SAndre Fischer        Text [ en-US ] = " Spacing: Expanded By: ";
673b9e67834SAndre Fischer    };
674b9e67834SAndre Fischer    String STR_PT
675b9e67834SAndre Fischer    {
676b9e67834SAndre Fischer        Text[ en-US ] = "pt";
677b9e67834SAndre Fischer    };
678b9e67834SAndre Fischer};
679