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
0b75d198
Kaydet (Commit)
0b75d198
authored
Nis 20, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Check if the referenced file is loadable, and if not, don't update.
üst
5995c097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
externalrefmgr.hxx
sc/inc/externalrefmgr.hxx
+6
-1
externalrefmgr.cxx
sc/source/ui/docshell/externalrefmgr.cxx
+4
-0
No files found.
sc/inc/externalrefmgr.hxx
Dosyayı görüntüle @
0b75d198
...
...
@@ -672,6 +672,12 @@ public:
*/
void
notifyAllLinkListeners
(
sal_uInt16
nFileId
,
LinkUpdateType
eType
);
/**
* Check if the file specified by the path is a legitimate file that
* exists & can be loaded.
*/
bool
isFileLoadable
(
const
String
&
rFile
)
const
;
private
:
ScExternalRefManager
();
ScExternalRefManager
(
const
ScExternalRefManager
&
);
...
...
@@ -722,7 +728,6 @@ private:
const
ScDocument
*
getInMemorySrcDocument
(
sal_uInt16
nFileId
);
const
ScDocument
*
getSrcDocument
(
sal_uInt16
nFileId
);
SfxObjectShellRef
loadSrcDocument
(
sal_uInt16
nFileId
,
String
&
rFilter
);
bool
isFileLoadable
(
const
String
&
rFile
)
const
;
void
maybeLinkExternalFile
(
sal_uInt16
nFileId
);
...
...
sc/source/ui/docshell/externalrefmgr.cxx
Dosyayı görüntüle @
0b75d198
...
...
@@ -1272,6 +1272,10 @@ void ScExternalRefLink::DataChanged(const String& /*rMimeType*/, const Any& /*rV
String
aFile
,
aFilter
;
mpDoc
->
GetLinkManager
()
->
GetDisplayNames
(
this
,
NULL
,
&
aFile
,
NULL
,
&
aFilter
);
ScExternalRefManager
*
pMgr
=
mpDoc
->
GetExternalRefManager
();
if
(
!
pMgr
->
isFileLoadable
(
aFile
))
return
;
const
String
*
pCurFile
=
pMgr
->
getExternalFileName
(
mnFileId
);
if
(
!
pCurFile
)
return
;
...
...
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