summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 10:54:48 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 10:59:47 -0400
commitdc2aa496c0252ef4a95289935eeac3340de1ca8b (patch)
tree0bd03a8a0b2cb3ec4bd3d8443c3e7bfec0101523 /sc
parente35482d7f099ac313b0d77ca687daccd5fced18d (diff)
Attempt to fix windows link error.
Change-Id: I27ef805c16dde46b9dff037356e8316e32c2d8c0
Diffstat (limited to 'sc')
-rw-r--r--sc/Library_scqahelper.mk3
-rw-r--r--sc/inc/formulacell.hxx2
-rw-r--r--sc/inc/global.hxx1
-rw-r--r--sc/qa/unit/helper/csv_handler.hxx2
-rw-r--r--sc/qa/unit/helper/qahelper.cxx4
-rw-r--r--sc/qa/unit/helper/qahelper.hxx7
-rw-r--r--sc/qa/unit/ucalc_sharedformula.cxx2
-rw-r--r--sc/source/core/data/formulacell.cxx5
-rw-r--r--sc/source/core/data/global.cxx5
9 files changed, 26 insertions, 5 deletions
diff --git a/sc/Library_scqahelper.mk b/sc/Library_scqahelper.mk
index d2370b0fdcd7..c978c9570439 100644
--- a/sc/Library_scqahelper.mk
+++ b/sc/Library_scqahelper.mk
@@ -33,12 +33,15 @@ $(eval $(call gb_Library_use_libraries,scqahelper,\
comphelper \
cppu \
cppuhelper \
+ for \
sal \
sfx \
sot \
svl \
svt \
+ test \
tl \
+ unotest \
utl \
sc \
ucbhelper \
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 07b726ae06f9..231789f2923e 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -272,7 +272,7 @@ public:
formula string because the formula is present as a token array, as it
is the case for binary Excel import.
*/
- void SetResultDouble( double n ) { aResult.SetDouble( n); }
+ void SetResultDouble( double n );
void SetResultToken( const formula::FormulaToken* pToken );
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index dd60c4b3600d..2b86a7c1e6db 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -576,6 +576,7 @@ public:
SC_DLLPUBLIC static sal_uLong GetStandardFormat( double, SvNumberFormatter&,
sal_uLong nFormat, short nType );
+ SC_DLLPUBLIC static sal_uInt16 GetStandardRowHeight();
SC_DLLPUBLIC static double nScreenPPTX;
SC_DLLPUBLIC static double nScreenPPTY;
diff --git a/sc/qa/unit/helper/csv_handler.hxx b/sc/qa/unit/helper/csv_handler.hxx
index 0f4b018d9168..1223ef6cf356 100644
--- a/sc/qa/unit/helper/csv_handler.hxx
+++ b/sc/qa/unit/helper/csv_handler.hxx
@@ -81,8 +81,6 @@ OString createErrorMessage(SCCOL nCol, SCROW nRow, SCTAB nTab, double aExpected,
}
-enum StringType { PureString, FormulaValue, StringValue };
-
class csv_handler
{
public:
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index d16d33d588e1..5692b8d11c8e 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -7,7 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#undef SC_DLLIMPLEMENTATION
#include "qahelper.hxx"
+#include "csv_handler.hxx"
#if defined WNT
#define __ORCUS_STATIC_LIB
@@ -242,7 +244,7 @@ void ScBootstrapFixture::miscRowHeightsTest( TestParam* aTestValues, unsigned in
SCTAB nTab = aTestValues[ index ].pData[ i ].nTab;
int nExpectedHeight = aTestValues[ index ].pData[ i ].nExpectedHeight;
if ( nExpectedHeight == -1 )
- nExpectedHeight = sc::TwipsToHMM( ScGlobal::nStdRowHeight );
+ nExpectedHeight = sc::TwipsToHMM( ScGlobal::GetStandardRowHeight() );
bool bCheckOpt = ( ( aTestValues[ index ].pData[ i ].nCheck & CHECK_OPTIMAL ) == CHECK_OPTIMAL );
for ( ; nRow <= nEndRow; ++nRow )
{
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index efbd3b9171f8..bec76e84b175 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -10,9 +10,12 @@
#ifndef SC_QA_HELPER_HXX
#define SC_QA_HELPER_HXX
+#define SC_DLLIMPLEMENTATION
+
#include "scdllapi.h"
#include "debughelper.hxx"
-#include "csv_handler.hxx"
+#include "address.hxx"
+#include "docsh.hxx"
#include <test/bootstrapfixture.hxx>
#include <comphelper/documentconstants.hxx>
@@ -44,6 +47,8 @@
#define LOTUS123 5
#define DIF 6
+enum StringType { PureString, FormulaValue, StringValue };
+
SC_DLLPUBLIC bool testEqualsWithTolerance( long nVal1, long nVal2, long nTol );
#define CHECK_OPTIMAL 0x1
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx
index 3025b5204f28..b6a52cde090a 100644
--- a/sc/qa/unit/ucalc_sharedformula.cxx
+++ b/sc/qa/unit/ucalc_sharedformula.cxx
@@ -9,6 +9,8 @@
#include "ucalc.hxx"
#include "editutil.hxx"
+#include "formulacell.hxx"
+#include "cellvalue.hxx"
void Test::testSharedFormulas()
{
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 288eaeb2d52c..0616accf0c63 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1593,6 +1593,11 @@ bool ScFormulaCell::IsDirtyOrInTableOpDirty() const
return bDirty || (bTableOpDirty && pDocument->IsInInterpreterTableOp());
}
+void ScFormulaCell::SetResultDouble( double n )
+{
+ aResult.SetDouble( n);
+}
+
void ScFormulaCell::SetResultToken( const formula::FormulaToken* pToken )
{
aResult.SetToken(pToken);
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index a34b1de2c6a2..1ca26a7e55ab 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -191,6 +191,11 @@ sal_uLong ScGlobal::GetStandardFormat( SvNumberFormatter& rFormatter,
return rFormatter.GetStandardFormat( nType, eLnge );
}
+sal_uInt16 ScGlobal::GetStandardRowHeight()
+{
+ return nStdRowHeight;
+}
+
sal_uLong ScGlobal::GetStandardFormat( double fNumber, SvNumberFormatter& rFormatter,
sal_uLong nFormat, short nType )
{