summaryrefslogtreecommitdiff
path: root/starmath/inc/dialog.hxx
blob: c227f5fcf610dc00ae0d178a07ce03eef94bdcb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
/*************************************************************************
 *
 *  $RCSfile: dialog.hxx,v $
 *
 *  $Revision: 1.2 $
 *
 *  last change: $Author: tl $ $Date: 2000-10-16 10:58:22 $
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************/
#ifndef DIALOG_HXX
#define DIALOG_HXX

#ifndef _SV_DIALOG_HXX //autogen
#include <vcl/dialog.hxx>
#endif
#ifndef _SV_FIXED_HXX //autogen
#include <vcl/fixed.hxx>
#endif
#ifndef _SV_BUTTON_HXX //autogen
#include <vcl/button.hxx>
#endif
#ifndef _SV_IMAGE_HXX
#include <vcl/image.hxx>
#endif
#ifndef _SFXTABDLG_HXX //autogen
#include <sfx2/tabdlg.hxx>
#endif
#ifndef _SV_GROUP_HXX //autogen
#include <vcl/group.hxx>
#endif
#ifndef _SV_COMBOBOX_HXX //autogen
#include <vcl/combobox.hxx>
#endif
#ifndef _SVX_OPTGENRL_HXX //autogen
#include <svx/optgenrl.hxx>
#endif
#ifndef _BASEDLGS_HXX //autogen
#include <sfx2/basedlgs.hxx>
#endif
#ifndef _SV_FIELD_HXX //autogen
#include <vcl/field.hxx>
#endif
#ifndef _SV_MENUBTN_HXX //autogen
#include <vcl/menubtn.hxx>
#endif
#ifndef _SV_SCRBAR_HXX //autogen
#include <vcl/scrbar.hxx>
#endif
#ifndef _SV_CTRL_HXX //autogen
#include <vcl/ctrl.hxx>
#endif
#ifndef _SV_MENU_HXX //autogen
#include <vcl/menu.hxx>
#endif
#ifndef _CTRLBOX_HXX //autogen
#include <svtools/ctrlbox.hxx>
#endif
#ifndef _CTRLTOOL_HXX //autogen
#include <svtools/ctrltool.hxx>
#endif

#ifndef UTILITY_HXX
#include "utility.hxx"
#endif
#ifndef FORMAT_HXX
#include "format.hxx"
#endif
#ifndef SYMBOL_HXX
#include "symbol.hxx"
#endif


#define CATEGORY_NONE   0xFFFF

/**************************************************************************/

const XubString GetFontStyleName(const Font &rFont);
void            SetFontStyle(const XubString &rStyleName, Font &rFont);

/**************************************************************************/

class SmAboutDialog : public ModalDialog
{
    FixedText   aFixedText1;
    FixedText   aFixedText2;
    FixedText   aFixedText3;
    FixedText   aFixedText4;
    FixedText   aFixedText5;
    FixedText   aFixedText6;
    FixedText   aReleaseText;
    FixedBitmap aFixedBitmap1;
    OKButton    aOKButton1;

public:
    SmAboutDialog(Window *pParent, BOOL bFreeRes = TRUE);
};

/**************************************************************************/

class SmPrintOptionsTabPage : public SfxTabPage
{
    GroupBox        aGroupBox1;
    CheckBox        aTitle;
    CheckBox        aText;
    CheckBox        aFrame;
    GroupBox        aGroupBox3;
    CheckBox        aNoRightSpaces;
    GroupBox        aGroupBox2;
    RadioButton     aSizeNormal;
    RadioButton     aSizeScaled;
    RadioButton     aSizeZoomed;
    MetricField     aZoom;

    DECL_LINK(SizeButtonClickHdl, Button *);

    virtual BOOL    FillItemSet(SfxItemSet& rSet);
    virtual void    Reset(const SfxItemSet& rSet);

public:
    static SfxTabPage* Create(Window *pWindow, const SfxItemSet &rSet);

    SmPrintOptionsTabPage(Window *pParent, const SfxItemSet &rOptions);
};


#ifdef NEVER
class SmGeneralTabPage : public SvxGeneralTabPage
{
public :
    static SfxTabPage* Create(Window* pWindow, const SfxItemSet& rSet);

    SmGeneralTabPage (Window *pParent, const SfxItemSet &rAttrSet) :
        SvxGeneralTabPage (pParent, rAttrSet)
    {
    }
};
#endif //NEVER

/**************************************************************************/

#ifdef NEVER
class SmExtraOptionsTabPage : public SfxTabPage
{
    CheckBox   aAutoRedraw;
    FixedText  aFixedText1;
    SmInfoText aSymbolFile;
    PushButton aBrowseButton;

    DECL_LINK(SymClickHdl, PushButton*);

    virtual BOOL FillItemSet(SfxItemSet& rOutSet);
    virtual void Reset(const SfxItemSet& rOutSet);

public:
    SmExtraOptionsTabPage(const SfxItemSet& rInSet, Window *pParent, BOOL bFreeRes = TRUE);

    static SfxTabPage* Create(Window* pWindow, const SfxItemSet& rSet);
};
#endif //NEVER

/**************************************************************************/

class SmShowFont : public Control
{
    virtual void    Paint(const Rectangle&);

public:
    SmShowFont(Window *pParent, const ResId& rResId) :
        Control(pParent, rResId)
    {
    }

    void SetFont(const Font& rFont);
};

class SmFontDialog : public ModalDialog
{
    FixedText       aFixedText1;
    ComboBox        aFontBox;
    CheckBox        aBoldCheckBox;
    CheckBox        aItalicCheckBox;
    OKButton        aOKButton1;
    CancelButton    aCancelButton1;
    SmShowFont      aShowFont;
    GroupBox        aGroupBox1;
    GroupBox        aGroupBox2;

    Font    Face;

    DECL_LINK(FontSelectHdl, ComboBox *);
    DECL_LINK(FontModifyHdl, ComboBox *);
    DECL_LINK(AttrChangeHdl, CheckBox *);

public:
    SmFontDialog(Window * pParent, BOOL bFreeRes = TRUE);

    const Font& GetFont() const { return Face; }
    void        SetFont(const Font &rFont);
};

/**************************************************************************/

class SmFontSizeDialog : public ModalDialog
{
    FixedText       aFixedText1;
    MetricField     aBaseSize;
    FixedText       aFixedText4;
    MetricField     aTextSize;
    FixedText       aFixedText5;
    MetricField     aIndexSize;
    FixedText       aFixedText6;
    MetricField     aFunctionSize;
    FixedText       aFixedText7;
    MetricField     aOperatorSize;
    FixedText       aFixedText8;
    MetricField     aBorderSize;
    GroupBox        aGroupBox1;
    OKButton        aOKButton1;
    CancelButton    aCancelButton1;
    PushButton      aDefaultButton;

    DECL_LINK(DefaultButtonClickHdl, Button *);

public:
    SmFontSizeDialog(Window *pParent, BOOL bFreeRes = TRUE);

    void ReadFrom(const SmFormat &rFormat);
    void WriteTo (SmFormat &rFormat) const;
};

/**************************************************************************/

class SmFontTypeDialog : public ModalDialog
{
    FixedText           aFixedText1;
    SmFontPickListBox   aVariableFont;
    FixedText           aFixedText2;
    SmFontPickListBox   aFunctionFont;
    FixedText           aFixedText3;
    SmFontPickListBox   aNumberFont;
    FixedText           aFixedText4;
    SmFontPickListBox   aTextFont;
    FixedText           aFixedText5;
    SmFontPickListBox   aSerifFont;
    FixedText           aFixedText6;
    SmFontPickListBox   aSansFont;
    FixedText           aFixedText7;
    SmFontPickListBox   aFixedFont;
    GroupBox            aGroupBox1;
    GroupBox            aGroupBox2;
    OKButton            aOKButton1;
    CancelButton        aCancelButton1;
    MenuButton          aMenuButton;
    PushButton          aDefaultButton;

    DECL_LINK(MenuSelectHdl, Menu *);
    DECL_LINK(DefaultButtonClickHdl, Button *);

public:
    SmFontTypeDialog(Window *pParent, BOOL bFreeRes = TRUE);

    void ReadFrom(const SmFormat &rFormat);
    void WriteTo (SmFormat &rFormat) const;
};

/**************************************************************************/

#define NOCATEGORIES    10

class SmCategoryDesc : public Resource
{
    XubString       Name;
    XubString      *Strings[4];
    Bitmap     *Graphics[4];
    USHORT      Minimum[4];
    USHORT      Maximum[4];
    USHORT      Value[4];

public:
    SmCategoryDesc(const ResId &rResId, USHORT nCategoryIdx);
    ~SmCategoryDesc();

    const XubString &   GetName() const                 { return Name; }
    const XubString *   GetString(USHORT Index) const   { return Strings[Index];  }
    const Bitmap *  GetGraphic(USHORT Index) const  { return Graphics[Index]; }
    USHORT          GetMinimum(USHORT Index)        { return Minimum[Index]; }
    USHORT          GetMaximum(USHORT Index)        { return Maximum[Index]; }
    USHORT          GetValue(USHORT Index) const    { return Value[Index]; }
    void            SetValue(USHORT Index, USHORT nVal) { Value[Index] = nVal;}
};


class SmDistanceDialog : public ModalDialog
{
    FixedText       aFixedText1;
    MetricField     aMetricField1;
    FixedText       aFixedText2;
    MetricField     aMetricField2;
    FixedText       aFixedText3;
    MetricField     aMetricField3;
    CheckBox        aCheckBox1;
    FixedText       aFixedText4;
    MetricField     aMetricField4;
    OKButton        aOKButton1;
    CancelButton    aCancelButton1;
    MenuButton      aMenuButton;
    PushButton      aDefaultButton;
    FixedBitmap     aBitmap;
    GroupBox        aGroupBox;

    SmCategoryDesc *Categories[NOCATEGORIES];
    USHORT          nActiveCategory;
    BOOL            bScaleAllBrackets;

    DECL_LINK(GetFocusHdl, Control *);
    DECL_LINK(MenuSelectHdl, Menu *);
    DECL_LINK(DefaultButtonClickHdl, Button *);
    DECL_LINK(CheckBoxClickHdl, CheckBox *);

    void    SetHelpId(MetricField &rField, ULONG nHelpId);
    void    SetCategory(USHORT Category);

public:
    SmDistanceDialog(Window *pParent, BOOL bFreeRes = TRUE);
    ~SmDistanceDialog();

    void ReadFrom(const SmFormat &rFormat);
    void WriteTo (SmFormat &rFormat) /*const*/;
};


/**************************************************************************/


class SmAlignDialog : public ModalDialog
{
    RadioButton  aLeft;
    RadioButton  aCenter;
    RadioButton  aRight;
    GroupBox     aGroupBox1;
    OKButton     aOKButton1;
    CancelButton aCancelButton1;
    PushButton   aDefaultButton;

    DECL_LINK(DefaultButtonClickHdl, Button *);

public:
    SmAlignDialog(Window *pParent, BOOL bFreeRes = TRUE);

    void ReadFrom(const SmFormat &rFormat);
    void WriteTo (SmFormat &rFormat) const;
};

/**************************************************************************/

class SmShowSymbolSet : public Control
{
    SmSymSet    aSymbolSet;
    ScrollBar   aVScrollBar;
    Size        aOutputSize;
    Link        aSelectHdlLink;
    Link        aDblClickHdlLink;
    USHORT      nLen;
    USHORT      nRows, nColumns;
    USHORT      nSelectSymbol;

    virtual void    Paint(const Rectangle&);
    virtual void    MouseButtonDown(const MouseEvent& rMEvt);
    virtual void    KeyInput(const KeyEvent& rKEvt);

    DECL_LINK( ScrollHdl, ScrollBar* );

public:
    SmShowSymbolSet(Window *pParent, const ResId& rResId);

    void    SetSymbolSet(const SmSymSet& rSymbolSet);

    void    SelectSymbol(USHORT nSymbol);
    USHORT  GetSelectSymbol() const { return nSelectSymbol; }

    void SetSelectHdl(const Link& rLink)   { aSelectHdlLink = rLink; }
    void SetDblClickHdl(const Link& rLink) { aDblClickHdlLink = rLink; }
};

////////////////////////////////////////////////////////////////////////////////

class SmShowSymbol : public Control
{
    Link  aDblClickHdlLink;

    virtual void    Paint(const Rectangle&);
    virtual void    MouseButtonDown(const MouseEvent& rMEvt);

public:
    SmShowSymbol(Window *pParent, const ResId& rResId) :
        Control(pParent, rResId) {}

    void    SetSymbol(const SmSym *pSymbol);
    void    SetDblClickHdl(const Link &rLink) { aDblClickHdlLink = rLink; }
};

////////////////////////////////////////////////////////////////////////////////

class SmSymDefineDialog;

class SmSymbolDialog : public ModalDialog
{
    FixedText       aSymbolSetText;
    ListBox         aSymbolSets;
    SmShowSymbolSet aSymbolSetDisplay;
    GroupBox        aGrpBox;
    FixedText       aSymbolName;
    SmShowSymbol    aSymbolDisplay;
    PushButton      aCloseBtn;
    PushButton      aEditBtn;
    PushButton      aGetBtn;

    SmSymSetManager    &rSymSetMgr;
    const SmSymSet     *pSymSet;

    DECL_LINK(SymbolSetChangeHdl, ListBox *);
    DECL_LINK(SymbolChangeHdl, SmShowSymbolSet *);
    DECL_LINK(SymbolDblClickHdl, SmShowSymbolSet *);
    DECL_LINK(CloseClickHdl, Button *);
    DECL_LINK(EditClickHdl, Button *);
    DECL_LINK(GetClickHdl, Button *);

    void            FillSymbolSets(BOOL bDeleteText = TRUE);
    void            SetSymbolSetManager(SmSymSetManager &rMgr);
    const SmSym    *GetSymbol() const;

public:
    SmSymbolDialog(Window * pParent, SmSymSetManager &rSymSetMgr, BOOL bFreeRes = TRUE);

    BOOL    SelectSymbolSet(const XubString &rSymbolSetName);
    void    SelectSymbol(USHORT nSymbolNo);
};

/**************************************************************************/

class SmShowCharset : public Control
{
    Link    aSelectHdlLink;
    Link    aDblClickHdlLink;
    USHORT  nLen;
    USHORT  nRows, nColumns;
    xub_Unicode aChar;

    virtual void    Paint(const Rectangle&);
    virtual void    MouseButtonDown( const MouseEvent& rMEvt );
    virtual void    KeyInput(const KeyEvent& rKEvt);

public:
    SmShowCharset(Window *pParent, const ResId& rResId);

    void    SetSelectHdl(const Link& rLink)
    {
        aSelectHdlLink = rLink;
    }

    void    SetDblClickHdl(const Link& rLink)
    {
        aDblClickHdlLink = rLink;
    }

    void    SetFont(const Font &rFont);
    void    SelectChar(xub_Unicode aChar);
    xub_Unicode GetSelectChar() const { return aChar; }
};

////////////////////////////////////////////////////////////////////////////////

class SmShowChar : public Control
{
    virtual void    Paint(const Rectangle&);

public:
    SmShowChar(Window *pParent, const ResId& rResId)
    : Control(pParent, rResId)
    {
    }

    void    SetChar(xub_Unicode aChar);
    void    SetFont(const Font &rFont);
};

////////////////////////////////////////////////////////////////////////////////

class SmSymDefineDialog : public ModalDialog
{
    FixedText     aOldSymbolText;
    ComboBox      aOldSymbols;
    FixedText     aOldSymbolSetText;
    ComboBox      aOldSymbolSets;
    SmShowCharset aCharsetDisplay;
    FixedText     aSymbolText;
    ComboBox      aSymbols;
    FixedText     aSymbolSetText;
    ComboBox      aSymbolSets;
    FixedText     aFontText;
    ListBox       aFonts;
    FixedText     aStyleText;
    FontStyleBox  aStyles;
    FixedText     aOldSymbolName;
    SmShowChar    aOldSymbolDisplay;
    FixedText     aOldSymbolSetName;
    FixedText     aSymbolName;
    SmShowChar    aSymbolDisplay;
    FixedText     aSymbolSetName;
    OKButton      aOkBtn;
    CancelButton  aCancelBtn;
    PushButton    aAddBtn;
    PushButton    aChangeBtn;
    PushButton    aDeleteBtn;
    FixedImage    aRightArrow;

    SmSymSetManager     aSymSetMgrCopy,
                       &rSymSetMgr;
    const SmSym        *pOrigSymbol;

    FontList           *pFontList;

    DECL_LINK(OldSymbolChangeHdl, ComboBox *);
    DECL_LINK(OldSymbolSetChangeHdl, ComboBox *);
    DECL_LINK(ModifyHdl, ComboBox *);
    DECL_LINK(FontChangeHdl, ListBox *);
    DECL_LINK(StyleChangeHdl, ComboBox *);
    DECL_LINK(CharSelectHdl, SmShowCharset *);
    DECL_LINK(AddClickHdl, Button *);
    DECL_LINK(ChangeClickHdl, Button *);
    DECL_LINK(DeleteClickHdl, Button *);

    void    FillSymbols(ComboBox &rComboBox, BOOL bDeleteText = TRUE);
    void    FillSymbolSets(ComboBox &rComboBox, BOOL bDeleteText = TRUE);
    void    FillFonts(BOOL bDeleteText = TRUE);
    void    FillStyles(BOOL bDeleteText = TRUE);

    void    SetSymbolSetManager(const SmSymSetManager &rMgr);
    void    SetFont(const XubString &rFontName, const XubString &rStyleName);
    void    SetOrigSymbol(const SmSym *pSymbol, const XubString &rSymbolSetName);
    void    UpdateButtons();

    BOOL    SelectSymbolSet(ComboBox &rComboBox, const XubString &rSymbolSetName,
                            BOOL bDeleteText);
    BOOL    SelectSymbol(ComboBox &rComboBox, const XubString &rSymbolName,
                            BOOL bDeleteText);
    BOOL    SelectFont(const XubString &rFontName, BOOL bApplyFont);
    BOOL    SelectStyle(const XubString &rStyleName, BOOL bApplyFont);


    SmSymSet              *GetSymbolSet(const ComboBox &rComboBox);
    inline const SmSymSet *GetSymbolSet(const ComboBox &rComboBox) const;
    SmSym                 *GetSymbol(const ComboBox &rComboBox);
    inline const SmSym    *GetSymbol(const ComboBox &rComboBox) const;

public:
    SmSymDefineDialog(Window *pParent, SmSymSetManager &rMgr, BOOL bFreeRes = TRUE);
    ~SmSymDefineDialog();

    // Dialog
    virtual short   Execute();

    inline BOOL SelectOldSymbolSet(const XubString &rSymbolSetName);
    inline BOOL SelectOldSymbol(const XubString &rSymbolName);
    inline BOOL SelectSymbolSet(const XubString &rSymbolSetName);
    inline BOOL SelectSymbol(const XubString &rSymbolName);
    BOOL        SelectFont(const XubString &rFontName)   { return SelectFont(rFontName, TRUE); }
    BOOL        SelectStyle(const XubString &rStyleName) { return SelectStyle(rStyleName, TRUE); };
    void        SelectChar(xub_Unicode cChar);
};

inline const SmSymSet * SmSymDefineDialog::GetSymbolSet(const ComboBox &rComboBox) const
{
    return ((SmSymDefineDialog *) this)->GetSymbolSet(rComboBox);
}

inline const SmSym * SmSymDefineDialog::GetSymbol(const ComboBox &rComboBox) const
{
    return ((SmSymDefineDialog *) this)->GetSymbol(rComboBox);
}

inline BOOL SmSymDefineDialog::SelectOldSymbolSet(const XubString &rSymbolSetName)
{
    return SelectSymbolSet(aOldSymbolSets, rSymbolSetName, FALSE);
}

inline BOOL SmSymDefineDialog::SelectOldSymbol(const XubString &rSymbolName)
{
    return SelectSymbol(aOldSymbols, rSymbolName, FALSE);
}

inline BOOL SmSymDefineDialog::SelectSymbolSet(const XubString &rSymbolSetName)
{
    return SelectSymbolSet(aSymbolSets, rSymbolSetName, FALSE);
}

inline BOOL SmSymDefineDialog::SelectSymbol(const XubString &rSymbolName)
{
    return SelectSymbol(aSymbols, rSymbolName, FALSE);
}


#endif