Kaydet (Commit) 9a3f8cc7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve previous commit to disambiguate FuncData types

...by making more liberal use of already existing sca::analysis namespace
instead.

Change-Id: I17355b3aca3a5f415db1de718feba9153012bb2a
üst b2442f11
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#define MY_IMPLNAME "com.sun.star.sheet.addin.AnalysisImpl" #define MY_IMPLNAME "com.sun.star.sheet.addin.AnalysisImpl"
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace sca::analysis;
using namespace std; using namespace std;
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory(
......
...@@ -35,9 +35,10 @@ ...@@ -35,9 +35,10 @@
#include "analysisdefs.hxx" #include "analysisdefs.hxx"
#include "analysishelper.hxx" #include "analysishelper.hxx"
namespace sca { namespace analysis {
class FuncDataList; class FuncDataList;
class ConvertDataList; class ConvertDataList;
} }
class ResMgr; class ResMgr;
...@@ -54,12 +55,12 @@ class AnalysisAddIn : public cppu::WeakImplHelper5< ...@@ -54,12 +55,12 @@ class AnalysisAddIn : public cppu::WeakImplHelper5<
private: private:
css::lang::Locale aFuncLoc; css::lang::Locale aFuncLoc;
css::lang::Locale* pDefLocales; css::lang::Locale* pDefLocales;
FuncDataList* pFD; sca::analysis::FuncDataList* pFD;
double* pFactDoubles; double* pFactDoubles;
ConvertDataList* pCDL; sca::analysis::ConvertDataList* pCDL;
ResMgr* pResMgr; ResMgr* pResMgr;
ScaAnyConverter aAnyConv; sca::analysis::ScaAnyConverter aAnyConv;
ResMgr& GetResMgr( void ) throw( css::uno::RuntimeException ); ResMgr& GetResMgr( void ) throw( css::uno::RuntimeException );
OUString GetDisplFuncStr( sal_uInt16 nFuncNum ) throw( css::uno::RuntimeException ); OUString GetDisplFuncStr( sal_uInt16 nFuncNum ) throw( css::uno::RuntimeException );
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "analysis.hrc" #include "analysis.hrc"
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace sca::analysis;
#define UNIQUE false // function name does not exist in Calc #define UNIQUE false // function name does not exist in Calc
#define DOUBLE true // function name exists in Calc #define DOUBLE true // function name exists in Calc
...@@ -148,6 +149,7 @@ const FuncDataBase pFuncDatas[] = ...@@ -148,6 +149,7 @@ const FuncDataBase pFuncDatas[] =
}; };
#undef FUNCDATA #undef FUNCDATA
namespace sca { namespace analysis {
sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear )
{ {
...@@ -2964,7 +2966,6 @@ sal_Int32 ScaAnyConverter::getInt32( ...@@ -2964,7 +2966,6 @@ sal_Int32 ScaAnyConverter::getInt32(
return nResult; return nResult;
} }
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -39,6 +39,9 @@ ...@@ -39,6 +39,9 @@
class ResMgr; class ResMgr;
namespace sca { namespace analysis {
class SortedIndividualInt32List; class SortedIndividualInt32List;
class ScaAnyConverter; class ScaAnyConverter;
...@@ -168,7 +171,7 @@ struct FuncDataBase ...@@ -168,7 +171,7 @@ struct FuncDataBase
}; };
class SAL_DLLPRIVATE FuncData class FuncData
{ {
private: private:
OUString aIntName; OUString aIntName;
...@@ -448,8 +451,6 @@ enum ConvertDataClass ...@@ -448,8 +451,6 @@ enum ConvertDataClass
class ConvertDataList; class ConvertDataList;
namespace analysis {
class ConvertData class ConvertData
{ {
protected: protected:
...@@ -485,10 +486,6 @@ public: ...@@ -485,10 +486,6 @@ public:
inline bool IsPrefixSupport( void ) const; inline bool IsPrefixSupport( void ) const;
}; };
} // namespace analysis
using namespace ::analysis;
class ConvertDataLinear : public ConvertData class ConvertDataLinear : public ConvertData
{ {
protected: protected:
...@@ -883,7 +880,7 @@ public: ...@@ -883,7 +880,7 @@ public:
throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
}; };
} }
#endif #endif
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "analysishelper.hxx" #include "analysishelper.hxx"
#include <rtl/math.hxx> #include <rtl/math.hxx>
using namespace sca::analysis;
double SAL_CALL AnalysisAddIn::getAmordegrc( const css::uno::Reference< css::beans::XPropertySet >& xOpt, double SAL_CALL AnalysisAddIn::getAmordegrc( const css::uno::Reference< css::beans::XPropertySet >& xOpt,
double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal,
......
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