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
3751ab69
Kaydet (Commit)
3751ab69
authored
Mar 23, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#751573: docx, no mso-fit-shape-to-text means the textbox size is fixed
üst
9e890ae0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
vmlshape.hxx
oox/inc/oox/vml/vmlshape.hxx
+1
-0
properties.txt
oox/source/token/properties.txt
+2
-0
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+8
-1
vmlshapecontext.cxx
oox/source/vml/vmlshapecontext.cxx
+1
-0
No files found.
oox/inc/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
3751ab69
...
...
@@ -80,6 +80,7 @@ struct ShapeTypeModel
::
rtl
::
OUString
maMarginLeft
;
/// X position of the shape bounding box to shape anchor (number with unit).
::
rtl
::
OUString
maMarginTop
;
/// Y position of the shape bounding box to shape anchor (number with unit).
::
rtl
::
OUString
maPositionVerticalRelative
;
/// The Y position is relative to this.
sal_Bool
mbAutoHeight
;
/// If true, the height value is a minimum value (mostly used for textboxes)
StrokeModel
maStrokeModel
;
/// Border line formatting.
FillModel
maFillModel
;
/// Shape fill formatting.
...
...
oox/source/token/properties.txt
Dosyayı görüntüle @
3751ab69
...
...
@@ -180,6 +180,7 @@ FooterIsDynamicHeight
FooterIsOn
FooterIsShared
FormulaConvention
FrameIsAutomaticHeight
Function
GapwidthSequence
Geometry3D
...
...
@@ -418,6 +419,7 @@ Size
Size100thMM
SizePixel
SizeProtect
SizeType
SkipDuplicates
SortInfo
Sound
...
...
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
3751ab69
...
...
@@ -113,7 +113,8 @@ Rectangle lclGetAbsRect( const Rectangle& rRelRect, const Rectangle& rShapeRect,
// ============================================================================
ShapeTypeModel
::
ShapeTypeModel
()
ShapeTypeModel
::
ShapeTypeModel
()
:
mbAutoHeight
(
sal_False
)
{
}
...
...
@@ -368,6 +369,12 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
Reference
<
XShape
>
xShape
=
mrDrawing
.
createAndInsertXShape
(
maService
,
rxShapes
,
rShapeRect
);
convertShapeProperties
(
xShape
);
if
(
maService
.
equalsAscii
(
"com.sun.star.text.TextFrame"
)
)
{
PropertySet
(
xShape
).
setAnyProperty
(
PROP_FrameIsAutomaticHeight
,
makeAny
(
maTypeModel
.
mbAutoHeight
)
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_SizeType
,
makeAny
(
maTypeModel
.
mbAutoHeight
?
SizeType
::
MIN
:
SizeType
::
FIX
)
);
}
// Import Legacy Fragments (if any)
if
(
xShape
.
is
()
&&
!
maShapeModel
.
maLegacyDiagramPath
.
isEmpty
()
)
{
...
...
oox/source/vml/vmlshapecontext.cxx
Dosyayı görüntüle @
3751ab69
...
...
@@ -347,6 +347,7 @@ void ShapeTypeContext::setStyle( const OUString& rStyle )
else
if
(
aName
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"margin-left"
)
)
)
mrTypeModel
.
maMarginLeft
=
aValue
;
else
if
(
aName
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"margin-top"
)
)
)
mrTypeModel
.
maMarginTop
=
aValue
;
else
if
(
aName
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"mso-position-vertical-relative"
)
)
)
mrTypeModel
.
maPositionVerticalRelative
=
aValue
;
else
if
(
aName
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"mso-fit-shape-to-text"
)
)
)
mrTypeModel
.
mbAutoHeight
=
sal_True
;
}
}
}
...
...
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