DBG_ASSERT(m_pOwnFormatter == nullptr, "SvNumberFormatsSupplierServiceObject::initialize : already initialized !"); // maybe you already called a method which needed the formatter // you should use XMultiServiceFactory::createInstanceWithArguments to avoid that if (m_pOwnFormatter)
{ // !!! this is only an emergency handling, normally this should not occur !!!
m_pOwnFormatter.reset();
SetNumberFormatter(m_pOwnFormatter.get());
}
Type aExpectedArgType = ::cppu::UnoType<css::lang::Locale>::get();
LanguageType eNewFormatterLanguage = LANGUAGE_SYSTEM; // the default
sal_Int64 SAL_CALL SvNumberFormatsSupplierServiceObject::getSomething( const Sequence< sal_Int8 >& aIdentifier )
{
sal_Int64 nReturn = SvNumberFormatsSupplierObj::getSomething( aIdentifier ); if ( nReturn ) // if somebody accesses internals then we should have the formatter
implEnsureFormatter(); return nReturn;
}
void SvNumberFormatsSupplierServiceObject::implEnsureFormatter()
{ if (!m_pOwnFormatter)
{ // get the office's UI locale
SvtSysLocale aSysLocale;
css::lang::Locale aOfficeLocale = aSysLocale.GetLocaleData().getLanguageTag().getLocale();
// initialize with this locale
initialize({ Any(aOfficeLocale) });
}
}
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.12Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-01)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.