covert ANALYSIS_* resources to StringArrays
Change-Id: Id0aba9531ef179102f62c4f89fa65a244c975570
This commit is contained in:
parent
1273edfdf7
commit
288ca353a8
@ -30,6 +30,7 @@
|
|||||||
#include <rtl/math.hxx>
|
#include <rtl/math.hxx>
|
||||||
#include <sal/macros.h>
|
#include <sal/macros.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <tools/resary.hxx>
|
||||||
#include <tools/resmgr.hxx>
|
#include <tools/resmgr.hxx>
|
||||||
#include <tools/rcid.h>
|
#include <tools/rcid.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -79,27 +80,10 @@ ResMgr& AnalysisAddIn::GetResMgr()
|
|||||||
return *pResMgr;
|
return *pResMgr;
|
||||||
}
|
}
|
||||||
|
|
||||||
class AnalysisFuncRes : public Resource
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AnalysisFuncRes( ResId& rRes, ResMgr& rResMgr, sal_uInt16 nInd, OUString& rRet );
|
|
||||||
};
|
|
||||||
|
|
||||||
AnalysisFuncRes::AnalysisFuncRes( ResId& rRes, ResMgr& rResMgr, sal_uInt16 nInd, OUString& rRet ) : Resource( rRes )
|
|
||||||
{
|
|
||||||
rRet = AnalysisResId(nInd, rResMgr).toString();
|
|
||||||
|
|
||||||
FreeResource();
|
|
||||||
}
|
|
||||||
|
|
||||||
OUString AnalysisAddIn::GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex )
|
OUString AnalysisAddIn::GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex )
|
||||||
{
|
{
|
||||||
OUString aRet;
|
ResStringArray aArr(AnalysisResId(nResId, GetResMgr()));
|
||||||
AnalysisResId aRes( nResId, GetResMgr() );
|
return aArr.GetString(nStrIndex - 1);
|
||||||
aRes.SetRT( RSC_RESOURCE );
|
|
||||||
AnalysisFuncRes aSubRes( aRes, GetResMgr(), nStrIndex, aRet );
|
|
||||||
|
|
||||||
return aRet;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnalysisAddIn::InitData()
|
void AnalysisAddIn::InitData()
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user