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
08234bab
Kaydet (Commit)
08234bab
authored
May 11, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert MESS_BTN to scoped enum
Change-Id: I9332216f58268b20b3b8e9488471279d70c519ad
üst
307ab87f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
21 deletions
+18
-21
dlgname.cxx
cui/source/dialogs/dlgname.cxx
+3
-6
defdlgname.hxx
cui/source/inc/defdlgname.hxx
+0
-4
dlgname.hxx
cui/source/inc/dlgname.hxx
+5
-1
tpbitmap.cxx
cui/source/tabpages/tpbitmap.cxx
+2
-2
tpcolor.cxx
cui/source/tabpages/tpcolor.cxx
+2
-2
tpgradnt.cxx
cui/source/tabpages/tpgradnt.cxx
+2
-2
tphatch.cxx
cui/source/tabpages/tphatch.cxx
+2
-2
tplnedef.cxx
cui/source/tabpages/tplnedef.cxx
+2
-2
No files found.
cui/source/dialogs/dlgname.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -202,20 +202,17 @@ IMPL_LINK_NOARG_TYPED(SvxMessDialog, Button2Hdl, Button*, void)
/*************************************************************************/
void
SvxMessDialog
::
SetButtonText
(
sal_uInt16
nBtnId
,
const
OUString
&
rNewTxt
)
void
SvxMessDialog
::
SetButtonText
(
SvxMessDialogButton
nBtnId
,
const
OUString
&
rNewTxt
)
{
switch
(
nBtnId
)
{
case
MESS_BTN_
1
:
case
SvxMessDialogButton
:
:
N
1
:
pBtn1
->
SetText
(
rNewTxt
);
break
;
case
MESS_BTN_
2
:
case
SvxMessDialogButton
:
:
N
2
:
pBtn2
->
SetText
(
rNewTxt
);
break
;
default
:
OSL_FAIL
(
"Invalid button number!!!"
);
}
}
...
...
cui/source/inc/defdlgname.hxx
Dosyayı görüntüle @
08234bab
...
...
@@ -19,10 +19,6 @@
#ifndef INCLUDED_CUI_SOURCE_INC_DEFDLGNAME_HXX
#define INCLUDED_CUI_SOURCE_INC_DEFDLGNAME_HXX
// define ----------------------------------------------------------------
#define MESS_BTN_1 ((sal_uInt16)0)
#define MESS_BTN_2 ((sal_uInt16)1)
// const -----------------------------------------------------------------
...
...
cui/source/inc/dlgname.hxx
Dosyayı görüntüle @
08234bab
...
...
@@ -124,6 +124,10 @@ public:
void
GetDescription
(
OUString
&
rDescription
)
{
rDescription
=
pEdtDescription
->
GetText
();
}
};
enum
class
SvxMessDialogButton
{
N1
,
N2
};
/// Dialog to cancel, save, or add
class
SvxMessDialog
:
public
ModalDialog
{
...
...
@@ -142,7 +146,7 @@ public:
virtual
~
SvxMessDialog
();
virtual
void
dispose
()
override
;
void
SetButtonText
(
sal_uInt16
nBtnId
,
const
OUString
&
rNewTxt
);
void
SetButtonText
(
SvxMessDialogButton
nBtnId
,
const
OUString
&
rNewTxt
);
};
...
...
cui/source/tabpages/tpbitmap.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -440,8 +440,8 @@ long SvxBitmapTabPage::CheckChanges_Impl()
CUI_RES
(
RID_SVXSTR_ASK_CHANGE_BITMAP
),
&
aWarningBoxImage
);
DBG_ASSERT
(
aMessDlg
,
"Dialog creation failed!"
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
1
,
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
2
,
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
);
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
1
,
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
);
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
2
,
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
);
short
nRet
=
aMessDlg
->
Execute
();
...
...
cui/source/tabpages/tpcolor.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -540,9 +540,9 @@ long SvxColorTabPage::CheckChanges_Impl()
SVX_RESSTR
(
RID_SVXSTR_COLOR
),
ResId
(
RID_SVXSTR_ASK_CHANGE_COLOR
,
rMgr
),
&
aWarningBoxImage
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
1
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
1
,
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
2
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
2
,
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
);
short
nRet
=
aMessDlg
->
Execute
();
...
...
cui/source/tabpages/tpgradnt.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -292,9 +292,9 @@ long SvxGradientTabPage::CheckChanges_Impl()
CUI_RESSTR
(
RID_SVXSTR_ASK_CHANGE_GRADIENT
),
&
aWarningBoxImage
);
DBG_ASSERT
(
aMessDlg
,
"Dialog creation failed!"
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
1
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
1
,
OUString
(
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
)
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
2
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
2
,
OUString
(
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
)
);
short
nRet
=
aMessDlg
->
Execute
();
...
...
cui/source/tabpages/tphatch.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -262,9 +262,9 @@ long SvxHatchTabPage::CheckChanges_Impl()
CUI_RESSTR
(
RID_SVXSTR_ASK_CHANGE_HATCH
),
&
aWarningBoxImage
);
DBG_ASSERT
(
aMessDlg
,
"Dialog creation failed!"
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
1
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
1
,
OUString
(
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
)
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
2
,
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
2
,
OUString
(
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
)
);
short
nRet
=
aMessDlg
->
Execute
();
...
...
cui/source/tabpages/tplnedef.cxx
Dosyayı görüntüle @
08234bab
...
...
@@ -246,8 +246,8 @@ void SvxLineDefTabPage::CheckChanges_Impl()
OUString
(
ResId
(
RID_SVXSTR_ASK_CHANGE_LINESTYLE
,
rMgr
)
),
&
aWarningBoxImage
);
DBG_ASSERT
(
aMessDlg
,
"Dialog creation failed!"
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
1
,
OUString
(
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
)
);
aMessDlg
->
SetButtonText
(
MESS_BTN_
2
,
OUString
(
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
)
);
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
1
,
OUString
(
ResId
(
RID_SVXSTR_CHANGE
,
rMgr
)
)
);
aMessDlg
->
SetButtonText
(
SvxMessDialogButton
::
N
2
,
OUString
(
ResId
(
RID_SVXSTR_ADD
,
rMgr
)
)
);
short
nRet
=
aMessDlg
->
Execute
();
...
...
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