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
d082cb20
Kaydet (Commit)
d082cb20
authored
Mar 05, 2012
tarafından
Muthu Subramanian
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n747499: Wav/Audio files import - stub.
üst
d5786543
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
fillproperties.hxx
oox/inc/oox/drawingml/fillproperties.hxx
+3
-1
fillproperties.cxx
oox/source/drawingml/fillproperties.cxx
+4
-0
graphicshapecontext.cxx
oox/source/drawingml/graphicshapecontext.cxx
+3
-0
No files found.
oox/inc/oox/drawingml/fillproperties.hxx
Dosyayı görüntüle @
d082cb20
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <com/sun/star/geometry/IntegerRectangle2D.hpp>
#include <com/sun/star/geometry/IntegerRectangle2D.hpp>
#include "oox/drawingml/color.hxx"
#include "oox/drawingml/color.hxx"
#include "oox/helper/helper.hxx"
#include "oox/helper/helper.hxx"
#include "oox/drawingml/embeddedwavaudiofile.hxx"
namespace
oox
{
namespace
oox
{
class
GraphicHelper
;
class
GraphicHelper
;
...
@@ -135,7 +136,8 @@ struct FillProperties
...
@@ -135,7 +136,8 @@ struct FillProperties
struct
GraphicProperties
struct
GraphicProperties
{
{
BlipFillProperties
maBlipProps
;
/// Properties for the graphic.
BlipFillProperties
maBlipProps
;
/// Properties for the graphic.
EmbeddedWAVAudioFile
maAudio
;
/// Audio file details
/** Overwrites all members that are explicitly set in rSourceProps. */
/** Overwrites all members that are explicitly set in rSourceProps. */
void
assignUsed
(
const
GraphicProperties
&
rSourceProps
);
void
assignUsed
(
const
GraphicProperties
&
rSourceProps
);
...
...
oox/source/drawingml/fillproperties.cxx
Dosyayı görüntüle @
d082cb20
...
@@ -444,6 +444,10 @@ void GraphicProperties::pushToPropMap( PropertyMap& rPropMap, const GraphicHelpe
...
@@ -444,6 +444,10 @@ void GraphicProperties::pushToPropMap( PropertyMap& rPropMap, const GraphicHelpe
sal_Int16
nContrast
=
getLimitedValue
<
sal_Int16
,
sal_Int32
>
(
maBlipProps
.
moContrast
.
get
(
0
)
/
PER_PERCENT
,
-
100
,
100
);
sal_Int16
nContrast
=
getLimitedValue
<
sal_Int16
,
sal_Int32
>
(
maBlipProps
.
moContrast
.
get
(
0
)
/
PER_PERCENT
,
-
100
,
100
);
if
(
nContrast
!=
0
)
if
(
nContrast
!=
0
)
rPropMap
[
PROP_AdjustContrast
]
<<=
nContrast
;
rPropMap
[
PROP_AdjustContrast
]
<<=
nContrast
;
// TODO: Audio content, yet to be implemented
if
(
!
maAudio
.
msEmbed
.
isEmpty
()
)
rPropMap
[
PROP_Sound
]
<<=
maAudio
.
msEmbed
;
}
}
// ============================================================================
// ============================================================================
...
...
oox/source/drawingml/graphicshapecontext.cxx
Dosyayı görüntüle @
d082cb20
...
@@ -76,6 +76,9 @@ Reference< XFastContextHandler > GraphicShapeContext::createFastChildContext( sa
...
@@ -76,6 +76,9 @@ Reference< XFastContextHandler > GraphicShapeContext::createFastChildContext( sa
case
XML_blipFill
:
case
XML_blipFill
:
xRet
.
set
(
new
BlipFillContext
(
*
this
,
xAttribs
,
mpShapePtr
->
getGraphicProperties
().
maBlipProps
)
);
xRet
.
set
(
new
BlipFillContext
(
*
this
,
xAttribs
,
mpShapePtr
->
getGraphicProperties
().
maBlipProps
)
);
break
;
break
;
case
XML_wavAudioFile
:
getEmbeddedWAVAudioFile
(
getRelations
(),
xAttribs
,
mpShapePtr
->
getGraphicProperties
().
maAudio
);
break
;
}
}
if
((
getNamespace
(
aElementToken
)
==
NMSP_vml
)
&&
mpShapePtr
)
if
((
getNamespace
(
aElementToken
)
==
NMSP_vml
)
&&
mpShapePtr
)
...
...
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