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
79c1b86e
Kaydet (Commit)
79c1b86e
authored
Ara 31, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
MessageDialog isn't ready for this usage just yet
Change-Id: If6c886ac4115dd0a030660fd0147491815fa411a
üst
110ca044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
moduldl2.cxx
basctl/source/basicide/moduldl2.cxx
+17
-15
No files found.
basctl/source/basicide/moduldl2.cxx
Dosyayı görüntüle @
79c1b86e
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <vcl/
layout
.hxx>
#include <vcl/
msgbox
.hxx>
#include <sot/storinfo.hxx>
#include <sot/storinfo.hxx>
#include <moduldlg.hrc>
#include <moduldlg.hrc>
...
@@ -291,7 +291,7 @@ sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
...
@@ -291,7 +291,7 @@ sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
OUString
aLibName
=
GetEntryText
(
pEntry
,
0
);
OUString
aLibName
=
GetEntryText
(
pEntry
,
0
);
if
(
aLibName
.
equalsIgnoreAsciiCase
(
"Standard"
)
)
if
(
aLibName
.
equalsIgnoreAsciiCase
(
"Standard"
)
)
{
{
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_CANNOTCHANGENAMESTDLIB
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_CANNOTCHANGENAMESTDLIB
)
).
Execute
();
return
false
;
return
false
;
}
}
...
@@ -301,7 +301,7 @@ sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
...
@@ -301,7 +301,7 @@ sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
if
(
(
xModLibContainer
.
is
()
&&
xModLibContainer
->
hasByName
(
aLibName
)
&&
xModLibContainer
->
isLibraryReadOnly
(
aLibName
)
&&
!
xModLibContainer
->
isLibraryLink
(
aLibName
)
)
||
if
(
(
xModLibContainer
.
is
()
&&
xModLibContainer
->
hasByName
(
aLibName
)
&&
xModLibContainer
->
isLibraryReadOnly
(
aLibName
)
&&
!
xModLibContainer
->
isLibraryLink
(
aLibName
)
)
||
(
xDlgLibContainer
.
is
()
&&
xDlgLibContainer
->
hasByName
(
aLibName
)
&&
xDlgLibContainer
->
isLibraryReadOnly
(
aLibName
)
&&
!
xDlgLibContainer
->
isLibraryLink
(
aLibName
)
)
)
(
xDlgLibContainer
.
is
()
&&
xDlgLibContainer
->
hasByName
(
aLibName
)
&&
xDlgLibContainer
->
isLibraryReadOnly
(
aLibName
)
&&
!
xDlgLibContainer
->
isLibraryLink
(
aLibName
)
)
)
{
{
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_LIBISREADONLY
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_LIBISREADONLY
)
).
Execute
();
return
false
;
return
false
;
}
}
...
@@ -353,7 +353,7 @@ sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewNam
...
@@ -353,7 +353,7 @@ sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewNam
}
}
catch
(
const
container
::
ElementExistException
&
)
catch
(
const
container
::
ElementExistException
&
)
{
{
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_SBXNAMEALLREADYUSED
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_SBXNAMEALLREADYUSED
)
).
Execute
();
return
false
;
return
false
;
}
}
catch
(
const
container
::
NoSuchElementException
&
)
catch
(
const
container
::
NoSuchElementException
&
)
...
@@ -366,9 +366,9 @@ sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewNam
...
@@ -366,9 +366,9 @@ sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewNam
if
(
!
bValid
)
if
(
!
bValid
)
{
{
if
(
rNewName
.
getLength
()
>
30
)
if
(
rNewName
.
getLength
()
>
30
)
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_LIBNAMETOLONG
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_LIBNAMETOLONG
)
).
Execute
();
else
else
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_BADSBXNAME
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_BADSBXNAME
)
).
Execute
();
}
}
return
bValid
;
return
bValid
;
...
@@ -384,7 +384,7 @@ IMPL_LINK_NOARG(NewObjectDialog, OkButtonHandler)
...
@@ -384,7 +384,7 @@ IMPL_LINK_NOARG(NewObjectDialog, OkButtonHandler)
EndDialog
(
1
);
EndDialog
(
1
);
else
else
{
{
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_BADSBXNAME
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_BADSBXNAME
)
).
Execute
();
m_pEdit
->
GrabFocus
();
m_pEdit
->
GrabFocus
();
}
}
return
0
;
return
0
;
...
@@ -868,7 +868,7 @@ void LibPage::InsertLib()
...
@@ -868,7 +868,7 @@ void LibPage::InsertLib()
}
}
if
(
!
pLibDlg
)
if
(
!
pLibDlg
)
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_NOLIBINSTORAGE
),
VCL_MESSAGE_INFO
).
Execute
();
InfoBox
(
this
,
IDE_RESSTR
(
RID_STR_NOLIBINSTORAGE
)
).
Execute
();
else
else
{
{
bool
bChanges
=
false
;
bool
bChanges
=
false
;
...
@@ -905,7 +905,7 @@ void LibPage::InsertLib()
...
@@ -905,7 +905,7 @@ void LibPage::InsertLib()
// check, if the library is the Standard library
// check, if the library is the Standard library
if
(
aLibName
==
"Standard"
)
if
(
aLibName
==
"Standard"
)
{
{
MessageDialog
(
this
,
IDE_RESSTR
(
RID_STR_REPLACESTDLIB
)
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
IDE_RESSTR
(
RID_STR_REPLACESTDLIB
)
).
Execute
();
continue
;
continue
;
}
}
...
@@ -917,7 +917,7 @@ void LibPage::InsertLib()
...
@@ -917,7 +917,7 @@ void LibPage::InsertLib()
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
aErrStr
+=
"
\n
"
;
aErrStr
+=
"
\n
"
;
aErrStr
+=
IDE_RESSTR
(
RID_STR_LIBISREADONLY
);
aErrStr
+=
IDE_RESSTR
(
RID_STR_LIBISREADONLY
);
MessageDialog
(
this
,
aErrStr
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aErrStr
).
Execute
();
continue
;
continue
;
}
}
...
@@ -934,7 +934,7 @@ void LibPage::InsertLib()
...
@@ -934,7 +934,7 @@ void LibPage::InsertLib()
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
aErrStr
+=
"
\n
"
;
aErrStr
+=
"
\n
"
;
aErrStr
+=
IDE_RESSTR
(
RID_STR_SBXNAMEALLREADYUSED
);
aErrStr
+=
IDE_RESSTR
(
RID_STR_SBXNAMEALLREADYUSED
);
MessageDialog
(
this
,
aErrStr
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aErrStr
).
Execute
();
continue
;
continue
;
}
}
}
}
...
@@ -953,7 +953,7 @@ void LibPage::InsertLib()
...
@@ -953,7 +953,7 @@ void LibPage::InsertLib()
{
{
OUString
aErrStr
(
IDE_RESSTR
(
RID_STR_NOIMPORT
)
);
OUString
aErrStr
(
IDE_RESSTR
(
RID_STR_NOIMPORT
)
);
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
aErrStr
=
aErrStr
.
replaceAll
(
"XX"
,
aLibName
);
MessageDialog
(
this
,
aErrStr
).
Execute
();
ErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aErrStr
).
Execute
();
continue
;
continue
;
}
}
}
}
...
@@ -1545,15 +1545,17 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
...
@@ -1545,15 +1545,17 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
if
(
aLibName
.
getLength
()
>
30
)
if
(
aLibName
.
getLength
()
>
30
)
{
{
MessageDialog
(
pWin
,
IDEResId
(
RID_STR_LIBNAMETOLONG
).
toString
()
).
Execute
();
ErrorBox
(
pWin
,
WB_OK
|
WB_DEF_OK
,
IDEResId
(
RID_STR_LIBNAMETOLONG
).
toString
()
).
Execute
();
}
}
else
if
(
!
IsValidSbxName
(
aLibName
)
)
else
if
(
!
IsValidSbxName
(
aLibName
)
)
{
{
MessageDialog
(
pWin
,
IDEResId
(
RID_STR_BADSBXNAME
).
toString
()).
Execute
();
ErrorBox
(
pWin
,
WB_OK
|
WB_DEF_OK
,
IDEResId
(
RID_STR_BADSBXNAME
).
toString
()
).
Execute
();
}
}
else
if
(
rDocument
.
hasLibrary
(
E_SCRIPTS
,
aLibName
)
||
rDocument
.
hasLibrary
(
E_DIALOGS
,
aLibName
)
)
else
if
(
rDocument
.
hasLibrary
(
E_SCRIPTS
,
aLibName
)
||
rDocument
.
hasLibrary
(
E_DIALOGS
,
aLibName
)
)
{
{
MessageDialog
(
pWin
,
IDEResId
(
RID_STR_SBXNAMEALLREADYUSED2
).
toString
()).
Execute
();
ErrorBox
(
pWin
,
WB_OK
|
WB_DEF_OK
,
IDEResId
(
RID_STR_SBXNAMEALLREADYUSED2
).
toString
()
).
Execute
();
}
}
else
else
{
{
...
...
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