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
bb77fd64
Kaydet (Commit)
bb77fd64
authored
Kas 22, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#82006 RTF filter: import \sbauto and \saauto
Change-Id: Iabff543c8191fc86dceb9274ea1552f60d73dabd
üst
357011b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
fdo82006.rtf
sw/qa/extras/rtfexport/data/fdo82006.rtf
+4
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+8
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+8
-0
No files found.
sw/qa/extras/rtfexport/data/fdo82006.rtf
0 → 100644
Dosyayı görüntüle @
bb77fd64
{\rtf1
\pard\plain
\ql \sb100\sa100\sbauto1\saauto1 hello\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
bb77fd64
...
@@ -843,6 +843,14 @@ DECLARE_RTFEXPORT_TEST(testNumOverrideStart, "num-override-start.rtf")
...
@@ -843,6 +843,14 @@ DECLARE_RTFEXPORT_TEST(testNumOverrideStart, "num-override-start.rtf")
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
1
),
comphelper
::
SequenceAsHashMap
(
xRules
->
getByIndex
(
0
))[
"StartWith"
].
get
<
sal_Int16
>
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
1
),
comphelper
::
SequenceAsHashMap
(
xRules
->
getByIndex
(
0
))[
"StartWith"
].
get
<
sal_Int16
>
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
3
),
comphelper
::
SequenceAsHashMap
(
xRules
->
getByIndex
(
1
))[
"StartWith"
].
get
<
sal_Int16
>
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
3
),
comphelper
::
SequenceAsHashMap
(
xRules
->
getByIndex
(
1
))[
"StartWith"
].
get
<
sal_Int16
>
());
}
}
DECLARE_RTFEXPORT_TEST
(
testFdo82006
,
"fdo82006.rtf"
)
{
// These were 176 (100 twips), as \sbauto and \sbbefore were ignored.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
convertTwipToMm100
(
280
)),
getProperty
<
sal_Int32
>
(
getParagraph
(
0
),
"ParaTopMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
convertTwipToMm100
(
280
)),
getProperty
<
sal_Int32
>
(
getParagraph
(
0
),
"ParaBottomMargin"
));
}
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 @
bb77fd64
...
@@ -4880,6 +4880,14 @@ int RTFDocumentImpl::dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam
...
@@ -4880,6 +4880,14 @@ int RTFDocumentImpl::dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam
NS_ooxml
::
LN_trackchange
,
NS_ooxml
::
LN_token
,
pValue
);
NS_ooxml
::
LN_trackchange
,
NS_ooxml
::
LN_token
,
pValue
);
}
}
break
;
break
;
case
RTF_SBAUTO
:
lcl_putNestedAttribute
(
m_aStates
.
top
().
aParagraphSprms
,
NS_ooxml
::
LN_CT_PPrBase_spacing
,
NS_ooxml
::
LN_CT_Spacing_beforeAutospacing
,
pBoolValue
,
OVERWRITE_YES
);
break
;
case
RTF_SAAUTO
:
lcl_putNestedAttribute
(
m_aStates
.
top
().
aParagraphSprms
,
NS_ooxml
::
LN_CT_PPrBase_spacing
,
NS_ooxml
::
LN_CT_Spacing_afterAutospacing
,
pBoolValue
,
OVERWRITE_YES
);
break
;
default
:
default
:
{
{
SAL_INFO
(
"writerfilter"
,
"TODO handle toggle '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
SAL_INFO
(
"writerfilter"
,
"TODO handle toggle '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
...
...
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