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
c9e2f8ff
Kaydet (Commit)
c9e2f8ff
authored
Eki 25, 2011
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SfxBaseModel impl_setDocumentProperties to impl class
üst
dfab4794
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
sfxbasemodel.hxx
sfx2/inc/sfx2/sfxbasemodel.hxx
+0
-2
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+11
-6
No files found.
sfx2/inc/sfx2/sfxbasemodel.hxx
Dosyayı görüntüle @
c9e2f8ff
...
...
@@ -1503,8 +1503,6 @@ public:
/** returns true if someone added a XEventListener to this XEventBroadcaster */
sal_Bool
hasEventListeners
()
const
;
void
impl_setDocumentProperties
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
document
::
XDocumentProperties
>&
);
protected
:
/* returns a unique id for the model that is valid as long as the document
...
...
sfx2/source/doc/sfxbasemodel.cxx
Dosyayı görüntüle @
c9e2f8ff
...
...
@@ -273,6 +273,9 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument
m_pObjectShell
->
SetModified
(
sal_True
);
}
void
impl_setDocumentProperties
(
const
uno
::
Reference
<
document
::
XDocumentProperties
>&
);
uno
::
Reference
<
rdf
::
XDocumentMetadataAccess
>
GetDMA
()
{
if
(
!
m_xDocumentMetadata
.
is
())
...
...
@@ -898,11 +901,13 @@ uno::Reference< document::XDocumentInfo > SAL_CALL SfxBaseModel::getDocumentInfo
}
void
SfxBaseModel
::
impl_setDocumentProperties
(
const
uno
::
Reference
<
document
::
XDocumentProperties
>&
rxNewDocProps
)
IMPL_SfxBaseModel_DataContainer
::
impl_setDocumentProperties
(
const
uno
::
Reference
<
document
::
XDocumentProperties
>&
rxNewDocProps
)
{
m_pData
->
m_xDocumentProperties
.
set
(
rxNewDocProps
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
util
::
XModifyBroadcaster
>
xMB
(
m_pData
->
m_xDocumentProperties
,
uno
::
UNO_QUERY_THROW
);
xMB
->
addModifyListener
(
new
SfxDocInfoListener_Impl
(
*
m_pData
->
m_pObjectShell
));
m_xDocumentProperties
.
set
(
rxNewDocProps
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
util
::
XModifyBroadcaster
>
const
xMB
(
m_xDocumentProperties
,
uno
::
UNO_QUERY_THROW
);
xMB
->
addModifyListener
(
new
SfxDocInfoListener_Impl
(
*
m_pObjectShell
));
}
void
...
...
@@ -912,7 +917,7 @@ SfxBaseModel::setDocumentProperties( const uno::Reference< document::XDocumentPr
::
SolarMutexGuard
aGuard
;
if
(
impl_isDisposed
()
)
throw
lang
::
DisposedException
();
impl_setDocumentProperties
(
rxNewDocProps
);
m_pData
->
impl_setDocumentProperties
(
rxNewDocProps
);
}
// document::XDocumentPropertiesSupplier:
...
...
@@ -927,7 +932,7 @@ SfxBaseModel::getDocumentProperties()
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
DEFINE_CONST_UNICODE
(
"com.sun.star.document.DocumentProperties"
)
),
uno
::
UNO_QUERY_THROW
);
impl_setDocumentProperties
(
xDocProps
);
m_pData
->
impl_setDocumentProperties
(
xDocProps
);
}
return
m_pData
->
m_xDocumentProperties
;
...
...
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