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