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
a936658e
Kaydet (Commit)
a936658e
authored
Mar 15, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF export: handle \sautoupd
Change-Id: Ifddb3fda827aef0a95649bf074dad7d9cc797edb
üst
fb83e8a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
sautoupd.rtf
sw/qa/extras/rtfexport/data/sautoupd.rtf
+7
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+9
-0
rtfattributeoutput.cxx
sw/source/filter/ww8/rtfattributeoutput.cxx
+4
-1
No files found.
sw/qa/extras/rtfexport/data/sautoupd.rtf
0 → 100644
Dosyayı görüntüle @
a936658e
{\rtf1
{\stylesheet
{\s1\sautoupd heading 1;}
{\s2 heading 2;}
}
\pard\plain hello\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
a936658e
...
...
@@ -867,6 +867,15 @@ DECLARE_RTFEXPORT_TEST(testMargmirror, "margmirror.rtf")
CPPUNIT_ASSERT_EQUAL
(
style
::
PageStyleLayout_MIRRORED
,
getProperty
<
style
::
PageStyleLayout
>
(
xPageStyle
,
"PageStyleLayout"
));
}
DECLARE_RTFEXPORT_TEST
(
testSautoupd
,
"sautoupd.rtf"
)
{
// \sautoupd was ignored during import and export.
uno
::
Reference
<
beans
::
XPropertySet
>
xHeading1
(
getStyles
(
"ParagraphStyles"
)
->
getByName
(
"Heading 1"
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
true
,
getProperty
<
bool
>
(
xHeading1
,
"IsAutoUpdate"
));
uno
::
Reference
<
beans
::
XPropertySet
>
xHeading2
(
getStyles
(
"ParagraphStyles"
)
->
getByName
(
"Heading 2"
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
false
,
getProperty
<
bool
>
(
xHeading2
,
"IsAutoUpdate"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/ww8/rtfattributeoutput.cxx
Dosyayı görüntüle @
a936658e
...
...
@@ -1016,7 +1016,7 @@ void RtfAttributeOutput::DefaultStyle(sal_uInt16 /*nStyle*/)
void
RtfAttributeOutput
::
StartStyle
(
const
OUString
&
rName
,
StyleType
eType
,
sal_uInt16
nBase
,
sal_uInt16
nNext
,
sal_uInt16
/*nWwId*/
,
sal_uInt16
nId
,
bool
/* bAutoUpdate */
)
bool
bAutoUpdate
)
{
SAL_INFO
(
"sw.rtf"
,
OSL_THIS_FUNC
<<
", rName = '"
<<
rName
<<
"'"
);
...
...
@@ -1036,6 +1036,9 @@ void RtfAttributeOutput::StartStyle(const OUString& rName, StyleType eType,
m_aStylesheet
.
append
(
OOO_STRING_SVTOOLS_RTF_SNEXT
);
m_aStylesheet
.
append
((
sal_Int32
)
nNext
);
if
(
bAutoUpdate
)
m_aStylesheet
.
append
(
OOO_STRING_SVTOOLS_RTF_SAUTOUPD
);
m_rStyleName
=
rName
;
m_nStyleId
=
nId
;
}
...
...
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