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
92dae379
Kaydet (Commit)
92dae379
authored
Şub 15, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF filter: handle mirrored margins
Change-Id: I122f5f23e510ae42664d2b69504f4722aa05597e
üst
f858994c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
margmirror.rtf
sw/qa/extras/rtfexport/data/margmirror.rtf
+9
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+8
-0
rtfexport.cxx
sw/source/filter/ww8/rtfexport.cxx
+3
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+3
-0
No files found.
sw/qa/extras/rtfexport/data/margmirror.rtf
0 → 100644
Dosyayı görüntüle @
92dae379
{\rtf1
\paperw11906\paperh16838\margl1800\margr4200\margt1440\margb1440
\margmirror
foo
\par
\pagebb
bar
\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
92dae379
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/style/PageStyleLayout.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/ShadowFormat.hpp>
#include <com/sun/star/table/ShadowFormat.hpp>
#include <com/sun/star/text/FontEmphasis.hpp>
#include <com/sun/star/text/FontEmphasis.hpp>
...
@@ -859,6 +860,13 @@ DECLARE_RTFEXPORT_TEST(testTdf88583, "tdf88583.odt")
...
@@ -859,6 +860,13 @@ DECLARE_RTFEXPORT_TEST(testTdf88583, "tdf88583.odt")
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
sal_Int32
>
(
0x00cc00
),
getProperty
<
sal_Int32
>
(
getParagraph
(
1
),
"FillColor"
));
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
sal_Int32
>
(
0x00cc00
),
getProperty
<
sal_Int32
>
(
getParagraph
(
1
),
"FillColor"
));
}
}
DECLARE_RTFEXPORT_TEST
(
testMargmirror
,
"margmirror.rtf"
)
{
// \margmirror was not handled, this was PageStyleLayout_ALL.
uno
::
Reference
<
beans
::
XPropertySet
>
xPageStyle
(
getStyles
(
"PageStyles"
)
->
getByName
(
"Standard"
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
style
::
PageStyleLayout_MIRRORED
,
getProperty
<
style
::
PageStyleLayout
>
(
xPageStyle
,
"PageStyleLayout"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/ww8/rtfexport.cxx
Dosyayı görüntüle @
92dae379
...
@@ -512,6 +512,9 @@ void RtfExport::ExportDocument_Impl()
...
@@ -512,6 +512,9 @@ void RtfExport::ExportDocument_Impl()
// Record changes?
// Record changes?
if
(
nsRedlineMode_t
::
REDLINE_ON
&
mnRedlineMode
)
if
(
nsRedlineMode_t
::
REDLINE_ON
&
mnRedlineMode
)
Strm
().
WriteCharPtr
(
OOO_STRING_SVTOOLS_RTF_REVISIONS
);
Strm
().
WriteCharPtr
(
OOO_STRING_SVTOOLS_RTF_REVISIONS
);
// Mirror margins?
if
((
nsUseOnPage
::
PD_MIRROR
&
pDoc
->
GetPageDesc
(
0
).
ReadUseOn
())
==
nsUseOnPage
::
PD_MIRROR
)
Strm
().
WriteCharPtr
(
OOO_STRING_SVTOOLS_RTF_MARGMIRROR
);
// Init sections
// Init sections
m_pSections
=
new
MSWordSections
(
*
this
);
m_pSections
=
new
MSWordSections
(
*
this
);
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
92dae379
...
@@ -3491,6 +3491,9 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
...
@@ -3491,6 +3491,9 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
case RTF_NOCOLBAL:
case RTF_NOCOLBAL:
m_aSettingsTableSprms.set(NS_ooxml::LN_CT_Compat_noColumnBalance, std::make_shared<RTFValue>(1));
m_aSettingsTableSprms.set(NS_ooxml::LN_CT_Compat_noColumnBalance, std::make_shared<RTFValue>(1));
break;
break;
case RTF_MARGMIRROR:
m_aSettingsTableSprms.set(NS_ooxml::LN_CT_Settings_mirrorMargins, std::make_shared<RTFValue>(1));
break;
default:
default:
{
{
SAL_INFO("writerfilter", "TODO handle flag '" << lcl_RtfToString(nKeyword) << "'");
SAL_INFO("writerfilter", "TODO handle flag '" << 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