do not require newest libwps for build
Change-Id: Iba0090da0591b6f9a6d74bb18ebaabef53448063
This commit is contained in:
@@ -20,4 +20,8 @@
|
|||||||
#undef MWAW_VERSION_MINOR
|
#undef MWAW_VERSION_MINOR
|
||||||
#undef MWAW_VERSION_MICRO
|
#undef MWAW_VERSION_MICRO
|
||||||
|
|
||||||
|
#undef WPS_VERSION_MAJOR
|
||||||
|
#undef WPS_VERSION_MINOR
|
||||||
|
#undef WPS_VERSION_MICRO
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -7827,7 +7827,8 @@ libo_CHECK_SYSTEM_MODULE([libabw],[ABW],[libabw-0.1])
|
|||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Check for system libwps
|
dnl Check for system libwps
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
libo_CHECK_SYSTEM_MODULE([libwps],[WPS],[libwps-0.4 >= 0.4.2])
|
libo_CHECK_SYSTEM_MODULE([libwps],[WPS],[libwps-0.4])
|
||||||
|
libo_PKG_VERSION([WPS], [libwps-0.4], [0.4.2])
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Check for system libwpg
|
dnl Check for system libwpg
|
||||||
|
@@ -35,6 +35,9 @@
|
|||||||
#define REQUIRE_MWAW_VERSION(major, minor, micro) \
|
#define REQUIRE_MWAW_VERSION(major, minor, micro) \
|
||||||
REQUIRE_VERSION(MWAW_VERSION_MAJOR, MWAW_VERSION_MINOR, MWAW_VERSION_MICRO, major, minor, micro)
|
REQUIRE_VERSION(MWAW_VERSION_MAJOR, MWAW_VERSION_MINOR, MWAW_VERSION_MICRO, major, minor, micro)
|
||||||
|
|
||||||
|
#define REQUIRE_WPS_VERSION(major, minor, micro) \
|
||||||
|
REQUIRE_VERSION(WPS_VERSION_MAJOR, WPS_VERSION_MINOR, WPS_VERSION_MICRO, major, minor, micro)
|
||||||
|
|
||||||
namespace com
|
namespace com
|
||||||
{
|
{
|
||||||
namespace sun
|
namespace sun
|
||||||
|
@@ -41,6 +41,10 @@ void WpftWriterFilterTest::test()
|
|||||||
{"RagTime_3.2.hqx", REQUIRE_MWAW_VERSION(0, 3, 2)},
|
{"RagTime_3.2.hqx", REQUIRE_MWAW_VERSION(0, 3, 2)},
|
||||||
{"RagTime_5.5.rag", REQUIRE_MWAW_VERSION(0, 3, 6)},
|
{"RagTime_5.5.rag", REQUIRE_MWAW_VERSION(0, 3, 6)},
|
||||||
};
|
};
|
||||||
|
const writerperfect::test::WpftOptionalMap_t aWpsOptional
|
||||||
|
{
|
||||||
|
{"Write_3.1.wri", REQUIRE_WPS_VERSION(0, 4, 2)},
|
||||||
|
};
|
||||||
|
|
||||||
doTest("com.sun.star.comp.Writer.AbiWordImportFilter", "/writerperfect/qa/unit/data/writer/libabw/");
|
doTest("com.sun.star.comp.Writer.AbiWordImportFilter", "/writerperfect/qa/unit/data/writer/libabw/");
|
||||||
doTest("org.libreoffice.comp.Writer.EBookImportFilter", "/writerperfect/qa/unit/data/writer/libe-book/");
|
doTest("org.libreoffice.comp.Writer.EBookImportFilter", "/writerperfect/qa/unit/data/writer/libe-book/");
|
||||||
|
@@ -55,7 +55,7 @@ bool MSWorksImportFilter::doImportDocument(librevenge::RVNGInputStream &rInput,
|
|||||||
else if (pDlg->hasUserCalledCancel())
|
else if (pDlg->hasUserCalledCancel())
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if ((kind == libwps::WPS_TEXT) && (creator == libwps::WPS_MSWRITE) && (confidence == libwps::WPS_CONFIDENCE_EXCELLENT) && needEncoding)
|
else if ((kind == libwps::WPS_TEXT) && (creator == libwps::WPS_RESERVED_0) && (confidence == libwps::WPS_CONFIDENCE_EXCELLENT) && needEncoding)
|
||||||
{
|
{
|
||||||
const ScopedVclPtrInstance<writerperfect::WPFTEncodingDialog> pDlg(
|
const ScopedVclPtrInstance<writerperfect::WPFTEncodingDialog> pDlg(
|
||||||
"Import MsWrite files(libwps)", "CP1252");
|
"Import MsWrite files(libwps)", "CP1252");
|
||||||
|
Reference in New Issue
Block a user