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
24dbe577
Kaydet (Commit)
24dbe577
authored
Eyl 12, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace struct EmbeddedWAVAudioFile with simple string.
Change-Id: I6659b6e1be865546f380a28e4803fbe593de0803
üst
b7006f3c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
52 deletions
+25
-52
embeddedwavaudiofile.hxx
oox/inc/drawingml/embeddedwavaudiofile.hxx
+3
-15
graphicproperties.hxx
oox/inc/drawingml/graphicproperties.hxx
+2
-3
embeddedwavaudiofile.cxx
oox/source/drawingml/embeddedwavaudiofile.cxx
+7
-14
fillproperties.cxx
oox/source/drawingml/fillproperties.cxx
+3
-2
graphicshapecontext.cxx
oox/source/drawingml/graphicshapecontext.cxx
+5
-5
hyperlinkcontext.cxx
oox/source/drawingml/hyperlinkcontext.cxx
+2
-3
shape.cxx
oox/source/drawingml/shape.cxx
+1
-1
soundactioncontext.cxx
oox/source/ppt/soundactioncontext.cxx
+1
-4
timetargetelementcontext.cxx
oox/source/ppt/timetargetelementcontext.cxx
+1
-5
No files found.
oox/inc/drawingml/embeddedwavaudiofile.hxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -21,27 +21,15 @@
#define INCLUDED_OOX_DRAWINGML_EMBEDDEDWAVAUDIOFILE_HXX
#include <rtl/ustring.hxx>
#include <com/sun/star/xml/sax/XFastAttributeList.hpp>
#include <oox/core/fragmenthandler.hxx>
#include <oox/helper/attributelist.hxx>
namespace
oox
{
namespace
drawingml
{
struct
EmbeddedWAVAudioFile
{
EmbeddedWAVAudioFile
()
:
mbBuiltIn
(
false
)
{
}
bool
mbBuiltIn
;
OUString
msName
;
OUString
msEmbed
;
};
void
getEmbeddedWAVAudioFile
(
OUString
getEmbeddedWAVAudioFile
(
const
::
oox
::
core
::
Relations
&
rRelations
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>&
xAttribs
,
EmbeddedWAVAudioFile
&
aAudio
);
const
AttributeList
&
rAttribs
);
}
}
...
...
oox/inc/drawingml/graphicproperties.hxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -24,7 +24,6 @@
#include <oox/drawingml/fillproperties.hxx>
#include <oox/helper/helper.hxx>
#include <drawingml/embeddedwavaudiofile.hxx>
namespace
oox
{
class
GraphicHelper
;
...
...
@@ -36,8 +35,8 @@ namespace drawingml {
struct
GraphicProperties
{
BlipFillProperties
maBlipProps
;
/// Properties for the graphic.
EmbeddedWAVAudioFile
maAudio
;
/// Audio file details
BlipFillProperties
maBlipProps
;
///
<
Properties for the graphic.
OUString
msMediaTempFile
;
///< Audio/Video temporary file.
/** Overwrites all members that are explicitly set in rSourceProps. */
void
assignUsed
(
const
GraphicProperties
&
rSourceProps
);
...
...
oox/source/drawingml/embeddedwavaudiofile.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -20,23 +20,16 @@
#include "drawingml/embeddedwavaudiofile.hxx"
#include "oox/helper/attributelist.hxx"
using
namespace
::
oox
::
core
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
xml
::
sax
;
namespace
oox
{
namespace
drawingml
{
// CT_EmbeddedWAVAudioFile
void
getEmbeddedWAVAudioFile
(
const
Relations
&
rRelations
,
const
Reference
<
XFastAttributeList
>&
xAttribs
,
EmbeddedWAVAudioFile
&
aAudio
)
{
AttributeList
attribs
(
xAttribs
);
OUString
sId
=
xAttribs
->
getOptionalValue
(
R_TOKEN
(
embed
)
);
aAudio
.
msEmbed
=
rRelations
.
getFragmentPathFromRelId
(
sId
);
aAudio
.
mbBuiltIn
=
attribs
.
getBool
(
XML_builtIn
,
false
);
aAudio
.
msName
=
xAttribs
->
getOptionalValue
(
XML_name
);
}
OUString
getEmbeddedWAVAudioFile
(
const
core
::
Relations
&
rRelations
,
const
AttributeList
&
rAttribs
)
{
if
(
rAttribs
.
getBool
(
XML_builtIn
,
false
))
return
rAttribs
.
getString
(
XML_name
).
get
();
else
return
rRelations
.
getFragmentPathFromRelId
(
rAttribs
.
getString
(
R_TOKEN
(
embed
)
).
get
()
);
}
}
}
...
...
oox/source/drawingml/fillproperties.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -34,6 +34,7 @@
#include <com/sun/star/drawing/Hatch.hpp>
#include <com/sun/star/drawing/RectanglePoint.hpp>
#include <com/sun/star/graphic/XGraphicTransformer.hpp>
#include <oox/core/fragmenthandler.hxx>
#include "oox/helper/graphichelper.hxx"
#include "oox/drawingml/drawingmltypes.hxx"
#include "oox/drawingml/shapepropertymap.hxx"
...
...
@@ -752,8 +753,8 @@ void GraphicProperties::pushToPropMap( PropertyMap& rPropMap, const GraphicHelpe
rPropMap
.
setProperty
(
PROP_AdjustContrast
,
nContrast
);
// Media content
if
(
!
m
aAudio
.
msEmbed
.
isEmpty
()
)
rPropMap
.
setProperty
(
PROP_MediaURL
,
m
aAudio
.
msEmbed
);
if
(
!
m
sMediaTempFile
.
isEmpty
()
)
rPropMap
.
setProperty
(
PROP_MediaURL
,
m
sMediaTempFile
);
}
bool
ArtisticEffectProperties
::
isEmpty
()
const
...
...
oox/source/drawingml/graphicshapecontext.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -19,8 +19,10 @@
#include <com/sun/star/io/TempFile.hpp>
#include "oox/drawingml/graphicshapecontext.hxx"
#include <osl/diagnose.h>
#include <drawingml/embeddedwavaudiofile.hxx>
#include "drawingml/fillpropertiesgroupcontext.hxx"
#include "drawingml/graphicproperties.hxx"
#include "drawingml/customshapeproperties.hxx"
...
...
@@ -38,7 +40,6 @@
#include "oox/helper/binaryinputstream.hxx"
#include "oox/helper/binaryoutputstream.hxx"
#include "oox/ppt/pptshapegroupcontext.hxx"
#include <comphelper/processfactory.hxx>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
io
;
...
...
@@ -85,9 +86,8 @@ ContextHandlerRef GraphicShapeContext::onCreateContext( sal_Int32 aElementToken,
return
new
BlipFillContext
(
*
this
,
rAttribs
,
mpShapePtr
->
getGraphicProperties
().
maBlipProps
);
case
XML_wavAudioFile
:
{
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
.
getFastAttributeList
(),
mpShapePtr
->
getGraphicProperties
().
maAudio
);
mpShapePtr
->
getGraphicProperties
().
maAudio
.
msEmbed
=
lcl_CopyToTempFile
(
mpShapePtr
->
getGraphicProperties
().
maAudio
.
msEmbed
,
getFilter
()
);
mpShapePtr
->
getGraphicProperties
().
msMediaTempFile
=
lcl_CopyToTempFile
(
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
),
getFilter
()
);
}
break
;
case
XML_audioFile
:
...
...
@@ -95,7 +95,7 @@ ContextHandlerRef GraphicShapeContext::onCreateContext( sal_Int32 aElementToken,
{
OUString
rPath
=
getRelations
().
getFragmentPathFromRelId
(
rAttribs
.
getString
(
R_TOKEN
(
link
)).
get
()
);
mpShapePtr
->
getGraphicProperties
().
m
aAudio
.
msEmbed
=
mpShapePtr
->
getGraphicProperties
().
m
sMediaTempFile
=
lcl_CopyToTempFile
(
rPath
,
getFilter
()
);
}
break
;
...
...
oox/source/drawingml/hyperlinkcontext.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -150,15 +150,14 @@ HyperLinkContext::~HyperLinkContext()
}
ContextHandlerRef
HyperLinkContext
::
onCreateContext
(
::
sal_Int32
aElement
,
const
AttributeList
&
rAttribs
)
::
sal_Int32
aElement
,
const
AttributeList
&
)
{
switch
(
aElement
)
{
case
A_TOKEN
(
extLst
):
return
0
;
case
A_TOKEN
(
snd
):
EmbeddedWAVAudioFile
aAudio
;
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
.
getFastAttributeList
(),
aAudio
);
// TODO use getEmbeddedWAVAudioFile() here
break
;
}
...
...
oox/source/drawingml/shape.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -405,7 +405,7 @@ Reference< XShape > Shape::createAndInsert(
OUString
aServiceName
;
if
(
rServiceName
==
"com.sun.star.drawing.GraphicObjectShape"
&&
mpGraphicPropertiesPtr
&&
!
mpGraphicPropertiesPtr
->
m
aAudio
.
msEmbed
.
isEmpty
()
)
mpGraphicPropertiesPtr
&&
!
mpGraphicPropertiesPtr
->
m
sMediaTempFile
.
isEmpty
()
)
{
aServiceName
=
finalizeServiceName
(
rFilterBase
,
"com.sun.star.presentation.MediaShape"
,
aShapeRectHmm
);
bIsEmbMedia
=
true
;
...
...
oox/source/ppt/soundactioncontext.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -74,10 +74,7 @@ namespace oox { namespace ppt {
case
PPT_TOKEN
(
snd
):
if
(
mbHasStartSound
)
{
drawingml
::
EmbeddedWAVAudioFile
aAudio
;
drawingml
::
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
.
getFastAttributeList
(),
aAudio
);
msSndName
=
(
aAudio
.
mbBuiltIn
?
aAudio
.
msName
:
aAudio
.
msEmbed
);
msSndName
=
drawingml
::
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
);
}
return
this
;
case
PPT_TOKEN
(
endSnd
):
...
...
oox/source/ppt/timetargetelementcontext.cxx
Dosyayı görüntüle @
24dbe577
...
...
@@ -123,11 +123,7 @@ namespace oox { namespace ppt {
case
PPT_TOKEN
(
sndTgt
):
{
mpTarget
->
mnType
=
XML_sndTgt
;
drawingml
::
EmbeddedWAVAudioFile
aAudio
;
drawingml
::
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
.
getFastAttributeList
(),
aAudio
);
OUString
sSndName
=
(
aAudio
.
mbBuiltIn
?
aAudio
.
msName
:
aAudio
.
msEmbed
);
mpTarget
->
msValue
=
sSndName
;
mpTarget
->
msValue
=
drawingml
::
getEmbeddedWAVAudioFile
(
getRelations
(),
rAttribs
);
break
;
}
case
PPT_TOKEN
(
spTgt
):
...
...
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