diff options
Diffstat (limited to 'forms/source/misc/limitedformats.cxx')
-rw-r--r-- | forms/source/misc/limitedformats.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/forms/source/misc/limitedformats.cxx b/forms/source/misc/limitedformats.cxx index 1b7473114d1c..d365dce6203e 100644 --- a/forms/source/misc/limitedformats.cxx +++ b/forms/source/misc/limitedformats.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,9 +45,9 @@ namespace frm using namespace ::com::sun::star::form; using namespace ::com::sun::star::beans; - sal_Int32 OLimitedFormats::s_nInstanceCount(0); - ::osl::Mutex OLimitedFormats::s_aMutex; - Reference< XNumberFormatsSupplier > OLimitedFormats::s_xStandardFormats; + sal_Int32 OLimitedFormats::s_nInstanceCount(0); + ::osl::Mutex OLimitedFormats::s_aMutex; + Reference< XNumberFormatsSupplier > OLimitedFormats::s_xStandardFormats; //===================================================================== //= @@ -88,8 +88,8 @@ namespace frm struct FormatEntry { const sal_Char* pDescription; - sal_Int32 nKey; - LocaleType eLocale; + sal_Int32 nKey; + LocaleType eLocale; }; //--------------------------------------------------------------------- @@ -266,7 +266,7 @@ namespace frm // seek to the nValue'th entry sal_Int32 nLookup = 0; - for ( ; + for ( ; (NULL != pFormats->pDescription) && (nLookup < nValue); ++pFormats, ++nLookup ) @@ -304,7 +304,7 @@ namespace frm // look for the entry with the given format key sal_Int32 nTablePosition = 0; - for ( ; + for ( ; (NULL != pFormats->pDescription) && (nNewFormat != pFormats->nKey); ++pFormats, ++nTablePosition ) @@ -322,7 +322,7 @@ namespace frm } if (!_rOldValue.hasValue()) - { // did not reach the end of the table (means we found nNewFormat) + { // did not reach the end of the table (means we found nNewFormat) // -> go to the end to ensure that _rOldValue is set while (pFormats->pDescription) { @@ -340,7 +340,7 @@ namespace frm OSL_ENSURE(_rOldValue.hasValue(), "OLimitedFormats::convertFormatKeyPropertyValue: did not find the old enum value in the table!"); if (!bFoundIt) - { // somebody gave us an format which we can't translate + { // somebody gave us an format which we can't translate ::rtl::OUString sMessage = ::rtl::OUString::createFromAscii("This control supports only a very limited number of formats."); throw IllegalArgumentException(sMessage, NULL, 2); } @@ -357,7 +357,7 @@ namespace frm OSL_ENSURE(m_xAggregate.is() && (-1 != m_nFormatEnumPropertyHandle), "OLimitedFormats::setFormatKeyPropertyValue: not initialized!"); if (m_xAggregate.is()) - { // this is to be called after convertFormatKeyPropertyValue, where + { // this is to be called after convertFormatKeyPropertyValue, where // we translated the format key into a enum value. // So now we can simply forward this enum value to our aggreate m_xAggregate->setFastPropertyValue(m_nFormatEnumPropertyHandle, _rNewValue); @@ -369,7 +369,7 @@ namespace frm { ::osl::MutexGuard aGuard(s_aMutex); if ((1 == ++s_nInstanceCount) && _rxORB.is()) - { // create the standard formatter + { // create the standard formatter Sequence< Any > aInit(1); aInit[0] <<= getLocale(ltEnglishUS); @@ -397,6 +397,6 @@ namespace frm } //......................................................................... -} // namespace frm +} // namespace frm //......................................................................... |