Kaydet (Commit) 286bfde8 authored tarafından Adam Co's avatar Adam Co Kaydeden (comit) Miklos Vajna

fdo#64826 : fix for track-changes export in DOCX

Change-Id: I44b505f977edcf9e0af2108487870352277ee9f0
Reviewed-on: https://gerrit.libreoffice.org/4011Reviewed-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
Tested-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
üst 47a20856
......@@ -69,6 +69,7 @@ public:
void testMathLiteral();
void testFdo48557();
void testI120928();
void testFdo64826();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
......@@ -116,6 +117,7 @@ void Test::run()
{"math-literal.docx", &Test::testMathLiteral},
{"fdo48557.odt", &Test::testFdo48557},
{"i120928.docx", &Test::testI120928},
{"fdo64826.docx", &Test::testFdo64826},
};
// Don't test the first import of these, for some reason those tests fail
const char* aBlacklist[] = {
......@@ -672,6 +674,12 @@ void Test::testI120928()
CPPUNIT_ASSERT_EQUAL(true, bIsGraphic);
}
void Test::testFdo64826()
{
// 'Track-Changes' (Track Revisions) wasn't exported.
CPPUNIT_ASSERT_EQUAL(true, bool(getProperty<sal_Bool>(mxComponent, "RecordChanges")));
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();
......
......@@ -318,6 +318,9 @@ OString DocxExport::OutputChart( uno::Reference< frame::XModel >& xModel, sal_In
void DocxExport::ExportDocument_Impl()
{
// Set the 'Track Revisions' flag in the settings structure
settings.trackRevisions = 0 != ( nsRedlineMode_t::REDLINE_ON & mnRedlineMode );
InitStyles();
// init sections
......@@ -824,9 +827,6 @@ DocxExport::DocxExport( DocxExportFilter *pFilter, SwDoc *pDocument, SwPaM *pCur
m_nFooters( 0 ),
m_pVMLExport( NULL )
{
// Set the 'Track Revisions' flag in the settings structure
settings.trackRevisions = 0 != ( nsRedlineMode_t::REDLINE_ON & mnRedlineMode );
// Write the document properies
WriteProperties( );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment