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
7d0303d3
Kaydet (Commit)
7d0303d3
authored
Ara 02, 2003
tarafından
Mikhail Voitenko
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#112923# fix document closing
üst
e03eb2b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
docholder.cxx
embeddedobj/source/general/docholder.cxx
+6
-4
docholder.hxx
embeddedobj/source/inc/docholder.hxx
+3
-2
No files found.
embeddedobj/source/general/docholder.cxx
Dosyayı görüntüle @
7d0303d3
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: docholder.cxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author: mav $ $Date: 2003-12-0
1 10:16:41
$
* last change: $Author: mav $ $Date: 2003-12-0
2 14:32:42
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -132,7 +132,8 @@ DocumentHolder::DocumentHolder( const uno::Reference< lang::XMultiServiceFactory
m_pEmbedObj
(
pEmbObj
),
m_pInterceptor
(
NULL
),
m_bReadOnly
(
sal_False
),
m_bWaitForClose
(
sal_False
)
m_bWaitForClose
(
sal_False
),
m_bAllowClosing
(
sal_False
)
{
const
::
rtl
::
OUString
aServiceName
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.Desktop"
)
);
uno
::
Reference
<
frame
::
XDesktop
>
xDesktop
(
m_xFactory
->
createInstance
(
aServiceName
),
uno
::
UNO_QUERY
);
...
...
@@ -223,6 +224,7 @@ void DocumentHolder::CloseDocument( sal_Bool bDeliverOwnership, sal_Bool bWaitFo
uno
::
Reference
<
util
::
XCloseable
>
xCloseable
(
xBroadcaster
,
uno
::
UNO_QUERY
);
if
(
xCloseable
.
is
()
)
{
m_bAllowClosing
=
sal_True
;
m_bWaitForClose
=
bWaitForClose
;
xCloseable
->
close
(
bDeliverOwnership
);
}
...
...
@@ -543,7 +545,7 @@ void SAL_CALL DocumentHolder::disposing( const com::sun::star::lang::EventObject
void
SAL_CALL
DocumentHolder
::
queryClosing
(
const
lang
::
EventObject
&
aSource
,
sal_Bool
bGetsOwnership
)
throw
(
::
com
::
sun
::
star
::
util
::
CloseVetoException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
if
(
m_xDocument
.
is
()
&&
m_xDocument
==
aSource
.
Source
&&
m_bWaitForClose
)
if
(
m_xDocument
.
is
()
&&
m_xDocument
==
aSource
.
Source
&&
!
m_bAllowClosing
)
throw
util
::
CloseVetoException
();
}
...
...
embeddedobj/source/inc/docholder.hxx
Dosyayı görüntüle @
7d0303d3
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: docholder.hxx,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author: mav $ $Date: 2003-1
1-18 12:47
:08 $
* last change: $Author: mav $ $Date: 2003-1
2-02 14:33
:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -115,6 +115,7 @@ private:
sal_Bool
m_bReadOnly
;
sal_Bool
m_bWaitForClose
;
sal_Bool
m_bAllowClosing
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>
GetDocFrame
();
void
LoadDocToFrame
();
...
...
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