Kaydet (Commit) b1f7c093 authored tarafından Caolán McNamara's avatar Caolán McNamara

unwind RID_PRICING_FUNCTION_NAMES local resource

Change-Id: I3da1caed4b6c91acdabe16d98e6d43bf5dc32247
üst 83d062b7
......@@ -292,7 +292,7 @@ OUString SAL_CALL ScaPricingAddIn::getDisplayFunctionName( const OUString& aProg
FindScaFuncData( aProgrammaticName ) );
if(fDataIt != pFuncDataList->end() )
{
aRet = ScaResStringLoader( RID_PRICING_FUNCTION_NAMES, fDataIt->GetUINameID(), GetResMgr() ).GetString();
aRet = ScaResId(fDataIt->GetUINameID(), GetResMgr()).toString();
if( fDataIt->IsDouble() )
aRet += "_ADD";
}
......
......@@ -23,7 +23,6 @@
#define PRICING_RESOURCE_START 1000
#define RID_PRICING_FUNCTION_DESCRIPTIONS PRICING_RESOURCE_START
#define RID_PRICING_FUNCTION_NAMES (PRICING_RESOURCE_START+1000)
#define PRICING_FUNCDESC_START (RID_PRICING_FUNCTION_DESCRIPTIONS+1)
......@@ -32,7 +31,7 @@
#define PRICING_FUNCDESC_OptProbHit (PRICING_FUNCDESC_START+2)
#define PRICING_FUNCDESC_OptProbInMoney (PRICING_FUNCDESC_START+3)
#define PRICING_FUNCNAME_START (RID_PRICING_FUNCTION_NAMES+1)
#define PRICING_FUNCNAME_START (PRICING_RESOURCE_START+1000)
#define PRICING_FUNCNAME_OptBarrier (PRICING_FUNCNAME_START)
#define PRICING_FUNCNAME_OptTouch (PRICING_FUNCNAME_START+1)
......
......@@ -53,22 +53,6 @@ public:
ScaResId( sal_uInt16 nResId, ResMgr& rResMgr );
};
class ScaResStringLoader
{
private:
OUString aStr;
public:
ScaResStringLoader(sal_uInt16 nResId, sal_uInt16 nStrId, ResMgr& rResMgr)
{
ResStringArray aStrArray(ScaResId(nResId, rResMgr));
aStr = aStrArray.GetString(aStrArray.FindIndex(nStrId));
}
const OUString& GetString() const { return aStr; }
};
class ScaResPublisher : public Resource
{
public:
......
......@@ -399,15 +399,25 @@ Resource RID_PRICING_FUNCTION_DESCRIPTIONS
};
// function names as accessible from cells
StringArray RID_PRICING_FUNCTION_NAMES
String PRICING_FUNCNAME_OptBarrier
{
ItemList [ en-US ] =
{
< "OPT_BARRIER"; PRICING_FUNCNAME_OptBarrier ; >;
< "OPT_TOUCH"; PRICING_FUNCNAME_OptTouch ; >;
< "OPT_PROB_HIT"; PRICING_FUNCNAME_OptProbHit ; >;
< "OPT_PROB_INMONEY"; PRICING_FUNCNAME_OptProbInMoney ; >;
};
Text [ en-US ] = "OPT_BARRIER";
};
String PRICING_FUNCNAME_OptTouch
{
Text [ en-US ] = "OPT_TOUCH";
};
String PRICING_FUNCNAME_OptProbHit
{
Text [ en-US ] = "OPT_PROB_HIT";
};
String PRICING_FUNCNAME_OptProbInMoney
{
Text [ en-US ] = "OPT_PROB_INMONEY";
};
// These were originally meant to be able to load Excel documents that for
......
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