Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e2786b38
Kaydet (Commit)
e2786b38
authored
Nis 01, 2012
tarafından
Karan Desai
Kaydeden (comit)
Olivier Hallot
Nis 02, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added Help Buttons to dialog buttons in starmath
üst
c4c6b52a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
162 additions
and
5 deletions
+162
-5
dialog.hxx
starmath/inc/dialog.hxx
+14
-0
dialog.cxx
starmath/source/dialog.cxx
+88
-1
smres.src
starmath/source/smres.src
+60
-4
No files found.
starmath/inc/dialog.hxx
Dosyayı görüntüle @
e2786b38
...
@@ -105,6 +105,7 @@ class SmFontDialog : public ModalDialog
...
@@ -105,6 +105,7 @@ class SmFontDialog : public ModalDialog
CheckBox
aBoldCheckBox
;
CheckBox
aBoldCheckBox
;
CheckBox
aItalicCheckBox
;
CheckBox
aItalicCheckBox
;
OKButton
aOKButton1
;
OKButton
aOKButton1
;
HelpButton
aHelpButton1
;
CancelButton
aCancelButton1
;
CancelButton
aCancelButton1
;
SmShowFont
aShowFont
;
SmShowFont
aShowFont
;
FixedText
aFixedText2
;
FixedText
aFixedText2
;
...
@@ -114,6 +115,7 @@ class SmFontDialog : public ModalDialog
...
@@ -114,6 +115,7 @@ class SmFontDialog : public ModalDialog
DECL_LINK
(
FontSelectHdl
,
ComboBox
*
);
DECL_LINK
(
FontSelectHdl
,
ComboBox
*
);
DECL_LINK
(
FontModifyHdl
,
ComboBox
*
);
DECL_LINK
(
FontModifyHdl
,
ComboBox
*
);
DECL_LINK
(
AttrChangeHdl
,
CheckBox
*
);
DECL_LINK
(
AttrChangeHdl
,
CheckBox
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
void
InitColor_Impl
();
void
InitColor_Impl
();
...
@@ -144,10 +146,12 @@ class SmFontSizeDialog : public ModalDialog
...
@@ -144,10 +146,12 @@ class SmFontSizeDialog : public ModalDialog
MetricField
aBorderSize
;
MetricField
aBorderSize
;
FixedLine
aFixedLine1
;
FixedLine
aFixedLine1
;
OKButton
aOKButton1
;
OKButton
aOKButton1
;
HelpButton
aHelpButton1
;
CancelButton
aCancelButton1
;
CancelButton
aCancelButton1
;
PushButton
aDefaultButton
;
PushButton
aDefaultButton
;
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
public
:
public
:
SmFontSizeDialog
(
Window
*
pParent
,
bool
bFreeRes
=
true
);
SmFontSizeDialog
(
Window
*
pParent
,
bool
bFreeRes
=
true
);
...
@@ -177,6 +181,7 @@ class SmFontTypeDialog : public ModalDialog
...
@@ -177,6 +181,7 @@ class SmFontTypeDialog : public ModalDialog
FixedLine
aFixedLine1
;
FixedLine
aFixedLine1
;
FixedLine
aFixedLine2
;
FixedLine
aFixedLine2
;
OKButton
aOKButton1
;
OKButton
aOKButton1
;
HelpButton
aHelpButton1
;
CancelButton
aCancelButton1
;
CancelButton
aCancelButton1
;
MenuButton
aMenuButton
;
MenuButton
aMenuButton
;
PushButton
aDefaultButton
;
PushButton
aDefaultButton
;
...
@@ -185,6 +190,7 @@ class SmFontTypeDialog : public ModalDialog
...
@@ -185,6 +190,7 @@ class SmFontTypeDialog : public ModalDialog
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
public
:
public
:
SmFontTypeDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
bool
bFreeRes
=
true
);
SmFontTypeDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
bool
bFreeRes
=
true
);
...
@@ -236,6 +242,7 @@ class SmDistanceDialog : public ModalDialog
...
@@ -236,6 +242,7 @@ class SmDistanceDialog : public ModalDialog
FixedText
aFixedText4
;
FixedText
aFixedText4
;
MetricField
aMetricField4
;
MetricField
aMetricField4
;
OKButton
aOKButton1
;
OKButton
aOKButton1
;
HelpButton
aHelpButton1
;
CancelButton
aCancelButton1
;
CancelButton
aCancelButton1
;
MenuButton
aMenuButton
;
MenuButton
aMenuButton
;
PushButton
aDefaultButton
;
PushButton
aDefaultButton
;
...
@@ -249,6 +256,7 @@ class SmDistanceDialog : public ModalDialog
...
@@ -249,6 +256,7 @@ class SmDistanceDialog : public ModalDialog
DECL_LINK
(
GetFocusHdl
,
Control
*
);
DECL_LINK
(
GetFocusHdl
,
Control
*
);
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
DECL_LINK
(
CheckBoxClickHdl
,
CheckBox
*
);
DECL_LINK
(
CheckBoxClickHdl
,
CheckBox
*
);
using
Window
::
SetHelpId
;
using
Window
::
SetHelpId
;
...
@@ -277,10 +285,12 @@ class SmAlignDialog : public ModalDialog
...
@@ -277,10 +285,12 @@ class SmAlignDialog : public ModalDialog
RadioButton
aRight
;
RadioButton
aRight
;
FixedLine
aFixedLine1
;
FixedLine
aFixedLine1
;
OKButton
aOKButton1
;
OKButton
aOKButton1
;
HelpButton
aHelpButton1
;
CancelButton
aCancelButton1
;
CancelButton
aCancelButton1
;
PushButton
aDefaultButton
;
PushButton
aDefaultButton
;
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
DefaultButtonClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
public
:
public
:
SmAlignDialog
(
Window
*
pParent
,
bool
bFreeRes
=
true
);
SmAlignDialog
(
Window
*
pParent
,
bool
bFreeRes
=
true
);
...
@@ -348,6 +358,7 @@ class SmSymbolDialog : public ModalDialog
...
@@ -348,6 +358,7 @@ class SmSymbolDialog : public ModalDialog
SmShowSymbolSet
aSymbolSetDisplay
;
SmShowSymbolSet
aSymbolSetDisplay
;
FixedText
aSymbolName
;
FixedText
aSymbolName
;
SmShowSymbol
aSymbolDisplay
;
SmShowSymbol
aSymbolDisplay
;
HelpButton
aHelpBtn
;
PushButton
aGetBtn
;
PushButton
aGetBtn
;
PushButton
aCloseBtn
;
PushButton
aCloseBtn
;
PushButton
aEditBtn
;
PushButton
aEditBtn
;
...
@@ -366,6 +377,7 @@ class SmSymbolDialog : public ModalDialog
...
@@ -366,6 +377,7 @@ class SmSymbolDialog : public ModalDialog
DECL_LINK
(
CloseClickHdl
,
Button
*
);
DECL_LINK
(
CloseClickHdl
,
Button
*
);
DECL_LINK
(
EditClickHdl
,
Button
*
);
DECL_LINK
(
EditClickHdl
,
Button
*
);
DECL_LINK
(
GetClickHdl
,
Button
*
);
DECL_LINK
(
GetClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
void
FillSymbolSets
(
bool
bDeleteText
=
true
);
void
FillSymbolSets
(
bool
bDeleteText
=
true
);
void
SetSymbolSetManager
(
SmSymbolManager
&
rMgr
);
void
SetSymbolSetManager
(
SmSymbolManager
&
rMgr
);
...
@@ -426,6 +438,7 @@ class SmSymDefineDialog : public ModalDialog
...
@@ -426,6 +438,7 @@ class SmSymDefineDialog : public ModalDialog
SmShowChar
aSymbolDisplay
;
SmShowChar
aSymbolDisplay
;
FixedText
aSymbolSetName
;
FixedText
aSymbolSetName
;
OKButton
aOkBtn
;
OKButton
aOkBtn
;
HelpButton
aHelpBtn
;
CancelButton
aCancelBtn
;
CancelButton
aCancelBtn
;
PushButton
aAddBtn
;
PushButton
aAddBtn
;
PushButton
aChangeBtn
;
PushButton
aChangeBtn
;
...
@@ -450,6 +463,7 @@ class SmSymDefineDialog : public ModalDialog
...
@@ -450,6 +463,7 @@ class SmSymDefineDialog : public ModalDialog
DECL_LINK
(
AddClickHdl
,
Button
*
);
DECL_LINK
(
AddClickHdl
,
Button
*
);
DECL_LINK
(
ChangeClickHdl
,
Button
*
);
DECL_LINK
(
ChangeClickHdl
,
Button
*
);
DECL_LINK
(
DeleteClickHdl
,
Button
*
);
DECL_LINK
(
DeleteClickHdl
,
Button
*
);
DECL_LINK
(
HelpButtonClickHdl
,
Button
*
);
void
FillSymbols
(
ComboBox
&
rComboBox
,
bool
bDeleteText
=
true
);
void
FillSymbols
(
ComboBox
&
rComboBox
,
bool
bDeleteText
=
true
);
void
FillSymbolSets
(
ComboBox
&
rComboBox
,
bool
bDeleteText
=
true
);
void
FillSymbolSets
(
ComboBox
&
rComboBox
,
bool
bDeleteText
=
true
);
...
...
starmath/source/dialog.cxx
Dosyayı görüntüle @
e2786b38
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <svtools/ctrltool.hxx>
#include <svtools/ctrltool.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/printer.hxx>
#include <vcl/sound.hxx>
#include <vcl/sound.hxx>
#include <vcl/help.hxx>
#include <vcl/sndstyle.hxx>
#include <vcl/sndstyle.hxx>
#include <vcl/waitobj.hxx>
#include <vcl/waitobj.hxx>
#include <vcl/settings.hxx>
#include <vcl/settings.hxx>
...
@@ -327,6 +328,16 @@ void SmFontDialog::SetFont(const Font &rFont)
...
@@ -327,6 +328,16 @@ void SmFontDialog::SetFont(const Font &rFont)
aShowFont
.
SetFont
(
Face
);
aShowFont
.
SetFont
(
Face
);
}
}
IMPL_LINK
(
SmFontDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_FONTDIALOG"
)
),
&
aHelpButton1
);
}
return
0
;
}
SmFontDialog
::
SmFontDialog
(
Window
*
pParent
,
SmFontDialog
::
SmFontDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
bool
bHideCheckboxes
,
bool
bFreeRes
)
OutputDevice
*
pFntListDevice
,
bool
bHideCheckboxes
,
bool
bFreeRes
)
...
@@ -336,12 +347,14 @@ SmFontDialog::SmFontDialog(Window * pParent,
...
@@ -336,12 +347,14 @@ SmFontDialog::SmFontDialog(Window * pParent,
aBoldCheckBox
(
this
,
SmResId
(
1
)),
aBoldCheckBox
(
this
,
SmResId
(
1
)),
aItalicCheckBox
(
this
,
SmResId
(
2
)),
aItalicCheckBox
(
this
,
SmResId
(
2
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aHelpButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aShowFont
(
this
,
SmResId
(
1
)),
aShowFont
(
this
,
SmResId
(
1
)),
aFixedText2
(
this
,
SmResId
(
2
))
aFixedText2
(
this
,
SmResId
(
2
))
{
{
if
(
bFreeRes
)
if
(
bFreeRes
)
FreeResource
();
FreeResource
();
aHelpButton1
.
SetClickHdl
(
LINK
(
this
,
SmFontDialog
,
HelpButtonClickHdl
));
{
{
WaitObject
(
this
);
WaitObject
(
this
);
...
@@ -410,7 +423,6 @@ void SmFontDialog::InitColor_Impl()
...
@@ -410,7 +423,6 @@ void SmFontDialog::InitColor_Impl()
aShowFont
.
SetTextColor
(
aTxtColor
);
aShowFont
.
SetTextColor
(
aTxtColor
);
}
}
void
SmFontDialog
::
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
void
SmFontDialog
::
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
{
{
if
(
rDCEvt
.
GetType
()
==
DATACHANGED_SETTINGS
&&
if
(
rDCEvt
.
GetType
()
==
DATACHANGED_SETTINGS
&&
...
@@ -439,6 +451,16 @@ IMPL_LINK( SmFontSizeDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
...
@@ -439,6 +451,16 @@ IMPL_LINK( SmFontSizeDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
return
0
;
return
0
;
}
}
IMPL_LINK
(
SmFontSizeDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_FONTSIZEDIALOG"
)
),
&
aHelpButton1
);
}
return
0
;
}
SmFontSizeDialog
::
SmFontSizeDialog
(
Window
*
pParent
,
bool
bFreeRes
)
SmFontSizeDialog
::
SmFontSizeDialog
(
Window
*
pParent
,
bool
bFreeRes
)
:
ModalDialog
(
pParent
,
SmResId
(
RID_FONTSIZEDIALOG
)),
:
ModalDialog
(
pParent
,
SmResId
(
RID_FONTSIZEDIALOG
)),
...
@@ -456,6 +478,7 @@ SmFontSizeDialog::SmFontSizeDialog(Window * pParent, bool bFreeRes)
...
@@ -456,6 +478,7 @@ SmFontSizeDialog::SmFontSizeDialog(Window * pParent, bool bFreeRes)
aBorderSize
(
this
,
SmResId
(
8
)),
aBorderSize
(
this
,
SmResId
(
8
)),
aFixedLine1
(
this
,
SmResId
(
1
)),
aFixedLine1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aHelpButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aDefaultButton
(
this
,
SmResId
(
1
))
aDefaultButton
(
this
,
SmResId
(
1
))
{
{
...
@@ -463,6 +486,7 @@ SmFontSizeDialog::SmFontSizeDialog(Window * pParent, bool bFreeRes)
...
@@ -463,6 +486,7 @@ SmFontSizeDialog::SmFontSizeDialog(Window * pParent, bool bFreeRes)
FreeResource
();
FreeResource
();
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmFontSizeDialog
,
DefaultButtonClickHdl
));
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmFontSizeDialog
,
DefaultButtonClickHdl
));
aHelpButton1
.
SetClickHdl
(
LINK
(
this
,
SmFontSizeDialog
,
HelpButtonClickHdl
));
}
}
...
@@ -547,6 +571,16 @@ IMPL_LINK_INLINE_START( SmFontTypeDialog, DefaultButtonClickHdl, Button *, EMPTY
...
@@ -547,6 +571,16 @@ IMPL_LINK_INLINE_START( SmFontTypeDialog, DefaultButtonClickHdl, Button *, EMPTY
}
}
IMPL_LINK_INLINE_END
(
SmFontTypeDialog
,
DefaultButtonClickHdl
,
Button
*
,
pButton
)
IMPL_LINK_INLINE_END
(
SmFontTypeDialog
,
DefaultButtonClickHdl
,
Button
*
,
pButton
)
IMPL_LINK
(
SmFontTypeDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_FONTTYPEDIALOG"
)
),
&
aHelpButton1
);
}
return
0
;
}
SmFontTypeDialog
::
SmFontTypeDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
bool
bFreeRes
)
SmFontTypeDialog
::
SmFontTypeDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
bool
bFreeRes
)
:
ModalDialog
(
pParent
,
SmResId
(
RID_FONTTYPEDIALOG
)),
:
ModalDialog
(
pParent
,
SmResId
(
RID_FONTTYPEDIALOG
)),
...
@@ -567,6 +601,7 @@ SmFontTypeDialog::SmFontTypeDialog(Window * pParent, OutputDevice *pFntListDevic
...
@@ -567,6 +601,7 @@ SmFontTypeDialog::SmFontTypeDialog(Window * pParent, OutputDevice *pFntListDevic
aFixedLine1
(
this
,
SmResId
(
1
)),
aFixedLine1
(
this
,
SmResId
(
1
)),
aFixedLine2
(
this
,
SmResId
(
2
)),
aFixedLine2
(
this
,
SmResId
(
2
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aHelpButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aMenuButton
(
this
,
SmResId
(
1
)),
aMenuButton
(
this
,
SmResId
(
1
)),
aDefaultButton
(
this
,
SmResId
(
2
)),
aDefaultButton
(
this
,
SmResId
(
2
)),
...
@@ -576,6 +611,7 @@ SmFontTypeDialog::SmFontTypeDialog(Window * pParent, OutputDevice *pFntListDevic
...
@@ -576,6 +611,7 @@ SmFontTypeDialog::SmFontTypeDialog(Window * pParent, OutputDevice *pFntListDevic
FreeResource
();
FreeResource
();
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmFontTypeDialog
,
DefaultButtonClickHdl
));
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmFontTypeDialog
,
DefaultButtonClickHdl
));
aHelpButton1
.
SetClickHdl
(
LINK
(
this
,
SmFontTypeDialog
,
HelpButtonClickHdl
));
aMenuButton
.
GetPopupMenu
()
->
SetSelectHdl
(
LINK
(
this
,
SmFontTypeDialog
,
MenuSelectHdl
));
aMenuButton
.
GetPopupMenu
()
->
SetSelectHdl
(
LINK
(
this
,
SmFontTypeDialog
,
MenuSelectHdl
));
}
}
...
@@ -748,6 +784,17 @@ IMPL_LINK( SmDistanceDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
...
@@ -748,6 +784,17 @@ IMPL_LINK( SmDistanceDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
return
0
;
return
0
;
}
}
IMPL_LINK
(
SmDistanceDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_DISTANCEDIALOG"
)
),
&
aHelpButton1
);
}
return
0
;
}
IMPL_LINK
(
SmDistanceDialog
,
CheckBoxClickHdl
,
CheckBox
*
,
pCheckBox
)
IMPL_LINK
(
SmDistanceDialog
,
CheckBoxClickHdl
,
CheckBox
*
,
pCheckBox
)
{
{
...
@@ -925,6 +972,7 @@ SmDistanceDialog::SmDistanceDialog(Window *pParent, bool bFreeRes)
...
@@ -925,6 +972,7 @@ SmDistanceDialog::SmDistanceDialog(Window *pParent, bool bFreeRes)
aFixedText4
(
this
,
SmResId
(
4
)),
aFixedText4
(
this
,
SmResId
(
4
)),
aMetricField4
(
this
,
SmResId
(
4
)),
aMetricField4
(
this
,
SmResId
(
4
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aHelpButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aMenuButton
(
this
,
SmResId
(
1
)),
aMenuButton
(
this
,
SmResId
(
1
)),
aDefaultButton
(
this
,
SmResId
(
1
)),
aDefaultButton
(
this
,
SmResId
(
1
)),
...
@@ -951,6 +999,7 @@ SmDistanceDialog::SmDistanceDialog(Window *pParent, bool bFreeRes)
...
@@ -951,6 +999,7 @@ SmDistanceDialog::SmDistanceDialog(Window *pParent, bool bFreeRes)
aMenuButton
.
GetPopupMenu
()
->
SetSelectHdl
(
LINK
(
this
,
SmDistanceDialog
,
MenuSelectHdl
));
aMenuButton
.
GetPopupMenu
()
->
SetSelectHdl
(
LINK
(
this
,
SmDistanceDialog
,
MenuSelectHdl
));
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmDistanceDialog
,
DefaultButtonClickHdl
));
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmDistanceDialog
,
DefaultButtonClickHdl
));
aHelpButton1
.
SetClickHdl
(
LINK
(
this
,
SmDistanceDialog
,
HelpButtonClickHdl
));
}
}
...
@@ -1058,6 +1107,17 @@ IMPL_LINK( SmAlignDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton*/
...
@@ -1058,6 +1107,17 @@ IMPL_LINK( SmAlignDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton*/
}
}
IMPL_LINK
(
SmAlignDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_ALIGNDIALOG"
)
),
&
aHelpButton1
);
}
return
0
;
}
SmAlignDialog
::
SmAlignDialog
(
Window
*
pParent
,
bool
bFreeRes
)
SmAlignDialog
::
SmAlignDialog
(
Window
*
pParent
,
bool
bFreeRes
)
:
ModalDialog
(
pParent
,
SmResId
(
RID_ALIGNDIALOG
)),
:
ModalDialog
(
pParent
,
SmResId
(
RID_ALIGNDIALOG
)),
aLeft
(
this
,
SmResId
(
1
)),
aLeft
(
this
,
SmResId
(
1
)),
...
@@ -1065,6 +1125,7 @@ SmAlignDialog::SmAlignDialog(Window * pParent, bool bFreeRes)
...
@@ -1065,6 +1125,7 @@ SmAlignDialog::SmAlignDialog(Window * pParent, bool bFreeRes)
aRight
(
this
,
SmResId
(
3
)),
aRight
(
this
,
SmResId
(
3
)),
aFixedLine1
(
this
,
SmResId
(
1
)),
aFixedLine1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aOKButton1
(
this
,
SmResId
(
1
)),
aHelpButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aCancelButton1
(
this
,
SmResId
(
1
)),
aDefaultButton
(
this
,
SmResId
(
1
))
aDefaultButton
(
this
,
SmResId
(
1
))
{
{
...
@@ -1072,6 +1133,7 @@ SmAlignDialog::SmAlignDialog(Window * pParent, bool bFreeRes)
...
@@ -1072,6 +1133,7 @@ SmAlignDialog::SmAlignDialog(Window * pParent, bool bFreeRes)
FreeResource
();
FreeResource
();
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmAlignDialog
,
DefaultButtonClickHdl
));
aDefaultButton
.
SetClickHdl
(
LINK
(
this
,
SmAlignDialog
,
DefaultButtonClickHdl
));
aHelpButton1
.
SetClickHdl
(
LINK
(
this
,
SmAlignDialog
,
HelpButtonClickHdl
));
}
}
...
@@ -1491,6 +1553,16 @@ IMPL_LINK_INLINE_START( SmSymbolDialog, CloseClickHdl, Button *, EMPTYARG pButto
...
@@ -1491,6 +1553,16 @@ IMPL_LINK_INLINE_START( SmSymbolDialog, CloseClickHdl, Button *, EMPTYARG pButto
}
}
IMPL_LINK_INLINE_END
(
SmSymbolDialog
,
CloseClickHdl
,
Button
*
,
pButton
)
IMPL_LINK_INLINE_END
(
SmSymbolDialog
,
CloseClickHdl
,
Button
*
,
pButton
)
IMPL_LINK
(
SmSymbolDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_SYMBOLDIALOG"
)
),
&
aHelpBtn
);
}
return
0
;
}
SmSymbolDialog
::
SmSymbolDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
SmSymbolDialog
::
SmSymbolDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
SmSymbolManager
&
rMgr
,
SmViewShell
&
rViewShell
,
bool
bFreeRes
)
:
SmSymbolManager
&
rMgr
,
SmViewShell
&
rViewShell
,
bool
bFreeRes
)
:
...
@@ -1500,6 +1572,7 @@ SmSymbolDialog::SmSymbolDialog(Window *pParent, OutputDevice *pFntListDevice,
...
@@ -1500,6 +1572,7 @@ SmSymbolDialog::SmSymbolDialog(Window *pParent, OutputDevice *pFntListDevice,
aSymbolSetDisplay
(
this
,
SmResId
(
1
)),
aSymbolSetDisplay
(
this
,
SmResId
(
1
)),
aSymbolName
(
this
,
SmResId
(
2
)),
aSymbolName
(
this
,
SmResId
(
2
)),
aSymbolDisplay
(
this
,
SmResId
(
2
)),
aSymbolDisplay
(
this
,
SmResId
(
2
)),
aHelpBtn
(
this
,
SmResId
(
1
)),
aGetBtn
(
this
,
SmResId
(
2
)),
aGetBtn
(
this
,
SmResId
(
2
)),
aCloseBtn
(
this
,
SmResId
(
3
)),
aCloseBtn
(
this
,
SmResId
(
3
)),
aEditBtn
(
this
,
SmResId
(
1
)),
aEditBtn
(
this
,
SmResId
(
1
)),
...
@@ -1510,6 +1583,7 @@ SmSymbolDialog::SmSymbolDialog(Window *pParent, OutputDevice *pFntListDevice,
...
@@ -1510,6 +1583,7 @@ SmSymbolDialog::SmSymbolDialog(Window *pParent, OutputDevice *pFntListDevice,
if
(
bFreeRes
)
if
(
bFreeRes
)
FreeResource
();
FreeResource
();
aHelpBtn
.
SetClickHdl
(
LINK
(
this
,
SmSymbolDialog
,
HelpButtonClickHdl
));
aSymbolSetName
=
rtl
::
OUString
();
aSymbolSetName
=
rtl
::
OUString
();
aSymbolSet
.
clear
();
aSymbolSet
.
clear
();
FillSymbolSets
();
FillSymbolSets
();
...
@@ -2016,6 +2090,16 @@ void SmSymDefineDialog::UpdateButtons()
...
@@ -2016,6 +2090,16 @@ void SmSymDefineDialog::UpdateButtons()
aDeleteBtn
.
Enable
(
bDelete
);
aDeleteBtn
.
Enable
(
bDelete
);
}
}
IMPL_LINK
(
SmSymDefineDialog
,
HelpButtonClickHdl
,
Button
*
,
EMPTYARG
/*pButton*/
)
{
// start help system
Help
*
pHelp
=
Application
::
GetHelp
();
if
(
pHelp
)
{
pHelp
->
Start
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HID_SMA_SYMDEFINEDIALOG"
)
),
&
aHelpBtn
);
}
return
0
;
}
SmSymDefineDialog
::
SmSymDefineDialog
(
Window
*
pParent
,
SmSymDefineDialog
::
SmSymDefineDialog
(
Window
*
pParent
,
OutputDevice
*
pFntListDevice
,
SmSymbolManager
&
rMgr
,
bool
bFreeRes
)
:
OutputDevice
*
pFntListDevice
,
SmSymbolManager
&
rMgr
,
bool
bFreeRes
)
:
...
@@ -2042,6 +2126,7 @@ SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
...
@@ -2042,6 +2126,7 @@ SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
aSymbolDisplay
(
this
,
SmResId
(
2
)),
aSymbolDisplay
(
this
,
SmResId
(
2
)),
aSymbolSetName
(
this
,
SmResId
(
6
)),
aSymbolSetName
(
this
,
SmResId
(
6
)),
aOkBtn
(
this
,
SmResId
(
1
)),
aOkBtn
(
this
,
SmResId
(
1
)),
aHelpBtn
(
this
,
SmResId
(
1
)),
aCancelBtn
(
this
,
SmResId
(
1
)),
aCancelBtn
(
this
,
SmResId
(
1
)),
aAddBtn
(
this
,
SmResId
(
1
)),
aAddBtn
(
this
,
SmResId
(
1
)),
aChangeBtn
(
this
,
SmResId
(
2
)),
aChangeBtn
(
this
,
SmResId
(
2
)),
...
@@ -2055,6 +2140,8 @@ SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
...
@@ -2055,6 +2140,8 @@ SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
if
(
bFreeRes
)
if
(
bFreeRes
)
FreeResource
();
FreeResource
();
aHelpBtn
.
SetClickHdl
(
LINK
(
this
,
SmSymDefineDialog
,
HelpButtonClickHdl
));
pFontList
=
new
FontList
(
pFntListDevice
);
pFontList
=
new
FontList
(
pFntListDevice
);
pOrigSymbol
=
0
;
pOrigSymbol
=
0
;
...
...
starmath/source/smres.src
Dosyayı görüntüle @
e2786b38
...
@@ -79,6 +79,14 @@ ModalDialog RID_FONTDIALOG
...
@@ -79,6 +79,14 @@ ModalDialog RID_FONTDIALOG
Size = MAP_APPFONT ( 33 , 10 ) ;
Size = MAP_APPFONT ( 33 , 10 ) ;
Text [ en-US ] = "~Italic" ;
Text [ en-US ] = "~Italic" ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 126 , 42 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_FONTDIALOG:1";
Text [ en-US ] = "~Help" ;
};
OKButton 1
OKButton 1
{
{
Pos = MAP_APPFONT ( 126 , 6 ) ;
Pos = MAP_APPFONT ( 126 , 6 ) ;
...
@@ -265,11 +273,19 @@ ModalDialog RID_FONTSIZEDIALOG
...
@@ -265,11 +273,19 @@ ModalDialog RID_FONTSIZEDIALOG
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 114 , 46 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:PushButton:RID_FONTSIZEDIALOG:1";
Text [ en-US ] = "~Help" ;
};
PushButton 1
PushButton 1
{
{
HelpID = "starmath:PushButton:RID_FONTSIZEDIALOG:1";
HelpID = "starmath:PushButton:RID_FONTSIZEDIALOG:1";
TabStop = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 114 ,
45
) ;
Pos = MAP_APPFONT ( 114 ,
64
) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Default" ;
Text [ en-US ] = "~Default" ;
};
};
...
@@ -429,11 +445,19 @@ ModalDialog RID_FONTTYPEDIALOG
...
@@ -429,11 +445,19 @@ ModalDialog RID_FONTTYPEDIALOG
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Modify" ;
Text [ en-US ] = "~Modify" ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 225 , 66 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_FONTYPEDIALOG:1";
Text [ en-US ] = "~Help" ;
};
PushButton 2
PushButton 2
{
{
HelpID = "starmath:PushButton:RID_FONTTYPEDIALOG:2";
HelpID = "starmath:PushButton:RID_FONTTYPEDIALOG:2";
TabStop = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 225 ,
66
) ;
Pos = MAP_APPFONT ( 225 ,
84
) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Default" ;
Text [ en-US ] = "~Default" ;
};
};
...
@@ -445,7 +469,7 @@ ModalDialog RID_DISTANCEDIALOG
...
@@ -445,7 +469,7 @@ ModalDialog RID_DISTANCEDIALOG
OutputSize = TRUE ;
OutputSize = TRUE ;
SVLook = TRUE ;
SVLook = TRUE ;
HelpId = CMD_SID_DISTANCE ;
HelpId = CMD_SID_DISTANCE ;
Size = MAP_APPFONT ( 2
40 , 9
0 ) ;
Size = MAP_APPFONT ( 2
50 , 12
0 ) ;
Text [ en-US ] = "Spacing" ;
Text [ en-US ] = "Spacing" ;
FixedText 1
FixedText 1
{
{
...
@@ -550,6 +574,14 @@ ModalDialog RID_DISTANCEDIALOG
...
@@ -550,6 +574,14 @@ ModalDialog RID_DISTANCEDIALOG
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 184 , 87 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_DISTANCEDIALOG:1";
Text [ en-US ] = "~Help" ;
};
PushButton 1
PushButton 1
{
{
HelpID = "starmath:PushButton:RID_DISTANCEDIALOG:1";
HelpID = "starmath:PushButton:RID_DISTANCEDIALOG:1";
...
@@ -895,11 +927,19 @@ ModalDialog RID_ALIGNDIALOG
...
@@ -895,11 +927,19 @@ ModalDialog RID_ALIGNDIALOG
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 83 , 46 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_ALIGNDIALOG:1";
Text [ en-US ] = "~Help" ;
};
PushButton 1
PushButton 1
{
{
HelpID = "starmath:PushButton:RID_ALIGNDIALOG:1";
HelpID = "starmath:PushButton:RID_ALIGNDIALOG:1";
TabStop = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 83 ,
46
) ;
Pos = MAP_APPFONT ( 83 ,
69
) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Default" ;
Text [ en-US ] = "~Default" ;
};
};
...
@@ -1083,6 +1123,14 @@ ModalDialog RID_SYMBOLDIALOG
...
@@ -1083,6 +1123,14 @@ ModalDialog RID_SYMBOLDIALOG
Size = MAP_APPFONT ( 56 , 14 ) ;
Size = MAP_APPFONT ( 56 , 14 ) ;
Text [ en-US ] = "~Edit..." ;
Text [ en-US ] = "~Edit..." ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 177 , 60 ) ;
Size = MAP_APPFONT ( 56 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_SYMBOLDIALOG:1";
Text [ en-US ] = "~Help" ;
};
};
};
ModalDialog RID_SYMDEFINEDIALOG
ModalDialog RID_SYMDEFINEDIALOG
...
@@ -1293,6 +1341,14 @@ ModalDialog RID_SYMDEFINEDIALOG
...
@@ -1293,6 +1341,14 @@ ModalDialog RID_SYMDEFINEDIALOG
Size = MAP_APPFONT ( 50 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Delete" ;
Text [ en-US ] = "~Delete" ;
};
};
HelpButton 1
{
Pos = MAP_APPFONT ( 310 , 42 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
HelpID = "starmath:HelpButton:RID_SYMDEFINEDIALOG:1";
Text [ en-US ] = "~Help" ;
};
OKButton 1
OKButton 1
{
{
Pos = MAP_APPFONT ( 310 , 6 ) ;
Pos = MAP_APPFONT ( 310 , 6 ) ;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment