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
4a507f73
Kaydet (Commit)
4a507f73
authored
Ara 24, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#57678 fix import of RTF_PARD between RTF_CELL and RTF_ROW
üst
9e0dbe9f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
fdo57678.rtf
sw/qa/extras/rtfimport/data/fdo57678.rtf
+34
-0
rtfimport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
+10
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+5
-1
No files found.
sw/qa/extras/rtfimport/data/fdo57678.rtf
0 → 100644
Dosyayı görüntüle @
4a507f73
{\rtf\ansi\deff0
{\fonttbl{\f0 Times New Roman;}}
{\colortbl;\red0\green0\blue0;}
{\info
}
\paperw11907 \paperh16443 \deftab1298 \margl1701 \margr1701 \margt567 \margb1134 \pgnstart1\ftnnar \aftnnrlc \ftnstart1 \aftnstart1
\trowd\trowd\cellx1701\cellx3402
\intbl\itap1
\qc{Cell 1:1}
\cell\pard
\intbl\itap1
\qc{Cell 1:2}
\cell\pard
\row
\pard\itap0
\par \trowd\trowd \cellx1701\cellx3402\cellx5103\cellx6804
\intbl\itap1
{cell 1:1}
\cell\pard
{{\~}}\cell\pard
{{\~}}\cell\pard
{{\~}}\cell\pard
\row
\pard\itap0
}
sw/qa/extras/rtfimport/rtfimport.cxx
Dosyayı görüntüle @
4a507f73
...
@@ -131,6 +131,7 @@ public:
...
@@ -131,6 +131,7 @@ public:
void
testFdo49934
();
void
testFdo49934
();
void
testFdo57886
();
void
testFdo57886
();
void
testFdo58076
();
void
testFdo58076
();
void
testFdo57678
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -212,6 +213,7 @@ void Test::run()
...
@@ -212,6 +213,7 @@ void Test::run()
{
"fdo49934.rtf"
,
&
Test
::
testFdo49934
},
{
"fdo49934.rtf"
,
&
Test
::
testFdo49934
},
{
"fdo57886.rtf"
,
&
Test
::
testFdo57886
},
{
"fdo57886.rtf"
,
&
Test
::
testFdo57886
},
{
"fdo58076.rtf"
,
&
Test
::
testFdo58076
},
{
"fdo58076.rtf"
,
&
Test
::
testFdo58076
},
{
"fdo57678.rtf"
,
&
Test
::
testFdo57678
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -980,6 +982,14 @@ void Test::testFdo58076()
...
@@ -980,6 +982,14 @@ void Test::testFdo58076()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
635
),
getProperty
<
sal_Int32
>
(
xStyle
,
"BottomMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
635
),
getProperty
<
sal_Int32
>
(
xStyle
,
"BottomMargin"
));
}
}
void
Test
::
testFdo57678
()
{
// Paragraphs of the two tables were not converted to tables.
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTextTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndexAccess
(
xTextTablesSupplier
->
getTextTables
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
2
),
xIndexAccess
->
getCount
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
4a507f73
...
@@ -2078,11 +2078,15 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
...
@@ -2078,11 +2078,15 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
case RTF_PARD:
case RTF_PARD:
if (m_bHadPicture)
if (m_bHadPicture)
dispatchSymbol(RTF_PAR);
dispatchSymbol(RTF_PAR);
// \pard is allowed between \cell and \row, but in that case it should not reset the fact that we're inside a table.
if (m_aStates.top().nCells == 0)
{
m_aStates.top().aParagraphSprms = m_aDefaultState.aParagraphSprms;
m_aStates.top().aParagraphSprms = m_aDefaultState.aParagraphSprms;
m_aStates.top().aParagraphAttributes = m_aDefaultState.aParagraphAttributes;
m_aStates.top().aParagraphAttributes = m_aDefaultState.aParagraphAttributes;
m_aStates
.
top
().
resetFrame
();
if (m_aStates.top().nDestinationState != DESTINATION_SHAPETEXT)
if (m_aStates.top().nDestinationState != DESTINATION_SHAPETEXT)
m_pCurrentBuffer = 0;
m_pCurrentBuffer = 0;
}
m_aStates.top().resetFrame();
break;
break;
case RTF_SECTD:
case RTF_SECTD:
m_aStates.top().aSectionSprms = m_aDefaultState.aSectionSprms;
m_aStates.top().aSectionSprms = m_aDefaultState.aSectionSprms;
...
...
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