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
d731f30e
Kaydet (Commit)
d731f30e
authored
Agu 18, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
InfoBox to String
Change-Id: Ic12f04bf80639d89ecc531bceb8378c7d97e9325
üst
58c7c4c2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
23 deletions
+19
-23
dialog.hrc
sfx2/source/dialog/dialog.hrc
+5
-5
dialog.src
sfx2/source/dialog/dialog.src
+8
-14
mgetempl.cxx
sfx2/source/dialog/mgetempl.cxx
+4
-3
newstyle.cxx
sfx2/source/dialog/newstyle.cxx
+2
-1
No files found.
sfx2/source/dialog/dialog.hrc
Dosyayı görüntüle @
d731f30e
...
@@ -35,12 +35,12 @@
...
@@ -35,12 +35,12 @@
#define RID_DLG_ALIEN_WARNING ( RC_DIALOG_BEGIN + 0)
#define RID_DLG_ALIEN_WARNING ( RC_DIALOG_BEGIN + 0)
#define STR_RESET ( RC_DIALOG_BEGIN + 0)
#define STR_RESET ( RC_DIALOG_BEGIN + 0)
#define MSG_OVERWRITE ( RC_DIALOG_BEGIN + 1)
#define MSG_OVERWRITE ( RC_DIALOG_BEGIN + 1)
#define
MSG
_TABPAGE_INVALIDNAME ( RC_DIALOG_BEGIN + 13)
#define
STR
_TABPAGE_INVALIDNAME ( RC_DIALOG_BEGIN + 13)
#define
MSG
_TABPAGE_INVALIDSTYLE ( RC_DIALOG_BEGIN + 14)
#define
STR
_TABPAGE_INVALIDSTYLE ( RC_DIALOG_BEGIN + 14)
#define
MSG
_POOL_STYLE_NAME ( RC_DIALOG_BEGIN + 16)
#define
STR
_POOL_STYLE_NAME ( RC_DIALOG_BEGIN + 16)
#define
MSG
_TABPAGE_INVALIDPARENT ( RC_DIALOG_BEGIN + 18)
#define
STR
_TABPAGE_INVALIDPARENT ( RC_DIALOG_BEGIN + 18)
#define STR_DELETE_STYLE ( RC_DIALOG_BEGIN + 1
8
)
#define STR_DELETE_STYLE ( RC_DIALOG_BEGIN + 1
9
)
#define STR_DELETE_STYLE_USED ( RC_DIALOG_BEGIN + 20)
#define STR_DELETE_STYLE_USED ( RC_DIALOG_BEGIN + 20)
#define MN_CONTEXT_TEMPLDLG ( RC_DIALOG_BEGIN + 46)
#define MN_CONTEXT_TEMPLDLG ( RC_DIALOG_BEGIN + 46)
...
...
sfx2/source/dialog/dialog.src
Dosyayı görüntüle @
d731f30e
...
@@ -30,27 +30,21 @@ String STR_APPLY
...
@@ -30,27 +30,21 @@ String STR_APPLY
{
{
Text [ en-US ] = "Apply";
Text [ en-US ] = "Apply";
};
};
InfoBox MSG
_TABPAGE_INVALIDNAME
String STR
_TABPAGE_INVALIDNAME
{
{
BUTTONS = WB_OK ;
Text [ en-US ] = "This name is already in use." ;
DEFBUTTON = WB_DEF_OK ;
Message [ en-US ] = "This name is already in use." ;
};
};
InfoBox MSG
_TABPAGE_INVALIDSTYLE
String STR
_TABPAGE_INVALIDSTYLE
{
{
BUTTONS = WB_OK ;
Text [ en-US ] = "This Style does not exist." ;
DEFBUTTON = WB_DEF_OK ;
Message [ en-US ] = "This Style does not exist." ;
};
};
InfoBox MSG
_TABPAGE_INVALIDPARENT
String STR
_TABPAGE_INVALIDPARENT
{
{
BUTTONS = WB_OK ;
Text [ en-US ] = "This Style cannot be used as a base Style,\nbecause it would result in a recursive reference." ;
DEFBUTTON = WB_DEF_OK ;
Message [ en-US ] = "This Style cannot be used as a base Style,\nbecause it would result in a recursive reference." ;
};
};
InfoBox MSG
_POOL_STYLE_NAME
String STR
_POOL_STYLE_NAME
{
{
Message
[ en-US ] = "Name already exists as a default Style.\nPlease choose another name." ;
Text
[ en-US ] = "Name already exists as a default Style.\nPlease choose another name." ;
};
};
String STR_DELETE_STYLE_USED
String STR_DELETE_STYLE_USED
{
{
...
...
sfx2/source/dialog/mgetempl.cxx
Dosyayı görüntüle @
d731f30e
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
*/
*/
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/field.hxx>
#include <vcl/field.hxx>
#include <svl/eitem.hxx>
#include <svl/eitem.hxx>
...
@@ -538,7 +539,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
...
@@ -538,7 +539,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
if
(
!
pStyle
->
SetName
(
comphelper
::
string
::
stripStart
(
m_pNameRw
->
GetText
(),
' '
)))
if
(
!
pStyle
->
SetName
(
comphelper
::
string
::
stripStart
(
m_pNameRw
->
GetText
(),
' '
)))
{
{
InfoBox
aBox
(
this
,
SfxResId
(
MSG_TABPAGE_INVALIDNAME
)
);
MessageDialog
aBox
(
this
,
SfxResId
(
STR_TABPAGE_INVALIDNAME
),
VCL_MESSAGE_INFO
);
aBox
.
Execute
();
aBox
.
Execute
();
m_pNameRw
->
GrabFocus
();
m_pNameRw
->
GrabFocus
();
m_pNameRw
->
SetSelection
(
Selection
(
SELECTION_MIN
,
SELECTION_MAX
)
);
m_pNameRw
->
SetSelection
(
Selection
(
SELECTION_MIN
,
SELECTION_MAX
)
);
...
@@ -555,7 +556,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
...
@@ -555,7 +556,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
{
{
if
(
!
pStyle
->
SetFollow
(
aFollowEntry
)
)
if
(
!
pStyle
->
SetFollow
(
aFollowEntry
)
)
{
{
InfoBox
aBox
(
this
,
SfxResId
(
MSG_TABPAGE_INVALIDSTYLE
)
);
MessageDialog
aBox
(
this
,
SfxResId
(
STR_TABPAGE_INVALIDSTYLE
),
VCL_MESSAGE_INFO
);
aBox
.
Execute
();
aBox
.
Execute
();
m_pFollowLb
->
GrabFocus
();
m_pFollowLb
->
GrabFocus
();
return
SfxTabPage
::
KEEP_PAGE
;
return
SfxTabPage
::
KEEP_PAGE
;
...
@@ -575,7 +576,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
...
@@ -575,7 +576,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
{
{
if
(
!
pStyle
->
SetParent
(
aParentEntry
)
)
if
(
!
pStyle
->
SetParent
(
aParentEntry
)
)
{
{
InfoBox
aBox
(
this
,
SfxResId
(
MSG_TABPAGE_INVALIDPARENT
)
);
MessageDialog
aBox
(
this
,
SfxResId
(
STR_TABPAGE_INVALIDPARENT
),
VCL_MESSAGE_INFO
);
aBox
.
Execute
();
aBox
.
Execute
();
m_pBaseLb
->
GrabFocus
();
m_pBaseLb
->
GrabFocus
();
return
SfxTabPage
::
KEEP_PAGE
;
return
SfxTabPage
::
KEEP_PAGE
;
...
...
sfx2/source/dialog/newstyle.cxx
Dosyayı görüntüle @
d731f30e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <sfx2/newstyle.hxx>
#include <sfx2/newstyle.hxx>
#include "dialog.hrc"
#include "dialog.hrc"
#include <sfx2/sfxresid.hxx>
#include <sfx2/sfxresid.hxx>
#include <vcl/layout.hxx>
// PRIVATE METHODES ------------------------------------------------------
// PRIVATE METHODES ------------------------------------------------------
...
@@ -36,7 +37,7 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl )
...
@@ -36,7 +37,7 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl )
{
{
if
(
!
pStyle
->
IsUserDefined
()
)
if
(
!
pStyle
->
IsUserDefined
()
)
{
{
InfoBox
(
this
,
SfxResId
(
MSG_POOL_STYLE_NAME
)
).
Execute
();
MessageDialog
(
this
,
SfxResId
(
STR_POOL_STYLE_NAME
),
VCL_MESSAGE_INFO
).
Execute
();
return
0
;
return
0
;
}
}
...
...
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