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
5e994d52
Kaydet (Commit)
5e994d52
authored
Mar 24, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#47036 fix RTF import of multi-paragraph exact height textboxes
üst
0d9132c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
fdo47036.rtf
sw/qa/extras/rtftok/data/fdo47036.rtf
+12
-0
rtftok.cxx
sw/qa/extras/rtftok/rtftok.cxx
+5
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+7
-5
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+1
-0
No files found.
sw/qa/extras/rtftok/data/fdo47036.rtf
Dosyayı görüntüle @
5e994d52
...
@@ -58,4 +58,16 @@
...
@@ -58,4 +58,16 @@
\b\f1\fs33\cf1\insrsid15426039 Booking Advice}
\b\f1\fs33\cf1\insrsid15426039 Booking Advice}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f1\insrsid15426039
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f1\insrsid15426039
\par }
\par }
\pard \pvpg\phpg\posx1914\posy4761\absh-2400\absw7674\wrapdefault
\faauto\rin0\lin0\itap0
{\rtlch\fcs1 \af1\afs19 \ltrch\fcs0 \f1\fs19\cf1\insrsid15426039 foo \tab \tab \tab \tab \tab \tab }
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f1\insrsid15426039
\par }
{\rtlch\fcs1 \af1\afs19 \ltrch\fcs0 \f1\fs19\cf1\insrsid15426039 x\tab
\par
\par }
{\rtlch\fcs1 \af1\afs19 \ltrch\fcs0 \f1\fs19\cf6\insrsid16139741 y}
{\rtlch\fcs1 \af1 \ltrch\fcs0
\f1\cf6\insrsid15426039\charrsid15426039
\par }
}
}
sw/qa/extras/rtftok/rtftok.cxx
Dosyayı görüntüle @
5e994d52
...
@@ -418,6 +418,11 @@ void RtfModelTest::testFdo47036()
...
@@ -418,6 +418,11 @@ void RtfModelTest::testFdo47036()
}
}
// The image at the document start was ignored.
// The image at the document start was ignored.
CPPUNIT_ASSERT_EQUAL
(
1
,
nAtCharacter
);
CPPUNIT_ASSERT_EQUAL
(
1
,
nAtCharacter
);
// There should be 2 textboxes, not 4
uno
::
Reference
<
text
::
XTextFramesSupplier
>
xTextFramesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndexAccess
(
xTextFramesSupplier
->
getTextFrames
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
2
),
xIndexAccess
->
getCount
());
}
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
RtfModelTest
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
RtfModelTest
);
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
5e994d52
...
@@ -3460,6 +3460,7 @@ RTFFrame::RTFFrame(RTFParserState* pParserState)
...
@@ -3460,6 +3460,7 @@ RTFFrame::RTFFrame(RTFParserState* pParserState)
nHoriAnchor
(
0
),
nHoriAnchor
(
0
),
nVertAlign
(
0
),
nVertAlign
(
0
),
nVertAnchor
(
0
),
nVertAnchor
(
0
),
nHRule
(
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_auto
),
nAnchorType
(
0
)
nAnchorType
(
0
)
{
{
}
}
...
@@ -3547,7 +3548,12 @@ RTFSprms RTFFrame::getSprms()
...
@@ -3547,7 +3548,12 @@ RTFSprms RTFFrame::getSprms()
break
;
break
;
case
NS_sprm
:
:
LN_PWHeightAbs
:
case
NS_sprm
:
:
LN_PWHeightAbs
:
if
(
nH
!=
0
)
if
(
nH
!=
0
)
pValue
.
reset
(
new
RTFValue
(
nH
));
{
if
(
nHRule
==
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_exact
)
pValue
.
reset
(
new
RTFValue
(
-
nH
));
// The negative value just sets nHRule
else
pValue
.
reset
(
new
RTFValue
(
nH
));
}
break
;
break
;
case
NS_sprm
:
:
LN_PDxaWidth
:
case
NS_sprm
:
:
LN_PDxaWidth
:
if
(
nW
!=
0
)
if
(
nW
!=
0
)
...
@@ -3577,12 +3583,8 @@ RTFSprms RTFFrame::getSprms()
...
@@ -3577,12 +3583,8 @@ RTFSprms RTFFrame::getSprms()
break
;
break
;
case
NS_ooxml
:
:
LN_CT_FramePr_hRule
:
case
NS_ooxml
:
:
LN_CT_FramePr_hRule
:
{
{
sal_Int32
nHRule
=
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_auto
;
if
(
nH
<
0
)
if
(
nH
<
0
)
{
nHRule
=
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_exact
;
nHRule
=
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_exact
;
nH
=
-
nH
;
// The negative value just sets nHRule
}
else
if
(
nH
>
0
)
else
if
(
nH
>
0
)
nHRule
=
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_atLeast
;
nHRule
=
NS_ooxml
::
LN_Value_wordprocessingml_ST_HeightRule_atLeast
;
pValue
.
reset
(
new
RTFValue
(
nHRule
));
pValue
.
reset
(
new
RTFValue
(
nHRule
));
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
5e994d52
...
@@ -214,6 +214,7 @@ namespace writerfilter {
...
@@ -214,6 +214,7 @@ namespace writerfilter {
sal_Int32
nX
,
nY
,
nW
,
nH
;
sal_Int32
nX
,
nY
,
nW
,
nH
;
sal_Int32
nHoriPadding
,
nVertPadding
;
sal_Int32
nHoriPadding
,
nVertPadding
;
sal_Int32
nHoriAlign
,
nHoriAnchor
,
nVertAlign
,
nVertAnchor
;
sal_Int32
nHoriAlign
,
nHoriAnchor
,
nVertAlign
,
nVertAnchor
;
Id
nHRule
;
public
:
public
:
RTFFrame
(
RTFParserState
*
pParserState
);
RTFFrame
(
RTFParserState
*
pParserState
);
sal_Int16
nAnchorType
;
sal_Int16
nAnchorType
;
...
...
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