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
63fccb11
Kaydet (Commit)
63fccb11
authored
Mar 26, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove copypasta
Change-Id: Ieed83781b89ff18f870ad8c64ca00d306b097aea
üst
2bfc2c4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
35 deletions
+2
-35
unoframe.cxx
sw/source/core/unocore/unoframe.cxx
+2
-35
No files found.
sw/source/core/unocore/unoframe.cxx
Dosyayı görüntüle @
63fccb11
...
...
@@ -3592,41 +3592,8 @@ void SwXTextEmbeddedObject::removeEventListener(const uno::Reference< lang::XEve
uno
::
Reference
<
lang
::
XComponent
>
SwXTextEmbeddedObject
::
getEmbeddedObject
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
uno
::
Reference
<
lang
::
XComponent
>
xRet
;
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
if
(
pFmt
)
{
SwDoc
*
pDoc
=
pFmt
->
GetDoc
();
const
SwFmtCntnt
*
pCnt
=
&
pFmt
->
GetCntnt
();
OSL_ENSURE
(
pCnt
->
GetCntntIdx
()
&&
pDoc
->
GetNodes
()[
pCnt
->
GetCntntIdx
()
->
GetIndex
()
+
1
]
->
GetOLENode
(),
"kein OLE-Node?"
);
SwOLENode
*
pOleNode
=
pDoc
->
GetNodes
()[
pCnt
->
GetCntntIdx
()
->
GetIndex
()
+
1
]
->
GetOLENode
();
uno
::
Reference
<
embed
::
XEmbeddedObject
>
xIP
=
pOleNode
->
GetOLEObj
().
GetOleRef
();
if
(
svt
::
EmbeddedObjectRef
::
TryRunningState
(
xIP
)
)
{
// TODO/LATER: the listener registered after client creation should be able to handle scaling, after that the client is not necessary here
if
(
pDoc
->
GetDocShell
()
)
pDoc
->
GetDocShell
()
->
GetIPClient
(
svt
::
EmbeddedObjectRef
(
xIP
,
embed
::
Aspects
::
MSOLE_CONTENT
)
);
xRet
=
uno
::
Reference
<
lang
::
XComponent
>
(
xIP
->
getComponent
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
util
::
XModifyBroadcaster
>
xBrdcst
(
xRet
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
frame
::
XModel
>
xModel
(
xRet
,
uno
::
UNO_QUERY
);
if
(
xBrdcst
.
is
()
&&
xModel
.
is
()
)
{
SwXOLEListener
*
pListener
=
SwIterator
<
SwXOLEListener
,
SwFmt
>
(
*
pFmt
).
First
();
//create a new one if the OLE object doesn't have one already
if
(
!
pListener
)
{
uno
::
Reference
<
util
::
XModifyListener
>
xOLEListener
=
new
SwXOLEListener
(
*
pFmt
,
xModel
);
xBrdcst
->
addModifyListener
(
xOLEListener
);
}
}
}
}
return
xRet
;
uno
::
Reference
<
embed
::
XEmbeddedObject
>
xObj
(
getExtendedControlOverEmbeddedObject
());
return
xObj
.
is
()
?
uno
::
Reference
<
lang
::
XComponent
>
(
xObj
->
getComponent
(),
uno
::
UNO_QUERY
)
:
nullptr
;
}
uno
::
Reference
<
embed
::
XEmbeddedObject
>
SAL_CALL
SwXTextEmbeddedObject
::
getExtendedControlOverEmbeddedObject
()
...
...
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