diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-09-05 23:20:33 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-09-05 23:56:22 +0200 |
commit | 4159310a06d57efed75f8fa619c813c0222c4c58 (patch) | |
tree | b00bf7c8f8c71bf7b10f0a15cf076c459a99e722 /sc/qa/unit | |
parent | 5cfa3d919a559f0b00c71cc4798410ab0b6332d8 (diff) |
sc: fix exports of scqahelper library
Change-Id: I36d853e9f98ee5ed15d086f6b0fcec5bf3f6f54b
Diffstat (limited to 'sc/qa/unit')
-rw-r--r-- | sc/qa/unit/helper/qahelper.hxx | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index 3597dd1271c4..7bcf5197c153 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -29,6 +29,14 @@ #include <string> #include <sstream> +#include "sal/types.h" + +#if defined(SCQAHELPER_DLLIMPLEMENTATION) +#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT +#else +#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT +#endif + #define ODS_FORMAT_TYPE 50331943 #define XLS_FORMAT_TYPE 318767171 #define XLSX_FORMAT_TYPE 268959811 @@ -49,7 +57,7 @@ enum StringType { PureString, FormulaValue, StringValue }; -SC_DLLPUBLIC bool testEqualsWithTolerance( long nVal1, long nVal2, long nTol ); +SCQAHELPER_DLLPUBLIC bool testEqualsWithTolerance( long nVal1, long nVal2, long nTol ); #define CHECK_OPTIMAL 0x1 @@ -95,25 +103,25 @@ std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList); // eventually perhaps iOS) special cases here, too)? Please move this to osl, // it sure looks gemerally useful. Or am I missing something? -SC_DLLPUBLIC void loadFile(const OUString& aFileName, std::string& aContent); +SCQAHELPER_DLLPUBLIC void loadFile(const OUString& aFileName, std::string& aContent); -SC_DLLPUBLIC void testFile(OUString& aFileName, ScDocument* pDoc, SCTAB nTab, StringType aStringFormat = StringValue); +SCQAHELPER_DLLPUBLIC void testFile(OUString& aFileName, ScDocument* pDoc, SCTAB nTab, StringType aStringFormat = StringValue); //need own handler because conditional formatting strings must be generated -SC_DLLPUBLIC void testCondFile(OUString& aFileName, ScDocument* pDoc, SCTAB nTab); +SCQAHELPER_DLLPUBLIC void testCondFile(OUString& aFileName, ScDocument* pDoc, SCTAB nTab); -SC_DLLPUBLIC const SdrOle2Obj* getSingleChartObject(ScDocument& rDoc, sal_uInt16 nPage); +SCQAHELPER_DLLPUBLIC const SdrOle2Obj* getSingleChartObject(ScDocument& rDoc, sal_uInt16 nPage); -SC_DLLPUBLIC std::vector<OUString> getChartRangeRepresentations(const SdrOle2Obj& rChartObj); +SCQAHELPER_DLLPUBLIC std::vector<OUString> getChartRangeRepresentations(const SdrOle2Obj& rChartObj); -SC_DLLPUBLIC ScRangeList getChartRanges(ScDocument& rDoc, const SdrOle2Obj& rChartObj); +SCQAHELPER_DLLPUBLIC ScRangeList getChartRanges(ScDocument& rDoc, const SdrOle2Obj& rChartObj); -SC_DLLPUBLIC bool checkFormula(ScDocument& rDoc, const ScAddress& rPos, const char* pExpected); +SCQAHELPER_DLLPUBLIC bool checkFormula(ScDocument& rDoc, const ScAddress& rPos, const char* pExpected); /** * Convert formula token array to a formula string. */ -SC_DLLPUBLIC OUString toString( +SCQAHELPER_DLLPUBLIC OUString toString( ScDocument& rDoc, const ScAddress& rPos, ScTokenArray& rArray, formula::FormulaGrammar::Grammar eGram = formula::FormulaGrammar::GRAM_NATIVE); @@ -150,7 +158,7 @@ struct assertion_traits<ScRange> class ScDocShellRef; class ScDocShell; -class SC_DLLPUBLIC ScBootstrapFixture : public test::BootstrapFixture +class SCQAHELPER_DLLPUBLIC ScBootstrapFixture : public test::BootstrapFixture { protected: OUString m_aBaseString; |