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
8c6d3cd4
Kaydet (Commit)
8c6d3cd4
authored
Eki 26, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid boost::optional<bool>
Change-Id: Idaacaf80098e59df47183741402c8664ba5ea631
üst
cc926007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
rtfsdrimport.cxx
writerfilter/source/rtftok/rtfsdrimport.cxx
+7
-5
No files found.
writerfilter/source/rtftok/rtfsdrimport.cxx
Dosyayı görüntüle @
8c6d3cd4
...
...
@@ -42,6 +42,8 @@
#include <oox/drawingml/shapepropertymap.hxx>
#include <oox/helper/propertyset.hxx>
#include <boost/logic/tribool.hpp>
using
namespace
com
::
sun
::
star
;
namespace
writerfilter
...
...
@@ -147,7 +149,7 @@ void RTFSdrImport::applyProperty(uno::Reference<drawing::XShape> const& xShape,
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xShape
,
uno
::
UNO_QUERY
);
sal_Int16
nHoriOrient
=
0
;
sal_Int16
nVertOrient
=
0
;
boost
::
optional
<
bool
>
obFitShapeToText
;
boost
::
logic
::
tribool
obFitShapeToText
(
boost
::
logic
::
indeterminate
)
;
bool
bFilled
=
true
;
if
(
aKey
==
"posh"
)
...
...
@@ -191,7 +193,7 @@ void RTFSdrImport::applyProperty(uno::Reference<drawing::XShape> const& xShape,
}
}
else
if
(
aKey
==
"fFitShapeToText"
)
obFitShapeToText
.
reset
(
aValue
.
toInt32
()
==
1
)
;
obFitShapeToText
=
aValue
.
toInt32
()
==
1
;
else
if
(
aKey
==
"fFilled"
)
bFilled
=
aValue
.
toInt32
()
==
1
;
else
if
(
aKey
==
"rotation"
)
...
...
@@ -208,10 +210,10 @@ void RTFSdrImport::applyProperty(uno::Reference<drawing::XShape> const& xShape,
xPropertySet
->
setPropertyValue
(
"HoriOrient"
,
uno
::
makeAny
(
nHoriOrient
));
if
(
nVertOrient
!=
0
&&
xPropertySet
.
is
())
xPropertySet
->
setPropertyValue
(
"VertOrient"
,
uno
::
makeAny
(
nVertOrient
));
if
(
obFitShapeToText
&&
xPropertySet
.
is
())
if
(
!
boost
::
logic
::
indeterminate
(
obFitShapeToText
)
&&
xPropertySet
.
is
())
{
xPropertySet
->
setPropertyValue
(
"SizeType"
,
uno
::
makeAny
(
*
obFitShapeToText
?
text
::
SizeType
::
MIN
:
text
::
SizeType
::
FIX
));
xPropertySet
->
setPropertyValue
(
"FrameIsAutomaticHeight"
,
uno
::
makeAny
(
*
obFitShapeToText
));
xPropertySet
->
setPropertyValue
(
"SizeType"
,
uno
::
makeAny
(
obFitShapeToText
?
text
::
SizeType
::
MIN
:
text
::
SizeType
::
FIX
));
xPropertySet
->
setPropertyValue
(
"FrameIsAutomaticHeight"
,
uno
::
makeAny
(
static_cast
<
bool
>
(
obFitShapeToText
)
));
}
if
(
!
bFilled
&&
xPropertySet
.
is
())
{
...
...
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