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
db610b4a
Kaydet (Commit)
db610b4a
authored
Tem 16, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput: avoid 'a' prefix for double
Change-Id: I1601f2d2926ca62aae8e7c48b1b2147ebed01002
üst
1a37ca65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+16
-16
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
db610b4a
...
@@ -4966,33 +4966,33 @@ void DocxAttributeOutput::FormatBox( const SvxBoxItem& rBox )
...
@@ -4966,33 +4966,33 @@ void DocxAttributeOutput::FormatBox( const SvxBoxItem& rBox )
}
}
// v:textbox's inset attribute: inner margin values for textbox text - write only non-default values
// v:textbox's inset attribute: inner margin values for textbox text - write only non-default values
double
a
DistanceLeftTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_LEFT
));
double
f
DistanceLeftTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_LEFT
));
double
a
DistanceTopTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_TOP
));
double
f
DistanceTopTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_TOP
));
double
a
DistanceRightTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_RIGHT
));
double
f
DistanceRightTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_RIGHT
));
double
a
DistanceBottomTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_BOTTOM
));
double
f
DistanceBottomTwips
=
double
(
rBox
.
GetDistance
(
BOX_LINE_BOTTOM
));
// Convert 'TWIPS' to 'INCH' (because in Word the default values are in Inches)
// Convert 'TWIPS' to 'INCH' (because in Word the default values are in Inches)
double
aDistanceLeftInch
=
a
DistanceLeftTwips
/
1440
;
double
fDistanceLeftInch
=
f
DistanceLeftTwips
/
1440
;
double
aDistanceTopInch
=
a
DistanceTopTwips
/
1440
;
double
fDistanceTopInch
=
f
DistanceTopTwips
/
1440
;
double
aDistanceRightInch
=
a
DistanceRightTwips
/
1440
;
double
fDistanceRightInch
=
f
DistanceRightTwips
/
1440
;
double
aDistanceBottomInch
=
a
DistanceBottomTwips
/
1440
;
double
fDistanceBottomInch
=
f
DistanceBottomTwips
/
1440
;
// This code will write ONLY the non-default values. The values are in 'left','top','right','bottom' order.
// This code will write ONLY the non-default values. The values are in 'left','top','right','bottom' order.
// so 'bottom' is checked if it is default and if it is non-default - all the values will be written
// so 'bottom' is checked if it is default and if it is non-default - all the values will be written
// otherwise - 'right' is checked if it is default and if it is non-default - all the values except for 'bottom' will be written
// otherwise - 'right' is checked if it is default and if it is non-default - all the values except for 'bottom' will be written
// and so on.
// and so on.
OStringBuffer
aInset
;
OStringBuffer
aInset
;
if
(
!
aInset
.
isEmpty
()
||
a
DistanceBottomInch
!=
double
(
0.05
))
if
(
!
aInset
.
isEmpty
()
||
f
DistanceBottomInch
!=
double
(
0.05
))
aInset
.
insert
(
0
,
","
+
OString
::
number
(
a
DistanceBottomInch
)
+
"in"
);
aInset
.
insert
(
0
,
","
+
OString
::
number
(
f
DistanceBottomInch
)
+
"in"
);
if
(
!
aInset
.
isEmpty
()
||
a
DistanceRightInch
!=
double
(
0.1
))
if
(
!
aInset
.
isEmpty
()
||
f
DistanceRightInch
!=
double
(
0.1
))
aInset
.
insert
(
0
,
","
+
OString
::
number
(
a
DistanceRightInch
)
+
"in"
);
aInset
.
insert
(
0
,
","
+
OString
::
number
(
f
DistanceRightInch
)
+
"in"
);
if
(
!
aInset
.
isEmpty
()
||
a
DistanceTopInch
!=
double
(
0.05
))
if
(
!
aInset
.
isEmpty
()
||
f
DistanceTopInch
!=
double
(
0.05
))
aInset
.
insert
(
0
,
","
+
OString
::
number
(
a
DistanceTopInch
)
+
"in"
);
aInset
.
insert
(
0
,
","
+
OString
::
number
(
f
DistanceTopInch
)
+
"in"
);
if
(
!
aInset
.
isEmpty
()
||
a
DistanceLeftInch
!=
double
(
0.1
))
if
(
!
aInset
.
isEmpty
()
||
f
DistanceLeftInch
!=
double
(
0.1
))
aInset
.
insert
(
0
,
OString
::
number
(
a
DistanceLeftInch
)
+
"in"
);
aInset
.
insert
(
0
,
OString
::
number
(
f
DistanceLeftInch
)
+
"in"
);
if
(
!
aInset
.
isEmpty
())
if
(
!
aInset
.
isEmpty
())
m_pTextboxAttrList
->
add
(
XML_inset
,
aInset
.
makeStringAndClear
());
m_pTextboxAttrList
->
add
(
XML_inset
,
aInset
.
makeStringAndClear
());
...
...
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