Kaydet (Commit) 69d46dd7 authored tarafından Luboš Luňák's avatar Luboš Luňák

do not include contents of huge sc/sd/sw libs into tiny unittests

This decreases debug build dir size by about 0.5G for gcc and 1G for clang.
üst 5b530161
...@@ -35,8 +35,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sc_ucalc, \ ...@@ -35,8 +35,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sc_ucalc, \
sc/qa/unit/ucalc \ sc/qa/unit/ucalc \
)) ))
$(eval $(call gb_CppunitTest_add_library_objects,sc_ucalc,sc))
$(call gb_CxxObject_get_target,sc/qa/unit/ucalc): \ $(call gb_CxxObject_get_target,sc/qa/unit/ucalc): \
$(WORKDIR)/AllLangRes/for \ $(WORKDIR)/AllLangRes/for \
$(WORKDIR)/AllLangRes/forui \ $(WORKDIR)/AllLangRes/forui \
...@@ -60,6 +58,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sc_ucalc, \ ...@@ -60,6 +58,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sc_ucalc, \
salhelper \ salhelper \
sax \ sax \
sb \ sb \
sc \
sfx \ sfx \
sot \ sot \
svl \ svl \
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "rangelst.hxx" #include "rangelst.hxx"
#include "rangenam.hxx" #include "rangenam.hxx"
#include "charthelper.hxx" #include "charthelper.hxx"
#include "scdllapi.h"
#include <vector> #include <vector>
...@@ -50,7 +51,7 @@ struct ScClipParam ...@@ -50,7 +51,7 @@ struct ScClipParam
ScRangeListVector maProtectedChartRangesVector; ScRangeListVector maProtectedChartRangesVector;
ScClipParam(); ScClipParam();
ScClipParam(const ScRange& rRange, bool bCutMode); SC_DLLPUBLIC ScClipParam(const ScRange& rRange, bool bCutMode);
explicit ScClipParam(const ScClipParam& r); explicit ScClipParam(const ScClipParam& r);
bool isMultiRange() const; bool isMultiRange() const;
......
...@@ -483,8 +483,8 @@ public: ...@@ -483,8 +483,8 @@ public:
SC_DLLPUBLIC void GetRangeNameMap(std::map<rtl::OUString, ScRangeName*>& rRangeName); SC_DLLPUBLIC void GetRangeNameMap(std::map<rtl::OUString, ScRangeName*>& rRangeName);
SC_DLLPUBLIC ScRangeName* GetRangeName(SCTAB nTab) const; SC_DLLPUBLIC ScRangeName* GetRangeName(SCTAB nTab) const;
SC_DLLPUBLIC ScRangeName* GetRangeName() const; SC_DLLPUBLIC ScRangeName* GetRangeName() const;
void SetRangeName(SCTAB nTab, ScRangeName* pNew); SC_DLLPUBLIC void SetRangeName(SCTAB nTab, ScRangeName* pNew);
void SetRangeName( ScRangeName* pNewRangeName ); SC_DLLPUBLIC void SetRangeName( ScRangeName* pNewRangeName );
SCTAB GetMaxTableNumber() { return static_cast<SCTAB>(maTabs.size()) - 1; } SCTAB GetMaxTableNumber() { return static_cast<SCTAB>(maTabs.size()) - 1; }
void SetMaxTableNumber(SCTAB nNumber) { nMaxTableNumber = nNumber; } void SetMaxTableNumber(SCTAB nNumber) { nMaxTableNumber = nNumber; }
...@@ -599,8 +599,8 @@ public: ...@@ -599,8 +599,8 @@ public:
SC_DLLPUBLIC bool RenameTab( SCTAB nTab, const rtl::OUString& rName, SC_DLLPUBLIC bool RenameTab( SCTAB nTab, const rtl::OUString& rName,
bool bUpdateRef = true, bool bUpdateRef = true,
bool bExternalDocument = false ); bool bExternalDocument = false );
bool MoveTab( SCTAB nOldPos, SCTAB nNewPos, ScProgress* pProgress = NULL ); SC_DLLPUBLIC bool MoveTab( SCTAB nOldPos, SCTAB nNewPos, ScProgress* pProgress = NULL );
bool CopyTab( SCTAB nOldPos, SCTAB nNewPos, SC_DLLPUBLIC bool CopyTab( SCTAB nOldPos, SCTAB nNewPos,
const ScMarkData* pOnlyMarked = NULL ); const ScMarkData* pOnlyMarked = NULL );
SC_DLLPUBLIC sal_uLong TransferTab(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos, SC_DLLPUBLIC sal_uLong TransferTab(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos,
bool bInsertNew = true, bool bInsertNew = true,
...@@ -608,8 +608,8 @@ public: ...@@ -608,8 +608,8 @@ public:
SC_DLLPUBLIC void TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos); SC_DLLPUBLIC void TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos);
SC_DLLPUBLIC void SetVisible( SCTAB nTab, bool bVisible ); SC_DLLPUBLIC void SetVisible( SCTAB nTab, bool bVisible );
SC_DLLPUBLIC bool IsVisible( SCTAB nTab ) const; SC_DLLPUBLIC bool IsVisible( SCTAB nTab ) const;
bool IsStreamValid( SCTAB nTab ) const; SC_DLLPUBLIC bool IsStreamValid( SCTAB nTab ) const;
void SetStreamValid( SCTAB nTab, bool bSet, bool bIgnoreLock = false ); SC_DLLPUBLIC void SetStreamValid( SCTAB nTab, bool bSet, bool bIgnoreLock = false );
void LockStreamValid( bool bLock ); void LockStreamValid( bool bLock );
bool IsStreamValidLocked() const { return mbStreamValidLocked; } bool IsStreamValidLocked() const { return mbStreamValidLocked; }
bool IsPendingRowHeights( SCTAB nTab ) const; bool IsPendingRowHeights( SCTAB nTab ) const;
...@@ -849,9 +849,9 @@ public: ...@@ -849,9 +849,9 @@ public:
SCCOL nEndCol, SCROW nEndRow, bool bDeleteCaptions = true ); SCCOL nEndCol, SCROW nEndRow, bool bDeleteCaptions = true );
void RemoveMerge( SCCOL nCol, SCROW nRow, SCTAB nTab ); void RemoveMerge( SCCOL nCol, SCROW nRow, SCTAB nTab );
bool IsBlockEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SC_DLLPUBLIC bool IsBlockEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, bool bIgnoreNotes = false ) const; SCCOL nEndCol, SCROW nEndRow, bool bIgnoreNotes = false ) const;
bool IsPrintEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SC_DLLPUBLIC bool IsPrintEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, SCCOL nEndCol, SCROW nEndRow,
bool bLeftIsEmpty = false, bool bLeftIsEmpty = false,
ScRange* pLastRange = NULL, ScRange* pLastRange = NULL,
...@@ -877,7 +877,7 @@ public: ...@@ -877,7 +877,7 @@ public:
void SetDirty( const ScRange& ); void SetDirty( const ScRange& );
void SetTableOpDirty( const ScRange& ); // for Interpreter TableOp void SetTableOpDirty( const ScRange& ); // for Interpreter TableOp
void InterpretDirtyCells( const ScRangeList& rRanges ); void InterpretDirtyCells( const ScRangeList& rRanges );
void CalcAll(); SC_DLLPUBLIC void CalcAll();
SC_DLLPUBLIC void CalcAfterLoad(); SC_DLLPUBLIC void CalcAfterLoad();
void CompileAll(); void CompileAll();
void CompileXML(); void CompileXML();
...@@ -897,7 +897,7 @@ public: ...@@ -897,7 +897,7 @@ public:
void ClearLookupCaches(); void ClearLookupCaches();
// calculate automatically // calculate automatically
void SetAutoCalc( bool bNewAutoCalc ); SC_DLLPUBLIC void SetAutoCalc( bool bNewAutoCalc );
bool GetAutoCalc() const { return bAutoCalc; } bool GetAutoCalc() const { return bAutoCalc; }
// calculate automatically in/from/for ScDocShell disabled // calculate automatically in/from/for ScDocShell disabled
void SetAutoCalcShellDisabled( bool bNew ) { bAutoCalcShellDisabled = bNew; } void SetAutoCalcShellDisabled( bool bNew ) { bAutoCalcShellDisabled = bNew; }
...@@ -974,19 +974,19 @@ public: ...@@ -974,19 +974,19 @@ public:
SCCOL& rEndCol, SCROW& rEndRow ); SCCOL& rEndCol, SCROW& rEndRow );
void LimitChartIfAll( ScRangeListRef& rRangeList ); void LimitChartIfAll( ScRangeListRef& rRangeList );
bool InsertRow( SCCOL nStartCol, SCTAB nStartTab, SC_DLLPUBLIC bool InsertRow( SCCOL nStartCol, SCTAB nStartTab,
SCCOL nEndCol, SCTAB nEndTab, SCCOL nEndCol, SCTAB nEndTab,
SCROW nStartRow, SCSIZE nSize, ScDocument* pRefUndoDoc = NULL, SCROW nStartRow, SCSIZE nSize, ScDocument* pRefUndoDoc = NULL,
const ScMarkData* pTabMark = NULL ); const ScMarkData* pTabMark = NULL );
SC_DLLPUBLIC bool InsertRow( const ScRange& rRange, ScDocument* pRefUndoDoc = NULL ); SC_DLLPUBLIC bool InsertRow( const ScRange& rRange, ScDocument* pRefUndoDoc = NULL );
void DeleteRow( SCCOL nStartCol, SCTAB nStartTab, SC_DLLPUBLIC void DeleteRow( SCCOL nStartCol, SCTAB nStartTab,
SCCOL nEndCol, SCTAB nEndTab, SCCOL nEndCol, SCTAB nEndTab,
SCROW nStartRow, SCSIZE nSize, SCROW nStartRow, SCSIZE nSize,
ScDocument* pRefUndoDoc = NULL, bool* pUndoOutline = NULL, ScDocument* pRefUndoDoc = NULL, bool* pUndoOutline = NULL,
const ScMarkData* pTabMark = NULL ); const ScMarkData* pTabMark = NULL );
SC_DLLPUBLIC void DeleteRow( const ScRange& rRange, SC_DLLPUBLIC void DeleteRow( const ScRange& rRange,
ScDocument* pRefUndoDoc = NULL, bool* pUndoOutline = NULL ); ScDocument* pRefUndoDoc = NULL, bool* pUndoOutline = NULL );
bool InsertCol( SCROW nStartRow, SCTAB nStartTab, SC_DLLPUBLIC bool InsertCol( SCROW nStartRow, SCTAB nStartTab,
SCROW nEndRow, SCTAB nEndTab, SCROW nEndRow, SCTAB nEndTab,
SCCOL nStartCol, SCSIZE nSize, ScDocument* pRefUndoDoc = NULL, SCCOL nStartCol, SCSIZE nSize, ScDocument* pRefUndoDoc = NULL,
const ScMarkData* pTabMark = NULL ); const ScMarkData* pTabMark = NULL );
...@@ -1034,13 +1034,13 @@ public: ...@@ -1034,13 +1034,13 @@ public:
const ScMarkData& rMark ); const ScMarkData& rMark );
void DeleteObjectsInSelection( const ScMarkData& rMark ); void DeleteObjectsInSelection( const ScMarkData& rMark );
void DeleteArea(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SC_DLLPUBLIC void DeleteArea(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
const ScMarkData& rMark, sal_uInt16 nDelFlag); const ScMarkData& rMark, sal_uInt16 nDelFlag);
void DeleteAreaTab(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, void DeleteAreaTab(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
SCTAB nTab, sal_uInt16 nDelFlag); SCTAB nTab, sal_uInt16 nDelFlag);
void DeleteAreaTab(const ScRange& rRange, sal_uInt16 nDelFlag); void DeleteAreaTab(const ScRange& rRange, sal_uInt16 nDelFlag);
void CopyToClip(const ScClipParam& rClipParam, ScDocument* pClipDoc, SC_DLLPUBLIC void CopyToClip(const ScClipParam& rClipParam, ScDocument* pClipDoc,
const ScMarkData* pMarks = NULL, bool bAllTabs = false, bool bKeepScenarioFlags = false, const ScMarkData* pMarks = NULL, bool bAllTabs = false, bool bKeepScenarioFlags = false,
bool bIncludeObjects = false, bool bCloneNoteCaptions = true, bool bUseRangeForVBA = false ); bool bIncludeObjects = false, bool bCloneNoteCaptions = true, bool bUseRangeForVBA = false );
...@@ -1061,7 +1061,7 @@ public: ...@@ -1061,7 +1061,7 @@ public:
const ScMarkData& rMark, sal_uInt16 nInsFlag ); const ScMarkData& rMark, sal_uInt16 nInsFlag );
/** If pDestRanges is given it overrides rDestRange, rDestRange in this /** If pDestRanges is given it overrides rDestRange, rDestRange in this
case is the overall encompassing range. */ case is the overall encompassing range. */
void CopyFromClip( const ScRange& rDestRange, const ScMarkData& rMark, SC_DLLPUBLIC void CopyFromClip( const ScRange& rDestRange, const ScMarkData& rMark,
sal_uInt16 nInsFlag, sal_uInt16 nInsFlag,
ScDocument* pRefUndoDoc = NULL, ScDocument* pRefUndoDoc = NULL,
ScDocument* pClipDoc = NULL, ScDocument* pClipDoc = NULL,
...@@ -1479,7 +1479,7 @@ public: ...@@ -1479,7 +1479,7 @@ public:
SC_DLLPUBLIC SvNumberFormatter* GetFormatTable() const; SC_DLLPUBLIC SvNumberFormatter* GetFormatTable() const;
void Sort( SCTAB nTab, const ScSortParam& rSortParam, bool bKeepQuery ); void Sort( SCTAB nTab, const ScSortParam& rSortParam, bool bKeepQuery );
SCSIZE Query( SCTAB nTab, const ScQueryParam& rQueryParam, bool bKeepSub ); SC_DLLPUBLIC SCSIZE Query( SCTAB nTab, const ScQueryParam& rQueryParam, bool bKeepSub );
SC_DLLPUBLIC bool CreateQueryParam( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SC_DLLPUBLIC bool CreateQueryParam( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
SCTAB nTab, ScQueryParam& rQueryParam ); SCTAB nTab, ScQueryParam& rQueryParam );
void GetUpperCellString(SCCOL nCol, SCROW nRow, SCTAB nTab, rtl::OUString& rStr); void GetUpperCellString(SCCOL nCol, SCROW nRow, SCTAB nTab, rtl::OUString& rStr);
...@@ -1664,7 +1664,7 @@ public: ...@@ -1664,7 +1664,7 @@ public:
SvtListener* pListener ); SvtListener* pListener );
void PutInFormulaTree( ScFormulaCell* pCell ); void PutInFormulaTree( ScFormulaCell* pCell );
void RemoveFromFormulaTree( ScFormulaCell* pCell ); void RemoveFromFormulaTree( ScFormulaCell* pCell );
void CalcFormulaTree( bool bOnlyForced = false, SC_DLLPUBLIC void CalcFormulaTree( bool bOnlyForced = false,
bool bNoProgressBar = false ); bool bNoProgressBar = false );
void ClearFormulaTree(); void ClearFormulaTree();
void AppendToFormulaTrack( ScFormulaCell* pCell ); void AppendToFormulaTrack( ScFormulaCell* pCell );
......
...@@ -283,9 +283,9 @@ public: ...@@ -283,9 +283,9 @@ public:
ScDocument* mpDoc; ScDocument* mpDoc;
public: public:
SheetCaches(ScDocument* pDoc); SheetCaches(ScDocument* pDoc);
bool hasCache(const ScRange& rRange) const; SC_DLLPUBLIC bool hasCache(const ScRange& rRange) const;
const ScDPCache* getCache(const ScRange& rRange, const ScDPDimensionSaveData* pDimData); const ScDPCache* getCache(const ScRange& rRange, const ScDPDimensionSaveData* pDimData);
size_t size() const; SC_DLLPUBLIC size_t size() const;
void updateReference( void updateReference(
UpdateRefMode eMode, const ScRange& r, SCsCOL nDx, SCsROW nDy, SCsTAB nDz); UpdateRefMode eMode, const ScRange& r, SCsCOL nDx, SCsROW nDy, SCsTAB nDz);
...@@ -308,10 +308,10 @@ public: ...@@ -308,10 +308,10 @@ public:
ScDocument* mpDoc; ScDocument* mpDoc;
public: public:
NameCaches(ScDocument* pDoc); NameCaches(ScDocument* pDoc);
bool hasCache(const rtl::OUString& rName) const; SC_DLLPUBLIC bool hasCache(const rtl::OUString& rName) const;
const ScDPCache* getCache( const ScDPCache* getCache(
const ::rtl::OUString& rName, const ScRange& rRange, const ScDPDimensionSaveData* pDimData); const ::rtl::OUString& rName, const ScRange& rRange, const ScDPDimensionSaveData* pDimData);
size_t size() const; SC_DLLPUBLIC size_t size() const;
private: private:
ScDPCache* getExistingCache(const rtl::OUString& rName); ScDPCache* getExistingCache(const rtl::OUString& rName);
...@@ -370,8 +370,8 @@ public: ...@@ -370,8 +370,8 @@ public:
ScDPCollection(const ScDPCollection& r); ScDPCollection(const ScDPCollection& r);
~ScDPCollection(); ~ScDPCollection();
sal_uLong ReloadCache(ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs); SC_DLLPUBLIC sal_uLong ReloadCache(ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs);
bool ReloadGroupsInCache(ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs); SC_DLLPUBLIC bool ReloadGroupsInCache(ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs);
SC_DLLPUBLIC size_t GetCount() const; SC_DLLPUBLIC size_t GetCount() const;
SC_DLLPUBLIC ScDPObject* operator[](size_t nIndex); SC_DLLPUBLIC ScDPObject* operator[](size_t nIndex);
...@@ -395,15 +395,15 @@ public: ...@@ -395,15 +395,15 @@ public:
* *
* @return new name for data pilot object. * @return new name for data pilot object.
*/ */
::rtl::OUString CreateNewName( sal_uInt16 nMin = 1 ) const; SC_DLLPUBLIC ::rtl::OUString CreateNewName( sal_uInt16 nMin = 1 ) const;
void FreeTable(ScDPObject* pDPObj); SC_DLLPUBLIC void FreeTable(ScDPObject* pDPObj);
SC_DLLPUBLIC bool InsertNewTable(ScDPObject* pDPObj); SC_DLLPUBLIC bool InsertNewTable(ScDPObject* pDPObj);
bool HasDPTable(SCCOL nCol, SCROW nRow, SCTAB nTab) const; bool HasDPTable(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
SheetCaches& GetSheetCaches(); SC_DLLPUBLIC SheetCaches& GetSheetCaches();
NameCaches& GetNameCaches(); SC_DLLPUBLIC NameCaches& GetNameCaches();
DBCaches& GetDBCaches(); DBCaches& GetDBCaches();
private: private:
......
...@@ -258,7 +258,7 @@ private: ...@@ -258,7 +258,7 @@ private:
public: public:
SC_DLLPUBLIC ScDPSaveData(); SC_DLLPUBLIC ScDPSaveData();
ScDPSaveData(const ScDPSaveData& r); SC_DLLPUBLIC ScDPSaveData(const ScDPSaveData& r);
SC_DLLPUBLIC ~ScDPSaveData(); SC_DLLPUBLIC ~ScDPSaveData();
ScDPSaveData& operator= ( const ScDPSaveData& r ); ScDPSaveData& operator= ( const ScDPSaveData& r );
...@@ -294,7 +294,7 @@ public: ...@@ -294,7 +294,7 @@ public:
* manages its life cycle; hence the caller must * manages its life cycle; hence the caller must
* <i>not</i> delete this object. * <i>not</i> delete this object.
*/ */
ScDPSaveDimension* GetDimensionByName(const ::rtl::OUString& rName); SC_DLLPUBLIC ScDPSaveDimension* GetDimensionByName(const ::rtl::OUString& rName);
SC_DLLPUBLIC ScDPSaveDimension* GetDataLayoutDimension(); SC_DLLPUBLIC ScDPSaveDimension* GetDataLayoutDimension();
SC_DLLPUBLIC ScDPSaveDimension* GetExistingDataLayoutDimension() const; SC_DLLPUBLIC ScDPSaveDimension* GetExistingDataLayoutDimension() const;
...@@ -310,7 +310,7 @@ public: ...@@ -310,7 +310,7 @@ public:
ScDPSaveDimension* GetFirstDimension(::com::sun::star::sheet::DataPilotFieldOrientation eOrientation); ScDPSaveDimension* GetFirstDimension(::com::sun::star::sheet::DataPilotFieldOrientation eOrientation);
long GetDataDimensionCount() const; long GetDataDimensionCount() const;
void SetPosition( ScDPSaveDimension* pDim, long nNew ); SC_DLLPUBLIC void SetPosition( ScDPSaveDimension* pDim, long nNew );
SC_DLLPUBLIC void SetColumnGrand( bool bSet ); SC_DLLPUBLIC void SetColumnGrand( bool bSet );
bool GetColumnGrand() const bool GetColumnGrand() const
{ return bool(nColumnGrandMode); } { return bool(nColumnGrandMode); }
...@@ -319,11 +319,11 @@ public: ...@@ -319,11 +319,11 @@ public:
bool GetRowGrand() const bool GetRowGrand() const
{ return bool(nRowGrandMode); } { return bool(nRowGrandMode); }
void SetIgnoreEmptyRows( bool bSet ); SC_DLLPUBLIC void SetIgnoreEmptyRows( bool bSet );
bool GetIgnoreEmptyRows() const bool GetIgnoreEmptyRows() const
{ return bool(nIgnoreEmptyMode); } { return bool(nIgnoreEmptyMode); }
void SetRepeatIfEmpty( bool bSet ); SC_DLLPUBLIC void SetRepeatIfEmpty( bool bSet );
bool GetRepeatIfEmpty() const bool GetRepeatIfEmpty() const
{ return bool(nRepeatEmptyMode); } { return bool(nRepeatEmptyMode); }
......
...@@ -75,8 +75,8 @@ public: ...@@ -75,8 +75,8 @@ public:
SC_DLLPUBLIC void SetRangeName(const ::rtl::OUString& rName); SC_DLLPUBLIC void SetRangeName(const ::rtl::OUString& rName);
SC_DLLPUBLIC const ::rtl::OUString& GetRangeName() const; SC_DLLPUBLIC const ::rtl::OUString& GetRangeName() const;
bool HasRangeName() const; bool HasRangeName() const;
void SetQueryParam(const ScQueryParam& rParam); SC_DLLPUBLIC void SetQueryParam(const ScQueryParam& rParam);
const ScQueryParam& GetQueryParam() const; SC_DLLPUBLIC const ScQueryParam& GetQueryParam() const;
bool operator== ( const ScSheetSourceDesc& rOther ) const; bool operator== ( const ScSheetSourceDesc& rOther ) const;
SC_DLLPUBLIC const ScDPCache* CreateCache(const ScDPDimensionSaveData* pDimData) const; SC_DLLPUBLIC const ScDPCache* CreateCache(const ScDPDimensionSaveData* pDimData) const;
......
...@@ -173,11 +173,11 @@ public: ...@@ -173,11 +173,11 @@ public:
ReferencedFlag getReferencedFlag() const; ReferencedFlag getReferencedFlag() const;
bool isReferenced() const; bool isReferenced() const;
/// Obtain a sorted vector of rows. /// Obtain a sorted vector of rows.
void getAllRows(::std::vector<SCROW>& rRows, SCROW nLow = 0, SCROW nHigh = MAXROW) const; SC_DLLPUBLIC void getAllRows(::std::vector<SCROW>& rRows, SCROW nLow = 0, SCROW nHigh = MAXROW) const;
/// Returns the half-open range of used rows in this table. Returns [0,0) if table is empty. /// Returns the half-open range of used rows in this table. Returns [0,0) if table is empty.
SC_DLLPUBLIC ::std::pair< SCROW, SCROW > getRowRange() const; SC_DLLPUBLIC ::std::pair< SCROW, SCROW > getRowRange() const;
/// Obtain a sorted vector of columns. /// Obtain a sorted vector of columns.
void getAllCols(SCROW nRow, ::std::vector<SCCOL>& rCols, SCCOL nLow = 0, SCCOL nHigh = MAXCOL) const; SC_DLLPUBLIC void getAllCols(SCROW nRow, ::std::vector<SCCOL>& rCols, SCCOL nLow = 0, SCCOL nHigh = MAXCOL) const;
/// Returns the half-open range of used columns in the specified row. Returns [0,0) if row is empty. /// Returns the half-open range of used columns in the specified row. Returns [0,0) if row is empty.
SC_DLLPUBLIC ::std::pair< SCCOL, SCCOL > getColRange( SCROW nRow ) const; SC_DLLPUBLIC ::std::pair< SCCOL, SCCOL > getColRange( SCROW nRow ) const;
void getAllNumberFormats(::std::vector<sal_uInt32>& rNumFmts) const; void getAllNumberFormats(::std::vector<sal_uInt32>& rNumFmts) const;
......
...@@ -609,7 +609,7 @@ public: ...@@ -609,7 +609,7 @@ public:
static bool HasStarCalcFunctionList(); static bool HasStarCalcFunctionList();
static ScFunctionList* GetStarCalcFunctionList(); static ScFunctionList* GetStarCalcFunctionList();
static ScFunctionMgr* GetStarCalcFunctionMgr(); SC_DLLPUBLIC static ScFunctionMgr* GetStarCalcFunctionMgr();
static void ResetFunctionList(); static void ResetFunctionList();
static String GetErrorString(sal_uInt16 nErrNumber); static String GetErrorString(sal_uInt16 nErrNumber);
......
...@@ -105,9 +105,9 @@ struct ScPivotParam ...@@ -105,9 +105,9 @@ struct ScPivotParam
bool bMakeTotalCol; bool bMakeTotalCol;
bool bMakeTotalRow; bool bMakeTotalRow;
ScPivotParam(); SC_DLLPUBLIC ScPivotParam();
ScPivotParam( const ScPivotParam& r ); ScPivotParam( const ScPivotParam& r );
~ScPivotParam(); SC_DLLPUBLIC ~ScPivotParam();
ScPivotParam& operator= ( const ScPivotParam& r ); ScPivotParam& operator= ( const ScPivotParam& r );
bool operator== ( const ScPivotParam& r ) const; bool operator== ( const ScPivotParam& r ) const;
......
...@@ -195,7 +195,7 @@ public: ...@@ -195,7 +195,7 @@ public:
typedef DataType::const_iterator const_iterator; typedef DataType::const_iterator const_iterator;
typedef DataType::iterator iterator; typedef DataType::iterator iterator;
ScRangeName(); SC_DLLPUBLIC ScRangeName();
SC_DLLPUBLIC ScRangeName(const ScRangeName& r); SC_DLLPUBLIC ScRangeName(const ScRangeName& r);
SC_DLLPUBLIC const ScRangeData* findByRange(const ScRange& rRange) const; SC_DLLPUBLIC const ScRangeData* findByRange(const ScRange& rRange) const;
...@@ -236,7 +236,7 @@ public: ...@@ -236,7 +236,7 @@ public:
* valid. * valid.
*/ */
void erase(const iterator& itr); void erase(const iterator& itr);
void clear(); SC_DLLPUBLIC void clear();
bool operator== (const ScRangeName& r) const; bool operator== (const ScRangeName& r) const;
}; };
......
...@@ -36,7 +36,7 @@ class ScDocument; ...@@ -36,7 +36,7 @@ class ScDocument;
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
class ScRefFinder class SC_DLLPUBLIC ScRefFinder
{ {
private: private:
String aFormula; String aFormula;
......
...@@ -39,6 +39,7 @@ class SfxFilter; ...@@ -39,6 +39,7 @@ class SfxFilter;
#include <sfx2/sfxdefs.hxx> #include <sfx2/sfxdefs.hxx>
#include <sfx2/module.hxx> #include <sfx2/module.hxx>
#include <sfx2/docfac.hxx> #include <sfx2/docfac.hxx>
#include "scdllapi.h"
/** /**
* This class is a wrapper for a Load-On-Demand-DLL. One instance per * This class is a wrapper for a Load-On-Demand-DLL. One instance per
...@@ -47,7 +48,7 @@ class SfxFilter; ...@@ -47,7 +48,7 @@ class SfxFilter;
* *
* Remember: Do export this class! It is used by the application. * Remember: Do export this class! It is used by the application.
*/ */
class ScDLL class SC_DLLPUBLIC ScDLL
{ {
public: public:
// Ctor/Dtor must be linked to the application // Ctor/Dtor must be linked to the application
......
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
* *
* @return true if the string is a valid number, false otherwise. * @return true if the string is a valid number, false otherwise.
*/ */
static bool parseSimpleNumber( SC_DLLPUBLIC static bool parseSimpleNumber(
const ::rtl::OUString& rStr, sal_Unicode dsep, sal_Unicode gsep, double& rVal); const ::rtl::OUString& rStr, sal_Unicode dsep, sal_Unicode gsep, double& rVal);
}; };
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#define SC_REFUNDO_HXX #define SC_REFUNDO_HXX
#include <tools/solar.h> #include <tools/solar.h>
#include "scdllapi.h"
class ScDocument; class ScDocument;
class ScDBCollection; class ScDBCollection;
...@@ -57,7 +58,7 @@ private: ...@@ -57,7 +58,7 @@ private:
ScUnoRefList* pUnoRefs; ScUnoRefList* pUnoRefs;
public: public:
ScRefUndoData( const ScDocument* pDoc ); SC_DLLPUBLIC ScRefUndoData( const ScDocument* pDoc );
~ScRefUndoData(); ~ScRefUndoData();
void DeleteUnchanged( const ScDocument* pDoc ); void DeleteUnchanged( const ScDocument* pDoc );
......
...@@ -199,7 +199,7 @@ class ScUndoPaste: public ScMultiBlockUndo ...@@ -199,7 +199,7 @@ class ScUndoPaste: public ScMultiBlockUndo
{ {
public: public:
TYPEINFO(); TYPEINFO();
ScUndoPaste(ScDocShell* pNewDocShell, const ScRangeList& rRanges, SC_DLLPUBLIC ScUndoPaste(ScDocShell* pNewDocShell, const ScRangeList& rRanges,
const ScMarkData& rMark, const ScMarkData& rMark,
ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc, ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc,
sal_uInt16 nNewFlags, sal_uInt16 nNewFlags,
......
...@@ -143,7 +143,7 @@ class ScUndoRenameTab: public ScSimpleUndo ...@@ -143,7 +143,7 @@ class ScUndoRenameTab: public ScSimpleUndo
{ {
public: public:
TYPEINFO(); TYPEINFO();
ScUndoRenameTab( SC_DLLPUBLIC ScUndoRenameTab(
ScDocShell* pNewDocShell, ScDocShell* pNewDocShell,
SCTAB nT, SCTAB nT,
const String& rOldName, const String& rOldName,
...@@ -228,7 +228,7 @@ class ScUndoTabColor: public ScSimpleUndo ...@@ -228,7 +228,7 @@ class ScUndoTabColor: public ScSimpleUndo
{ {
public: public:
TYPEINFO(); TYPEINFO();
ScUndoTabColor( SC_DLLPUBLIC ScUndoTabColor(
ScDocShell* pNewDocShell, ScDocShell* pNewDocShell,
SCTAB nT, SCTAB nT,
const Color& aOTabBgColor, const Color& aOTabBgColor,
......
...@@ -41,8 +41,6 @@ $(eval $(call gb_CppunitTest_add_api,sd_uimpress,\ ...@@ -41,8 +41,6 @@ $(eval $(call gb_CppunitTest_add_api,sd_uimpress,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_add_library_objects,sd_uimpress,sd))
$(eval $(call gb_CppunitTest_add_linked_libs,sd_uimpress,\ $(eval $(call gb_CppunitTest_add_linked_libs,sd_uimpress,\
avmedia \ avmedia \
basegfx \ basegfx \
...@@ -58,6 +56,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sd_uimpress,\ ...@@ -58,6 +56,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sd_uimpress,\
sal \ sal \
salhelper \ salhelper \
sb \ sb \
sd \
sfx \ sfx \
sot \ sot \
svl \ svl \
......
...@@ -218,7 +218,7 @@ public: ...@@ -218,7 +218,7 @@ public:
TYPEINFO(); TYPEINFO();
SdDrawDocument(DocumentType eType, SfxObjectShell* pDocSh); SD_DLLPUBLIC SdDrawDocument(DocumentType eType, SfxObjectShell* pDocSh);
~SdDrawDocument(); ~SdDrawDocument();
virtual SdrModel* AllocModel() const; virtual SdrModel* AllocModel() const;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <sfx2/module.hxx> #include <sfx2/module.hxx>
#include <sfx2/sfxdefs.hxx> #include <sfx2/sfxdefs.hxx>
#include "sddllapi.h"
class SvFactory; class SvFactory;
class SotFactory; class SotFactory;
...@@ -48,7 +49,7 @@ class SfxFilter; ...@@ -48,7 +49,7 @@ class SfxFilter;
|* |*
\************************************************************************/ \************************************************************************/
class SdDLL class SD_DLLPUBLIC SdDLL
{ {
protected: protected:
static void RegisterFactorys(); static void RegisterFactorys();
......
...@@ -34,8 +34,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sw_swdoc_test, \ ...@@ -34,8 +34,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sw_swdoc_test, \
sw/qa/core/Test-BigPtrArray \ sw/qa/core/Test-BigPtrArray \
)) ))
$(eval $(call gb_CppunitTest_add_library_objects,sw_swdoc_test,sw))
$(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \ $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \
avmedia \ avmedia \
basegfx \ basegfx \
...@@ -58,6 +56,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \ ...@@ -58,6 +56,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \
svt \ svt \
svx \ svx \
svxcore \ svxcore \
sw \
swd \ swd \
test \ test \
tk \ tk \
......
...@@ -229,7 +229,7 @@ public: ...@@ -229,7 +229,7 @@ public:
Filename Filename
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
class SwFileNameFieldType : public SwFieldType class SW_DLLPUBLIC SwFileNameFieldType : public SwFieldType
{ {
SwDoc *pDoc; SwDoc *pDoc;
public: public:
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <sfx2/sfxdefs.hxx> #include <sfx2/sfxdefs.hxx>
#include <sfx2/module.hxx> #include <sfx2/module.hxx>
#include "swdllapi.h"
namespace sw { class Filters; } namespace sw { class Filters; }
...@@ -40,7 +41,7 @@ namespace sw { class Filters; } ...@@ -40,7 +41,7 @@ namespace sw { class Filters; }
*/ */
namespace SwGlobals namespace SwGlobals
{ {
void ensure(); SW_DLLPUBLIC void ensure();
sw::Filters & getFilters(); sw::Filters & getFilters();
} }
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <i18npool/lang.h> #include <i18npool/lang.h>
#include <modeltoviewhelper.hxx> #include <modeltoviewhelper.hxx>
#include "swdllapi.h"
class SwTxtNode; class SwTxtNode;
...@@ -39,7 +40,7 @@ class SwTxtNode; ...@@ -39,7 +40,7 @@ class SwTxtNode;
* nacheinander zur Verfuegung stellt. * nacheinander zur Verfuegung stellt.
*************************************************************************/ *************************************************************************/
class SwScanner class SW_DLLPUBLIC SwScanner
{ {
rtl::OUString aWord; rtl::OUString aWord;
const SwTxtNode& rNode; const SwTxtNode& rNode;
......
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