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
e78a3bfd
Kaydet (Commit)
e78a3bfd
authored
Nis 01, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I1ee944679d509929e47218f88b6fe4be4905a202
üst
c047451f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
visobj.cxx
embeddedobj/source/commonembedding/visobj.cxx
+1
-1
olecomponent.cxx
embeddedobj/source/msole/olecomponent.cxx
+7
-7
olevisual.cxx
embeddedobj/source/msole/olevisual.cxx
+3
-3
xdialogcreator.cxx
embeddedobj/source/msole/xdialogcreator.cxx
+1
-1
No files found.
embeddedobj/source/commonembedding/visobj.cxx
Dosyayı görüntüle @
e78a3bfd
...
...
@@ -207,7 +207,7 @@ embed::VisualRepresentation SAL_CALL OCommonEmbeddedObject::getPreferredVisualRe
datatransfer
::
DataFlavor
aDataFlavor
(
OUString
(
"application/x-openoffice-gdimetafile;windows_formatname=
\"
GDIMetaFile
\"
"
),
OUString
(
"GDIMetaFile"
),
::
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
NULL
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
if
(
xTransferable
->
isDataFlavorSupported
(
aDataFlavor
))
{
...
...
embeddedobj/source/msole/olecomponent.cxx
Dosyayı görüntüle @
e78a3bfd
...
...
@@ -192,27 +192,27 @@ struct OleComponentNative_Impl {
m_aSupportedGraphFormats
[
0
]
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-emf;windows_formatname=
\"
Image EMF
\"
"
),
OUString
(
"Windows Enhanced Metafile"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
m_aSupportedGraphFormats
[
1
]
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-wmf;windows_formatname=
\"
Image WMF
\"
"
),
OUString
(
"Windows Metafile"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
m_aSupportedGraphFormats
[
2
]
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-bitmap;windows_formatname=
\"
Bitmap
\"
"
),
OUString
(
"Bitmap"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
m_aSupportedGraphFormats
[
3
]
=
datatransfer
::
DataFlavor
(
OUString
(
"image/png"
),
OUString
(
"PNG"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
m_aSupportedGraphFormats
[
0
]
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-gdimetafile;windows_formatname=
\"
GDIMetaFile
\"
"
),
OUString
(
"GDIMetafile"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
}
void
AddSupportedFormat
(
const
FORMATETC
&
aFormatEtc
);
...
...
@@ -283,7 +283,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium
sal_Bool
bAnyIsReady
=
sal_False
;
// try to convert data from Medium format to specified Flavor format
if
(
aFlavor
.
DataType
==
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
)
if
(
aFlavor
.
DataType
==
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
)
{
// first the GDI-metafile must be generated
...
...
@@ -356,7 +356,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium
for
(
sal_Int32
nInd
=
0
;
nInd
<
m_aSupportedGraphFormats
.
getLength
();
nInd
++
)
if
(
aFlavor
.
MimeType
.
match
(
m_aSupportedGraphFormats
[
nInd
].
MimeType
)
&&
aFlavor
.
DataType
==
m_aSupportedGraphFormats
[
nInd
].
DataType
&&
aFlavor
.
DataType
==
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
)
&&
aFlavor
.
DataType
==
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
)
{
bAnyIsReady
=
ConvertBufferToFormat
(
(
void
*
)
pBuf
.
get
(),
nBufSize
,
aFormat
,
aResult
);
break
;
...
...
embeddedobj/source/msole/olevisual.cxx
Dosyayı görüntüle @
e78a3bfd
...
...
@@ -57,7 +57,7 @@ embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFo
aVisualRepr
.
Flavor
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-bitmap;windows_formatname=
\"
Bitmap
\"
"
),
OUString
(
"Bitmap"
),
::
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
NULL
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
}
else
{
...
...
@@ -65,7 +65,7 @@ embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFo
aVisualRepr
.
Flavor
=
datatransfer
::
DataFlavor
(
OUString
(
"application/x-openoffice-wmf;windows_formatname=
\"
Image WMF
\"
"
),
OUString
(
"Windows Metafile"
),
::
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
NULL
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
}
sal_Int32
nStreamLength
=
(
sal_Int32
)
xSeekable
->
getLength
();
...
...
@@ -358,7 +358,7 @@ embed::VisualRepresentation SAL_CALL OleEmbeddedObject::getPreferredVisualRepres
datatransfer
::
DataFlavor
aDataFlavor
(
OUString
(
"application/x-openoffice-wmf;windows_formatname=
\"
Image WMF
\"
"
),
OUString
(
"Windows Metafile"
),
::
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
NULL
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
aVisualRepr
.
Data
=
m_pOleComponent
->
getTransferData
(
aDataFlavor
);
aVisualRepr
.
Flavor
=
aDataFlavor
;
...
...
embeddedobj/source/msole/xdialogcreator.cxx
Dosyayı görüntüle @
e78a3bfd
...
...
@@ -253,7 +253,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
datatransfer
::
DataFlavor
aFlavor
(
OUString
(
"application/x-openoffice-wmf;windows_formatname=
\"
Image WMF
\"
"
),
OUString
(
"Image WMF"
),
getCppuType
(
(
const
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
cppu
::
UnoType
<
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
aObjectInfo
.
Options
.
realloc
(
2
);
aObjectInfo
.
Options
[
0
].
Name
=
"Icon"
;
...
...
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