summaryrefslogtreecommitdiffstats
path: root/forms/source/component/Currency.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-17 12:25:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-17 12:25:11 +0100
commit3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2 (patch)
tree63699b525800b2c6708e90b817853bb60be5f6d8 /forms/source/component/Currency.cxx
parentloplugin: add Dialog to unusedvariablecheck (diff)
downloadcore-3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2.tar.gz
core-3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2.zip
Fix various XServiceInfo implementations
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
Diffstat (limited to 'forms/source/component/Currency.cxx')
-rw-r--r--forms/source/component/Currency.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx
index cad851f66bd3..bc7975d0b7b4 100644
--- a/forms/source/component/Currency.cxx
+++ b/forms/source/component/Currency.cxx
@@ -54,10 +54,11 @@ Sequence<Type> OCurrencyControl::_getTypes()
StringSequence SAL_CALL OCurrencyControl::getSupportedServiceNames() throw(std::exception)
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
- aSupported.realloc(aSupported.getLength() + 1);
+ aSupported.realloc(aSupported.getLength() + 2);
OUString*pArray = aSupported.getArray();
- pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_CURRENCYFIELD;
+ pArray[aSupported.getLength()-2] = FRM_SUN_CONTROL_CURRENCYFIELD;
+ pArray[aSupported.getLength()-1] = STARDIV_ONE_FORM_CONTROL_CURRENCYFIELD;
return aSupported;
}
@@ -150,7 +151,7 @@ StringSequence SAL_CALL OCurrencyModel::getSupportedServiceNames() throw(std::ex
StringSequence aSupported = OBoundControlModel::getSupportedServiceNames();
sal_Int32 nOldLen = aSupported.getLength();
- aSupported.realloc( nOldLen + 4 );
+ aSupported.realloc( nOldLen + 5 );
OUString* pStoreTo = aSupported.getArray() + nOldLen;
*pStoreTo++ = DATA_AWARE_CONTROL_MODEL;
@@ -159,6 +160,8 @@ StringSequence SAL_CALL OCurrencyModel::getSupportedServiceNames() throw(std::ex
*pStoreTo++ = FRM_SUN_COMPONENT_CURRENCYFIELD;
*pStoreTo++ = FRM_SUN_COMPONENT_DATABASE_CURRENCYFIELD;
+ *pStoreTo++ = FRM_COMPONENT_CURRENCYFIELD;
+
return aSupported;
}