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
e7e6a5f9
Kaydet (Commit)
e7e6a5f9
authored
Ock 06, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox: handle a:noAutofit/spAutoFit in WpsContext
Change-Id: I568e8d95f263b30579a2eec49abe8ae45f7f2e96
üst
5f8d2ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
WpsContext.cxx
oox/source/shape/WpsContext.cxx
+13
-1
No files found.
oox/source/shape/WpsContext.cxx
Dosyayı görüntüle @
e7e6a5f9
...
@@ -86,13 +86,25 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
...
@@ -86,13 +86,25 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aProps
);
++
i
)
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aProps
);
++
i
)
if
(
oInsets
[
i
])
if
(
oInsets
[
i
])
xPropertySet
->
setPropertyValue
(
aProps
[
i
],
uno
::
makeAny
(
*
oInsets
[
i
]));
xPropertySet
->
setPropertyValue
(
aProps
[
i
],
uno
::
makeAny
(
*
oInsets
[
i
]));
return
this
;
}
}
break
;
break
;
case
XML_noAutofit
:
case
XML_spAutoFit
:
{
// We can't use oox::drawingml::TextBodyPropertiesContext here, as this
// is a child context of bodyPr, so the shape is already sent: we need
// to alter the XShape directly.
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
mxShape
,
uno
::
UNO_QUERY
);
if
(
xPropertySet
.
is
())
xPropertySet
->
setPropertyValue
(
"FrameIsAutomaticHeight"
,
uno
::
makeAny
(
getBaseToken
(
nElementToken
)
==
XML_spAutoFit
));
}
break
;
case
XML_txbx
:
case
XML_txbx
:
mpShape
->
setServiceName
(
"com.sun.star.text.TextFrame"
);
mpShape
->
setServiceName
(
"com.sun.star.text.TextFrame"
);
break
;
break
;
default
:
default
:
SAL_WARN
(
"oox"
,
"WpsContext::createFastChildContext: unhandled element:"
<<
getBaseToken
(
nElementToken
));
SAL_WARN
(
"oox"
,
"WpsContext::createFastChildContext: unhandled element:
"
<<
getBaseToken
(
nElementToken
));
break
;
break
;
}
}
return
0
;
return
0
;
...
...
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