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
dcb37dce
Kaydet (Commit)
dcb37dce
authored
Kas 01, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#82512 RTF import: fix position of column break
Change-Id: Ib0f39c4af7cc32d0f4491f13ea207d90a449a47d
üst
501f25e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
fdo82512.rtf
sw/qa/extras/rtfimport/data/fdo82512.rtf
+10
-0
rtfimport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
+6
-0
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+8
-0
No files found.
sw/qa/extras/rtfimport/data/fdo82512.rtf
0 → 100644
Dosyayı görüntüle @
dcb37dce
{\rtf1\ansi\deff0
\cols2\colsx709
\pard\plain
{First col\par}{
\column
\par
\par
Second col\par
}
}
sw/qa/extras/rtfimport/rtfimport.cxx
Dosyayı görüntüle @
dcb37dce
...
...
@@ -2007,6 +2007,12 @@ DECLARE_RTFIMPORT_TEST(testFdo82076, "fdo82076.rtf")
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Footnote"
),
getProperty
<
OUString
>
(
getRun
(
getParagraphOfText
(
1
,
xCell
->
getText
()),
2
),
"TextPortionType"
));
}
DECLARE_RTFIMPORT_TEST
(
testFdo82512
,
"fdo82512.rtf"
)
{
// This was style::BreakType_NONE, column break was before the 3rd paragraph, not before the 2nd one.
CPPUNIT_ASSERT_EQUAL
(
style
::
BreakType_COLUMN_BEFORE
,
getProperty
<
style
::
BreakType
>
(
getParagraph
(
2
),
"BreakType"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
dcb37dce
...
...
@@ -2798,8 +2798,16 @@ void DomainMapper::lcl_text(const sal_uInt8 * data_, size_t len)
m_pImpl
->
getTableManager
().
text
(
data_
,
len
);
return
;
case
0x0d
:
{
PropertyMapPtr
pContext
=
m_pImpl
->
GetTopContextOfType
(
CONTEXT_PARAGRAPH
);
if
(
pContext
&&
m_pImpl
->
isBreakDeferred
(
COLUMN_BREAK
))
{
pContext
->
Insert
(
PROP_BREAK_TYPE
,
uno
::
makeAny
(
style
::
BreakType_COLUMN_BEFORE
));
m_pImpl
->
clearDeferredBreak
(
COLUMN_BREAK
);
}
m_pImpl
->
finishParagraph
(
m_pImpl
->
GetTopContextOfType
(
CONTEXT_PARAGRAPH
));
return
;
}
case
0x13
:
m_pImpl
->
PushFieldContext
();
return
;
...
...
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