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
45d416d3
Kaydet (Commit)
45d416d3
authored
Ock 30, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, convert svt::GraphicAccess to XComponentContext
Change-Id: I081158bc43bf39ad165c14d8ada31dd0142ca82c
üst
2e801b99
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
ImageControl.cxx
forms/source/component/ImageControl.cxx
+1
-1
imgprod.cxx
forms/source/component/imgprod.cxx
+1
-1
imageresourceaccess.hxx
svtools/inc/svtools/imageresourceaccess.hxx
+3
-3
imageresourceaccess.cxx
svtools/source/misc/imageresourceaccess.cxx
+4
-4
No files found.
forms/source/component/ImageControl.cxx
Dosyayı görüntüle @
45d416d3
...
...
@@ -420,7 +420,7 @@ sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const ::rtl::OUString&
if
(
::
svt
::
GraphicAccess
::
isSupportedURL
(
_rURL
)
)
{
xImageStream
=
::
svt
::
GraphicAccess
::
getImageXStream
(
getContext
().
get
LegacyServiceFactory
(),
_rURL
);
xImageStream
=
::
svt
::
GraphicAccess
::
getImageXStream
(
getContext
().
get
UNOContext
(),
_rURL
);
}
else
{
...
...
forms/source/component/imgprod.cxx
Dosyayı görüntüle @
45d416d3
...
...
@@ -236,7 +236,7 @@ void ImageProducer::SetImage( const ::rtl::OUString& rPath )
if
(
::
svt
::
GraphicAccess
::
isSupportedURL
(
maURL
)
)
{
mpStm
=
::
svt
::
GraphicAccess
::
getImageStream
(
::
comphelper
::
getProcess
ServiceFactory
(),
maURL
);
mpStm
=
::
svt
::
GraphicAccess
::
getImageStream
(
::
comphelper
::
getProcess
ComponentContext
(),
maURL
);
}
else
if
(
!
maURL
.
isEmpty
()
)
{
...
...
svtools/inc/svtools/imageresourceaccess.hxx
Dosyayı görüntüle @
45d416d3
...
...
@@ -23,7 +23,7 @@
#include "svtools/svtdllapi.h"
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/
lang/XMultiServiceFactory
.hpp>
#include <com/sun/star/
uno/XComponentContext
.hpp>
class
SvStream
;
//........................................................................
...
...
@@ -58,7 +58,7 @@ namespace svt
when you know that the image is small enough.
*/
SVT_DLLPUBLIC
static
SvStream
*
getImageStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
_rxORB
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
_rxContext
,
const
::
rtl
::
OUString
&
_rImageResourceURL
);
...
...
@@ -67,7 +67,7 @@ namespace svt
*/
SVT_DLLPUBLIC
static
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
getImageXStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
_rxORB
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
_rxContext
,
const
::
rtl
::
OUString
&
_rImageResourceURL
);
};
...
...
svtools/source/misc/imageresourceaccess.cxx
Dosyayı görüntüle @
45d416d3
...
...
@@ -137,14 +137,14 @@ namespace svt
}
//--------------------------------------------------------------------
SvStream
*
GraphicAccess
::
getImageStream
(
const
Reference
<
X
MultiServiceFactory
>&
_rxORB
,
const
::
rtl
::
OUString
&
_rImageResourceURL
)
SvStream
*
GraphicAccess
::
getImageStream
(
const
Reference
<
X
ComponentContext
>&
_rxContext
,
const
::
rtl
::
OUString
&
_rImageResourceURL
)
{
SvStream
*
pReturn
=
NULL
;
try
{
// get a GraphicProvider
Reference
<
XGraphicProvider
>
xProvider
=
::
com
::
sun
::
star
::
graphic
::
GraphicProvider
::
create
(
comphelper
::
getComponentContext
(
_rxORB
)
);
Reference
<
XGraphicProvider
>
xProvider
=
::
com
::
sun
::
star
::
graphic
::
GraphicProvider
::
create
(
_rxContext
);
// let it create a graphic from the given URL
Sequence
<
PropertyValue
>
aMediaProperties
(
1
);
...
...
@@ -181,9 +181,9 @@ namespace svt
}
//--------------------------------------------------------------------
Reference
<
XInputStream
>
GraphicAccess
::
getImageXStream
(
const
Reference
<
X
MultiServiceFactory
>&
_rxORB
,
const
::
rtl
::
OUString
&
_rImageResourceURL
)
Reference
<
XInputStream
>
GraphicAccess
::
getImageXStream
(
const
Reference
<
X
ComponentContext
>&
_rxContext
,
const
::
rtl
::
OUString
&
_rImageResourceURL
)
{
return
new
OSeekableInputStreamWrapper
(
getImageStream
(
_rx
ORB
,
_rImageResourceURL
),
sal_True
);
// take ownership
return
new
OSeekableInputStreamWrapper
(
getImageStream
(
_rx
Context
,
_rImageResourceURL
),
sal_True
);
// take ownership
}
//........................................................................
...
...
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