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
3ea80a46
Kaydet (Commit)
3ea80a46
authored
Haz 20, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF import: handle column break at the very start of the document
Change-Id: Ib7d166bf1b1e5d5216d822b2b0396aa4dc535c6f
üst
36b1c27b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
column-break.rtf
sw/qa/extras/rtfimport/data/column-break.rtf
+1
-0
rtfimport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
+6
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+1
-0
No files found.
sw/qa/extras/rtfimport/data/column-break.rtf
0 → 100644
Dosyayı görüntüle @
3ea80a46
{\rtf1\cols2\column hello\par}
sw/qa/extras/rtfimport/rtfimport.cxx
Dosyayı görüntüle @
3ea80a46
...
@@ -1759,6 +1759,12 @@ DECLARE_RTFIMPORT_TEST(testFontOverride, "font-override.rtf")
...
@@ -1759,6 +1759,12 @@ DECLARE_RTFIMPORT_TEST(testFontOverride, "font-override.rtf")
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Arial"
),
getProperty
<
OUString
>
(
getRun
(
getParagraph
(
1
),
1
),
"CharFontName"
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Arial"
),
getProperty
<
OUString
>
(
getRun
(
getParagraph
(
1
),
1
),
"CharFontName"
));
}
}
DECLARE_RTFIMPORT_TEST
(
testColumnBreak
,
"column-break.rtf"
)
{
// Column break at the very start of the document was ignored.
CPPUNIT_ASSERT_EQUAL
(
style
::
BreakType_COLUMN_BEFORE
,
getProperty
<
style
::
BreakType
>
(
getParagraph
(
2
),
"BreakType"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
3ea80a46
...
@@ -2243,6 +2243,7 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword)
...
@@ -2243,6 +2243,7 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword)
if
(
pNum
.
get
()
&&
pNum
->
getInt
()
>
1
)
if
(
pNum
.
get
()
&&
pNum
->
getInt
()
>
1
)
bColumns
=
true
;
bColumns
=
true
;
}
}
checkFirstRun
();
if
(
bColumns
)
if
(
bColumns
)
{
{
sal_uInt8
sBreak
[]
=
{
0xe
};
sal_uInt8
sBreak
[]
=
{
0xe
};
...
...
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