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
c4fbb036
Kaydet (Commit)
c4fbb036
authored
Nis 11, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement wp:docPr title and fix descr
üst
835cea6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
GraphicImport.cxx
writerfilter/source/dmapper/GraphicImport.cxx
+8
-1
model.xml
writerfilter/source/ooxml/model.xml
+9
-0
No files found.
writerfilter/source/dmapper/GraphicImport.cxx
Dosyayı görüntüle @
c4fbb036
...
...
@@ -256,6 +256,7 @@ public:
::
rtl
::
OUString
sName
;
::
rtl
::
OUString
sAlternativeText
;
::
rtl
::
OUString
title
;
GraphicImport_Impl
(
GraphicImportType
eImportType
,
DomainMapper
&
rDMapper
)
:
nXSize
(
0
)
...
...
@@ -791,6 +792,10 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
//alternative text
m_pImpl
->
sAlternativeText
=
val
.
getString
();
break
;
case
NS_ooxml
:
:
LN_CT_NonVisualDrawingProps_title
:
//alternative text
m_pImpl
->
title
=
val
.
getString
();
break
;
case
NS_ooxml
:
:
LN_CT_GraphicalObjectFrameLocking_noChangeAspect
:
//90644;
//disallow aspect ratio change - ignored
break
;
...
...
@@ -1318,8 +1323,10 @@ uno::Reference< text::XTextContent > GraphicImport::createGraphicObject( const b
}
// setting properties for all types
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_
TITLE
),
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_
DESCRIPTION
),
uno
::
makeAny
(
m_pImpl
->
sAlternativeText
));
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_TITLE
),
uno
::
makeAny
(
m_pImpl
->
title
));
if
(
m_pImpl
->
bPositionProtected
)
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_POSITION_PROTECTED
),
uno
::
makeAny
(
true
));
...
...
writerfilter/source/ooxml/model.xml
Dosyayı görüntüle @
c4fbb036
...
...
@@ -5009,6 +5009,14 @@
<xs:documentation>Hidden</xs:documentation>
</attribute>
</optional>
<optional>
<attribute name="title">
<data type="string">
<xs:documentation>Title</xs:documentation>
</data>
<xs:documentation>Title</xs:documentation>
</attribute>
</optional>
</define>
<define name="CT_NonVisualDrawingShapeProps">
<group>
...
...
@@ -5118,6 +5126,7 @@
<attribute name="name" tokenid="ooxml:CT_NonVisualDrawingProps_name"/>
<attribute name="descr" tokenid="ooxml:CT_NonVisualDrawingProps_descr"/>
<attribute name="hidden" tokenid="ooxml:CT_NonVisualDrawingProps_hidden"/>
<attribute name="title" tokenid="ooxml:CT_NonVisualDrawingProps_title"/>
</resource>
<resource name="CT_NonVisualPictureProperties" resource="Properties" tag="shape">
<element name="picLocks" tokenid="ooxml:CT_NonVisualPictureProperties_picLocks"/>
...
...
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