xref: /AOO41X/main/sw/source/ui/dbui/mmgreetingspage.src (revision 8660f102e0dedad7df9a3fe0f3e5d0f91bcf072b)
1*8660f102SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*8660f102SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*8660f102SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*8660f102SAndrew Rist * distributed with this work for additional information
6*8660f102SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*8660f102SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*8660f102SAndrew Rist * "License"); you may not use this file except in compliance
9*8660f102SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*8660f102SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*8660f102SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*8660f102SAndrew Rist * software distributed under the License is distributed on an
15*8660f102SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8660f102SAndrew Rist * KIND, either express or implied.  See the License for the
17*8660f102SAndrew Rist * specific language governing permissions and limitations
18*8660f102SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*8660f102SAndrew Rist *************************************************************/
21*8660f102SAndrew Rist
22*8660f102SAndrew Rist
23cdf0e10cSrcweir#include <mmgreetingspage.hrc>
24cdf0e10cSrcweir#include <dbui.hrc>
25cdf0e10cSrcweir#include <helpid.h>
26cdf0e10cSrcweir
27cdf0e10cSrcweir#define _LB_FEMALECOLUMN                \
28cdf0e10cSrcweir        StringList [en-US]=             \
29cdf0e10cSrcweir        {                               \
30cdf0e10cSrcweir            < "< not available >" ; > ; \
31cdf0e10cSrcweir        };
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define GREETINGS_BODY  \
35cdf0e10cSrcweir    CheckBox CB_PERSONALIZED                                                    \
36cdf0e10cSrcweir    {                                                                               \
37cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 17 + TOP_OFFSET ) ;                  \
38cdf0e10cSrcweir        Size = MAP_APPFONT ( 226 , 10 ) ;                                           \
39cdf0e10cSrcweir        Text[ en-US ] = "Insert personalized salutation";                    \
40cdf0e10cSrcweir    };                                                                              \
41cdf0e10cSrcweir    FixedText   FT_FEMALE                                                           \
42cdf0e10cSrcweir    {                                                                               \
43cdf0e10cSrcweir        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 32 + TOP_OFFSET ) ;                  \
44cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 8 ) ;                                             \
45cdf0e10cSrcweir        Text[ en-US ] = "~Female";                                              \
46cdf0e10cSrcweir    };                                                                              \
47cdf0e10cSrcweir    ListBox     LB_FEMALE                                                           \
48cdf0e10cSrcweir    {                                                                               \
49cdf0e10cSrcweir        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 30 + TOP_OFFSET ) ;                                             \
50cdf0e10cSrcweir        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
51cdf0e10cSrcweir        DropDown = TRUE;                                                            \
52cdf0e10cSrcweir        Border = TRUE;                                                              \
53cdf0e10cSrcweir    };                                                                              \
54cdf0e10cSrcweir    PushButton  PB_FEMALE                                                           \
55cdf0e10cSrcweir    {                                                                               \
56cdf0e10cSrcweir        Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 29 + TOP_OFFSET ) ;                                            \
57cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;                                            \
58cdf0e10cSrcweir        Text[ en-US ] = "~New...";                                              \
59cdf0e10cSrcweir    };                                                                              \
60cdf0e10cSrcweir    FixedText   FT_MALE                                                             \
61cdf0e10cSrcweir    {                                                                               \
62cdf0e10cSrcweir        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 49 + TOP_OFFSET ) ;                                             \
63cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 8 ) ;                                             \
64cdf0e10cSrcweir        Text[ en-US ] = "~Male";                                                \
65cdf0e10cSrcweir    };                                                                              \
66cdf0e10cSrcweir    ListBox     LB_MALE                                                             \
67cdf0e10cSrcweir    {                                                                               \
68cdf0e10cSrcweir        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 47 + TOP_OFFSET ) ;                                             \
69cdf0e10cSrcweir        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
70cdf0e10cSrcweir        DropDown = TRUE;                                                            \
71cdf0e10cSrcweir        Border = TRUE;                                                              \
72cdf0e10cSrcweir    };                                                                              \
73cdf0e10cSrcweir    PushButton  PB_MALE                                                             \
74cdf0e10cSrcweir    {                                                                               \
75cdf0e10cSrcweir        Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 48 + TOP_OFFSET ) ;                                            \
76cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;                                            \
77cdf0e10cSrcweir        Text[ en-US ] = "N~ew...";                                              \
78cdf0e10cSrcweir    };                                                                              \
79cdf0e10cSrcweir    FixedText   FI_FEMALE                                                       \
80cdf0e10cSrcweir    {                                                                               \
81cdf0e10cSrcweir        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 67 + TOP_OFFSET ) ;                                             \
82cdf0e10cSrcweir        Size = MAP_APPFONT ( 225 , 8 ) ;                                            \
83cdf0e10cSrcweir        Text[ en-US ] = "Address list field indicating a female recipient";     \
84cdf0e10cSrcweir    };                                                                              \
85cdf0e10cSrcweir    FixedText   FT_FEMALECOLUMN                                                     \
86cdf0e10cSrcweir    {                                                                               \
87cdf0e10cSrcweir        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 80 + TOP_OFFSET ) ;                  \
88cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 8 ) ;                                            \
89cdf0e10cSrcweir        Text[ en-US ] = "Field name";           \
90cdf0e10cSrcweir    };                                                                              \
91cdf0e10cSrcweir    ListBox LB_FEMALECOLUMN                                                         \
92cdf0e10cSrcweir    {                                                                               \
93cdf0e10cSrcweir        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 78 + TOP_OFFSET ) ;                  \
94cdf0e10cSrcweir        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
95cdf0e10cSrcweir        DropDown = TRUE;                                                            \
96cdf0e10cSrcweir        Border = TRUE;                                                              \
97cdf0e10cSrcweir        _LB_FEMALECOLUMN                                                           \
98cdf0e10cSrcweir    };                                                                              \
99cdf0e10cSrcweir    FixedText   FT_FEMALEFIELD                                                       \
100cdf0e10cSrcweir    {                                                                               \
101cdf0e10cSrcweir        Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 95 + TOP_OFFSET ) ;                  \
102cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 8 ) ;                                            \
103cdf0e10cSrcweir        Text[ en-US ] = "Field value";           \
104cdf0e10cSrcweir    };                                                                              \
105cdf0e10cSrcweir    ComboBox CB_FEMALEFIELD                                                         \
106cdf0e10cSrcweir    {                                                                               \
107cdf0e10cSrcweir        Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 93 + TOP_OFFSET ) ;                                             \
108cdf0e10cSrcweir        Size = MAP_APPFONT ( 121 , 50 ) ;                                           \
109cdf0e10cSrcweir        DropDown = TRUE;                                                            \
110cdf0e10cSrcweir        Border = TRUE;                                                              \
111cdf0e10cSrcweir    };                                                                              \
112cdf0e10cSrcweir    FixedText   FT_NEUTRAL                                                       \
113cdf0e10cSrcweir    {                                                                               \
114cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 113 + TOP_OFFSET ) ;                                             \
115cdf0e10cSrcweir        Size = MAP_APPFONT ( 180 , 8 ) ;                                            \
116cdf0e10cSrcweir        Text[ en-US ] = "General salutation";           \
117cdf0e10cSrcweir    };                                                                              \
118cdf0e10cSrcweir    ComboBox     CB_NEUTRAL                                                         \
119cdf0e10cSrcweir    {                                                                               \
120cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 124 + TOP_OFFSET ) ;                 \
121cdf0e10cSrcweir        Size = MAP_APPFONT ( 180 , 50 ) ;                                           \
122cdf0e10cSrcweir        DropDown = TRUE;                                                            \
123cdf0e10cSrcweir        Border = TRUE;                                                              \
124cdf0e10cSrcweir    };
125cdf0e10cSrcweir
126cdf0e10cSrcweir#define TOP_OFFSET 24
127cdf0e10cSrcweir#define LEFT_OFFSET 6
128cdf0e10cSrcweir
129cdf0e10cSrcweirTabPage DLG_MM_GREETINGS_PAGE
130cdf0e10cSrcweir{
131cdf0e10cSrcweir    HelpID = HID_MM_GREETINGSPAGE ;
132cdf0e10cSrcweir    Size = MAP_APPFONT ( 260 , 250 ) ;
133cdf0e10cSrcweir    Hide = TRUE ;
134cdf0e10cSrcweir
135cdf0e10cSrcweir    FixedText FI_HEADER
136cdf0e10cSrcweir    {
137cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 8 ) ;
138cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
139cdf0e10cSrcweir        Text [ en-US ] = "Create a salutation";
140cdf0e10cSrcweir    };
141cdf0e10cSrcweir    CheckBox    CB_GREETINGLINE
142cdf0e10cSrcweir    {
143cdf0e10cSrcweir        HelpID = "sw:CheckBox:DLG_MM_GREETINGS_PAGE:CB_GREETINGLINE";
144cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 27 );
145cdf0e10cSrcweir        Size = MAP_APPFONT ( 242 , 10 );
146cdf0e10cSrcweir        Text[ en-US ] = "This document should contain a salutation";
147cdf0e10cSrcweir    };
148cdf0e10cSrcweir    GREETINGS_BODY
149cdf0e10cSrcweir    FixedText       FI_PREVIEW
150cdf0e10cSrcweir    {
151cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 168 ) ;
152cdf0e10cSrcweir        Size = MAP_APPFONT ( 242 , 8 ) ;
153cdf0e10cSrcweir        Text[ en-US ] = "Preview";
154cdf0e10cSrcweir    };
155cdf0e10cSrcweir    Window          WIN_PREVIEW
156cdf0e10cSrcweir    {
157cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 179 );
158cdf0e10cSrcweir        Size = MAP_APPFONT ( 186 , 21 ) ;
159cdf0e10cSrcweir        Border = TRUE;
160cdf0e10cSrcweir    };
161cdf0e10cSrcweir    PushButton      PB_ASSIGN
162cdf0e10cSrcweir    {
163cdf0e10cSrcweir        HelpID = "sw:PushButton:DLG_MM_GREETINGS_PAGE:PB_ASSIGN";
164cdf0e10cSrcweir        Pos = MAP_APPFONT ( 204 , 179 ) ;
165cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
166cdf0e10cSrcweir        Text[ en-US ] = "~Match fields...";
167cdf0e10cSrcweir    };
168cdf0e10cSrcweir    FixedText       FI_DOCINDEX
169cdf0e10cSrcweir    {
170cdf0e10cSrcweir        Pos = MAP_APPFONT ( 121 , 206 ) ;
171cdf0e10cSrcweir        Size = MAP_APPFONT (  50, 8 ) ;
172cdf0e10cSrcweir        Right = TRUE;
173cdf0e10cSrcweir    };
174cdf0e10cSrcweir    ImageButton     IB_PREVSET
175cdf0e10cSrcweir    {
176cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_PREVSET";
177cdf0e10cSrcweir        Pos = MAP_APPFONT ( 177 , 204 ) ;
178cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
179cdf0e10cSrcweir        SYMBOL = IMAGEBUTTON_PREV;
180cdf0e10cSrcweir        QuickHelpText[ en-US ] = "Preview Previous Salutation";
181cdf0e10cSrcweir    };
182cdf0e10cSrcweir    ImageButton     IB_NEXTSET
183cdf0e10cSrcweir    {
184cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_NEXTSET";
185cdf0e10cSrcweir        Pos = MAP_APPFONT ( 188 , 204 ) ;
186cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
187cdf0e10cSrcweir        SYMBOL = IMAGEBUTTON_NEXT ;
188cdf0e10cSrcweir        QuickHelpText[ en-US ] = "Preview Next Salutation";
189cdf0e10cSrcweir    };
190cdf0e10cSrcweir    String STR_DOCUMENT
191cdf0e10cSrcweir    {
192cdf0e10cSrcweir        Text[ en-US ] = "Document: %1";
193cdf0e10cSrcweir    };
194cdf0e10cSrcweir};
195cdf0e10cSrcweir
196cdf0e10cSrcweir#undef TOP_OFFSET
197cdf0e10cSrcweir#undef LEFT_OFFSET
198cdf0e10cSrcweir
199cdf0e10cSrcweir#define TOP_OFFSET 0
200cdf0e10cSrcweir#define LEFT_OFFSET 0
201cdf0e10cSrcweirModalDialog DLG_MM_MAILBODY
202cdf0e10cSrcweir{
203cdf0e10cSrcweir    HelpID = HID_MM_MAILBODY;
204cdf0e10cSrcweir    Size = MAP_APPFONT ( 254 , 238 ) ;
205cdf0e10cSrcweir    OutputSize = TRUE ;
206cdf0e10cSrcweir    SVLook = TRUE ;
207cdf0e10cSrcweir    Moveable = TRUE ;
208cdf0e10cSrcweir    Text [ en-US ] = "E-Mail Message";
209cdf0e10cSrcweir    CheckBox    CB_GREETINGLINE
210cdf0e10cSrcweir    {
211cdf0e10cSrcweir        HelpID = "sw:CheckBox:DLG_MM_MAILBODY:CB_GREETINGLINE";
212cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6  , 3 ) ;
213cdf0e10cSrcweir        Size = MAP_APPFONT ( 242 , 10 ) ;
214cdf0e10cSrcweir        Text[ en-US ] = "This e-mail should contain a salutation";
215cdf0e10cSrcweir    };
216cdf0e10cSrcweir    GREETINGS_BODY
217cdf0e10cSrcweir    FixedText           FT_BODY
218cdf0e10cSrcweir    {
219cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 140 ) ;
220cdf0e10cSrcweir        Size = MAP_APPFONT ( 174 , 8 ) ;
221cdf0e10cSrcweir        Text[ en-US ] = "Write your message here";
222cdf0e10cSrcweir    };
223cdf0e10cSrcweir    MultiLineEdit MLE_BODY
224cdf0e10cSrcweir    {
225cdf0e10cSrcweir        HelpID = "sw:MultiLineEdit:DLG_MM_MAILBODY:MLE_BODY";
226cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12,   151 ) ;
227cdf0e10cSrcweir        Size = MAP_APPFONT ( 180 , 50 ) ;
228cdf0e10cSrcweir        Border = TRUE;
229cdf0e10cSrcweir        TabStop = TRUE ;
230cdf0e10cSrcweir        Left = TRUE ;
231cdf0e10cSrcweir        VScroll = TRUE ;
232cdf0e10cSrcweir        HScroll = TRUE ;
233cdf0e10cSrcweir        IgnoreTab = TRUE;
234cdf0e10cSrcweir    };
235cdf0e10cSrcweir    FixedLine           FL_SEPARATOR
236cdf0e10cSrcweir    {
237cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0 , 207 ) ;
238cdf0e10cSrcweir        Size = MAP_APPFONT ( 254 , 8 ) ;
239cdf0e10cSrcweir    };
240cdf0e10cSrcweir    OKButton            PB_OK
241cdf0e10cSrcweir    {
242cdf0e10cSrcweir        Pos = MAP_APPFONT ( 89, 218 ) ;
243cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
244cdf0e10cSrcweir    };
245cdf0e10cSrcweir    CancelButton        PB_CANCEL
246cdf0e10cSrcweir    {
247cdf0e10cSrcweir        Pos = MAP_APPFONT ( 142 , 218 ) ;
248cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
249cdf0e10cSrcweir    };
250cdf0e10cSrcweir    HelpButton          PB_HELP
251cdf0e10cSrcweir    {
252cdf0e10cSrcweir        Pos = MAP_APPFONT ( 198 , 218 ) ;
253cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
254cdf0e10cSrcweir    };
255cdf0e10cSrcweir};
256cdf0e10cSrcweir
257cdf0e10cSrcweir
258