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
47709411
Kaydet (Commit)
47709411
authored
Kas 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I5528b17c106aefde4c58dfef00e30fdcf62f7db7
üst
108ecc45
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
embedobj.cxx
embeddedobj/source/commonembedding/embedobj.cxx
+2
-2
persistence.cxx
embeddedobj/source/commonembedding/persistence.cxx
+4
-4
docholder.cxx
embeddedobj/source/general/docholder.cxx
+1
-1
dummyobject.cxx
embeddedobj/source/general/dummyobject.cxx
+2
-2
olepersist.cxx
embeddedobj/source/msole/olepersist.cxx
+4
-4
No files found.
embeddedobj/source/commonembedding/embedobj.cxx
Dosyayı görüntüle @
47709411
...
...
@@ -480,7 +480,7 @@ void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
// let the object window be shown
if
(
nNewState
==
embed
::
EmbedStates
::
UI_ACTIVE
||
nNewState
==
embed
::
EmbedStates
::
INPLACE_ACTIVE
)
PostEvent_Impl
(
OUString
(
"OnVisAreaChanged"
)
);
PostEvent_Impl
(
"OnVisAreaChanged"
);
}
}
...
...
@@ -626,7 +626,7 @@ void SAL_CALL OCommonEmbeddedObject::update()
throw
embed
::
WrongStateException
(
"The object has no persistence!"
,
static_cast
<
::
cppu
::
OWeakObject
*
>
(
this
)
);
PostEvent_Impl
(
OUString
(
"OnVisAreaChanged"
)
);
PostEvent_Impl
(
"OnVisAreaChanged"
);
}
...
...
embeddedobj/source/commonembedding/persistence.cxx
Dosyayı görüntüle @
47709411
...
...
@@ -1355,7 +1355,7 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed::
SAL_WARN
(
"embeddedobj.common"
,
"Can not retrieve own storage media type!"
);
}
PostEvent_Impl
(
OUString
(
"OnSaveAs"
)
);
PostEvent_Impl
(
"OnSaveAs"
);
bool
bTryOptimization
=
false
;
for
(
sal_Int32
nInd
=
0
;
nInd
<
lObjArgs
.
getLength
();
nInd
++
)
...
...
@@ -1478,7 +1478,7 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew )
if
(
xModif
.
is
()
)
xModif
->
setModified
(
sal_False
);
PostEvent_Impl
(
OUString
(
"OnSaveAsDone"
)
);
PostEvent_Impl
(
"OnSaveAsDone"
);
}
else
{
...
...
@@ -1588,7 +1588,7 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn()
if
(
m_nObjectState
==
embed
::
EmbedStates
::
LOADED
)
return
;
PostEvent_Impl
(
OUString
(
"OnSave"
)
);
PostEvent_Impl
(
"OnSave"
);
SAL_WARN_IF
(
!
m_pDocHolder
->
GetComponent
().
is
(),
"embeddedobj.common"
,
"If an object is activated or in running state it must have a document!"
);
if
(
!
m_pDocHolder
->
GetComponent
().
is
()
)
...
...
@@ -1647,7 +1647,7 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn()
if
(
xModif
.
is
()
)
xModif
->
setModified
(
sal_False
);
PostEvent_Impl
(
OUString
(
"OnSaveDone"
)
);
PostEvent_Impl
(
"OnSaveDone"
);
}
...
...
embeddedobj/source/general/docholder.cxx
Dosyayı görüntüle @
47709411
...
...
@@ -1170,7 +1170,7 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
// if the component does not support document::XEventBroadcaster
// the modify notifications are used as workaround, but only for running state
if
(
aEvent
.
Source
==
m_xComponent
&&
m_pEmbedObj
&&
m_pEmbedObj
->
getCurrentState
()
==
embed
::
EmbedStates
::
RUNNING
)
m_pEmbedObj
->
PostEvent_Impl
(
OUString
(
"OnVisAreaChanged"
)
);
m_pEmbedObj
->
PostEvent_Impl
(
"OnVisAreaChanged"
);
}
...
...
embeddedobj/source/general/dummyobject.cxx
Dosyayı görüntüle @
47709411
...
...
@@ -408,7 +408,7 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X
"The object waits for saveCompleted() call!"
,
static_cast
<
::
cppu
::
OWeakObject
*
>
(
this
)
);
PostEvent_Impl
(
OUString
(
"OnSaveAs"
)
);
PostEvent_Impl
(
"OnSaveAs"
);
m_xParentStorage
->
copyElementTo
(
m_aEntryName
,
xStorage
,
sEntName
);
...
...
@@ -443,7 +443,7 @@ void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew )
m_xParentStorage
=
m_xNewParentStorage
;
m_aEntryName
=
m_aNewEntryName
;
PostEvent_Impl
(
OUString
(
"OnSaveAsDone"
)
);
PostEvent_Impl
(
"OnSaveAsDone"
);
}
m_xNewParentStorage
.
clear
();
...
...
embeddedobj/source/msole/olepersist.cxx
Dosyayı görüntüle @
47709411
...
...
@@ -1637,13 +1637,13 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
aGuard
.
clear
();
if
(
bUseNew
)
{
MakeEventListenerNotification_Impl
(
OUString
(
"OnSaveAsDone"
)
);
MakeEventListenerNotification_Impl
(
"OnSaveAsDone"
);
// the object can be changed only on windows
// the notification should be done only if the object is not in loaded state
if
(
m_pOleComponent
&&
m_nUpdateMode
==
embed
::
EmbedUpdateModes
::
ALWAYS_UPDATE
&&
!
bStoreLoaded
)
{
MakeEventListenerNotification_Impl
(
OUString
(
"OnVisAreaChanged"
)
);
MakeEventListenerNotification_Impl
(
"OnVisAreaChanged"
);
}
}
}
...
...
@@ -1821,12 +1821,12 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
aGuard
.
clear
();
MakeEventListenerNotification_Impl
(
OUString
(
"OnSaveDone"
)
);
MakeEventListenerNotification_Impl
(
"OnSaveDone"
);
// the object can be changed only on Windows
// the notification should be done only if the object is not in loaded state
if
(
m_pOleComponent
&&
m_nUpdateMode
==
embed
::
EmbedUpdateModes
::
ALWAYS_UPDATE
&&
!
bStoreLoaded
)
MakeEventListenerNotification_Impl
(
OUString
(
"OnVisAreaChanged"
)
);
MakeEventListenerNotification_Impl
(
"OnVisAreaChanged"
);
}
...
...
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