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
116016d5
Kaydet (Commit)
116016d5
authored
May 07, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#38786 implement RTF_CHPGN
Change-Id: I0ae693193b4fc8ed155e2d71b06daa80d46da47c
üst
c450ea69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
fdo38786.rtf
sw/qa/extras/rtftok/data/fdo38786.rtf
+2
-0
rtftok.cxx
sw/qa/extras/rtftok/rtftok.cxx
+13
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+9
-0
No files found.
sw/qa/extras/rtftok/data/fdo38786.rtf
0 → 100644
Dosyayı görüntüle @
116016d5
{\rtf1\chpgn
\par}
sw/qa/extras/rtftok/rtftok.cxx
Dosyayı görüntüle @
116016d5
...
...
@@ -92,6 +92,7 @@ public:
void
testFdo44211
();
void
testFdo48037
();
void
testFdo47764
();
void
testFdo38786
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -122,6 +123,7 @@ public:
CPPUNIT_TEST
(
testFdo44211
);
CPPUNIT_TEST
(
testFdo48037
);
CPPUNIT_TEST
(
testFdo47764
);
CPPUNIT_TEST
(
testFdo38786
);
#endif
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -676,6 +678,17 @@ void Test::testFdo47764()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
1
),
nValue
);
}
void
Test
::
testFdo38786
()
{
load
(
"fdo38786.rtf"
);
uno
::
Reference
<
text
::
XTextFieldsSupplier
>
xTextFieldsSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XEnumerationAccess
>
xFieldsAccess
(
xTextFieldsSupplier
->
getTextFields
());
uno
::
Reference
<
container
::
XEnumeration
>
xFields
(
xFieldsAccess
->
createEnumeration
());
// \chpgn was ignored, so exception was thrown
xFields
->
nextElement
();
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
116016d5
...
...
@@ -1552,6 +1552,15 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword)
parBreak
();
}
break
;
case
RTF_CHPGN
:
{
OUString
aStr
(
"PAGE"
);
singleChar
(
0x13
);
text
(
aStr
);
singleChar
(
0x14
);
singleChar
(
0x15
);
}
break
;
default
:
SAL_INFO
(
"writerfilter"
,
OSL_THIS_FUNC
<<
": TODO handle symbol '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
aSkip
.
setParsed
(
false
);
...
...
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