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
7b3c07a7
Kaydet (Commit)
7b3c07a7
authored
Nis 17, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF filter: export \hyphauto
Change-Id: Ide8cb5f45d3eb60c45d86d58a9ab12bbc9f4cf47
üst
830abf30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
hyphauto.rtf
sw/qa/extras/rtfexport/data/hyphauto.rtf
+6
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+5
-0
rtfexport.cxx
sw/source/filter/ww8/rtfexport.cxx
+13
-0
No files found.
sw/qa/extras/rtfexport/data/hyphauto.rtf
0 → 100644
Dosyayı görüntüle @
7b3c07a7
{\rtf1
\hyphauto1
\pard\plain
Hello.
\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
7b3c07a7
...
...
@@ -867,6 +867,11 @@ DECLARE_RTFEXPORT_TEST(testSautoupd, "sautoupd.rtf")
CPPUNIT_ASSERT_EQUAL
(
false
,
getProperty
<
bool
>
(
xHeading2
,
"IsAutoUpdate"
));
}
DECLARE_RTFEXPORT_TEST
(
testHyphauto
,
"hyphauto.rtf"
)
{
CPPUNIT_ASSERT_EQUAL
(
true
,
getProperty
<
bool
>
(
getParagraph
(
1
),
"ParaIsHyphenation"
));
}
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/ww8/rtfexport.cxx
Dosyayı görüntüle @
7b3c07a7
...
...
@@ -36,6 +36,7 @@
#include <lineinfo.hxx>
#include <swmodule.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include "ww8par.hxx"
#include <comphelper/string.hxx>
#include <svtools/rtfkeywd.hxx>
...
...
@@ -45,6 +46,7 @@
#include <iostream>
#endif
#include <svx/xflclit.hxx>
#include <editeng/hyphenzoneitem.hxx>
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -502,6 +504,17 @@ void RtfExport::ExportDocument_Impl()
WriteInfo
();
// Default TabSize
Strm
().
WriteCharPtr
(
m_pAttrOutput
->
m_aTabStop
.
makeStringAndClear
().
getStr
()).
WriteCharPtr
(
SAL_NEWLINE_STRING
);
// Automatic hyphenation: it's a global setting in Word, it's a paragraph setting in Writer.
// Use the setting from the default style.
SwTxtFmtColl
*
pTxtFmtColl
=
pDoc
->
getIDocumentStylePoolAccess
().
GetTxtCollFromPool
(
RES_POOLCOLL_STANDARD
,
/*bRegardLanguage=*/
false
);
const
SfxPoolItem
*
pItem
;
if
(
pTxtFmtColl
&&
pTxtFmtColl
->
GetItemState
(
RES_PARATR_HYPHENZONE
,
false
,
&
pItem
)
==
SfxItemState
::
SET
)
{
Strm
().
WriteCharPtr
(
OOO_STRING_SVTOOLS_RTF_HYPHAUTO
);
OutULong
(
static_cast
<
const
SvxHyphenZoneItem
*>
(
pItem
)
->
IsHyphen
());
}
// Zoom
SwViewShell
*
pViewShell
(
pDoc
->
getIDocumentLayoutAccess
().
GetCurrentViewShell
());
if
(
pViewShell
&&
pViewShell
->
GetViewOptions
()
->
GetZoomType
()
==
SvxZoomType
::
PERCENT
)
...
...
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