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
4ff62bf4
Kaydet (Commit)
4ff62bf4
authored
Ock 06, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add warning message if you close unsaved referenced document
üst
7a3ef271
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
globstr.hrc
sc/inc/globstr.hrc
+2
-1
externalrefmgr.cxx
sc/source/ui/docshell/externalrefmgr.cxx
+11
-0
globstr.src
sc/source/ui/src/globstr.src
+4
-0
No files found.
sc/inc/globstr.hrc
Dosyayı görüntüle @
4ff62bf4
...
...
@@ -600,8 +600,9 @@
#define STR_ERR_NAME_INVALID 464
#define STR_UNSAVED_EXT_REF 465
#define STR_CLOSE_WITH_UNSAVED_REFS 466
#define STR_COUNT 46
6
#define STR_COUNT 46
7
#endif
sc/source/ui/docshell/externalrefmgr.cxx
Dosyayı görüntüle @
4ff62bf4
...
...
@@ -44,6 +44,7 @@
#include "viewdata.hxx"
#include "tabvwsh.hxx"
#include "sc.hrc"
#include "globstr.hrc"
#include "sfx2/app.hxx"
#include "sfx2/docfilt.hxx"
...
...
@@ -61,6 +62,7 @@
#include "tools/urlobj.hxx"
#include "unotools/ucbhelper.hxx"
#include "unotools/localfilehelper.hxx"
#include "vcl/msgbox.hxx"
#include <memory>
#include <algorithm>
...
...
@@ -2704,6 +2706,15 @@ void ScExternalRefManager::Notify( SfxBroadcaster&, const SfxHint& rHint )
sal_uLong
nEventId
=
((
SfxEventHint
&
)
rHint
).
GetEventId
();
switch
(
nEventId
)
{
case
SFX_EVENT_PREPARECLOSEDOC
:
{
SfxObjectShell
*
pObjShell
=
static_cast
<
const
SfxEventHint
&>
(
rHint
).
GetObjShell
();
ScDocShell
*
pDocShell
=
static_cast
<
ScDocShell
*
>
(
pObjShell
);
WarningBox
aBox
(
pDocShell
->
GetActiveDialogParent
(),
WinBits
(
WB_OK
),
ScGlobal
::
GetRscString
(
STR_CLOSE_WITH_UNSAVED_REFS
)
);
aBox
.
Execute
();
}
break
;
case
SFX_EVENT_SAVEDOCDONE
:
case
SFX_EVENT_SAVEASDOCDONE
:
{
...
...
sc/source/ui/src/globstr.src
Dosyayı görüntüle @
4ff62bf4
...
...
@@ -1855,5 +1855,9 @@ Resource RID_GLOBSTR
{
Text [ en-US ] = "This Document contains external references to unsaved documents.\n\nDo you want to continue?";
};
String STR_CLOSE_WITH_UNSAVED_REFS
{
Text [ en-US ] = "This Document is referenced by another document and not yet saved. Closing it without saving will result in data loss.";
};
};
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