Kaydet (Commit) 32093237 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

comphelper: starlang -> css::lang

Change-Id: Ie8adb5b81df51fd973cbb786f27ea3ef1462679c
üst 007099ea
...@@ -74,7 +74,7 @@ sal_Bool SAL_CALL OEnumerationByName::hasMoreElements( ) throw(css::uno::Runtim ...@@ -74,7 +74,7 @@ sal_Bool SAL_CALL OEnumerationByName::hasMoreElements( ) throw(css::uno::Runtim
css::uno::Any SAL_CALL OEnumerationByName::nextElement( ) css::uno::Any SAL_CALL OEnumerationByName::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
{ {
::osl::ResettableMutexGuard aLock(m_aLock); ::osl::ResettableMutexGuard aLock(m_aLock);
...@@ -95,7 +95,7 @@ css::uno::Any SAL_CALL OEnumerationByName::nextElement( ) ...@@ -95,7 +95,7 @@ css::uno::Any SAL_CALL OEnumerationByName::nextElement( )
} }
void SAL_CALL OEnumerationByName::disposing(const starlang::EventObject& aEvent) void SAL_CALL OEnumerationByName::disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
::osl::ResettableMutexGuard aLock(m_aLock); ::osl::ResettableMutexGuard aLock(m_aLock);
...@@ -113,7 +113,7 @@ void OEnumerationByName::impl_startDisposeListening() ...@@ -113,7 +113,7 @@ void OEnumerationByName::impl_startDisposeListening()
return; return;
++m_refCount; ++m_refCount;
css::uno::Reference< starlang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY);
if (xDisposable.is()) if (xDisposable.is())
{ {
xDisposable->addEventListener(this); xDisposable->addEventListener(this);
...@@ -131,7 +131,7 @@ void OEnumerationByName::impl_stopDisposeListening() ...@@ -131,7 +131,7 @@ void OEnumerationByName::impl_stopDisposeListening()
return; return;
++m_refCount; ++m_refCount;
css::uno::Reference< starlang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY);
if (xDisposable.is()) if (xDisposable.is())
{ {
xDisposable->removeEventListener(this); xDisposable->removeEventListener(this);
...@@ -177,7 +177,7 @@ sal_Bool SAL_CALL OEnumerationByIndex::hasMoreElements( ) throw(css::uno::Runti ...@@ -177,7 +177,7 @@ sal_Bool SAL_CALL OEnumerationByIndex::hasMoreElements( ) throw(css::uno::Runti
css::uno::Any SAL_CALL OEnumerationByIndex::nextElement( ) css::uno::Any SAL_CALL OEnumerationByIndex::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
{ {
::osl::ResettableMutexGuard aLock(m_aLock); ::osl::ResettableMutexGuard aLock(m_aLock);
...@@ -198,7 +198,7 @@ css::uno::Any SAL_CALL OEnumerationByIndex::nextElement( ) ...@@ -198,7 +198,7 @@ css::uno::Any SAL_CALL OEnumerationByIndex::nextElement( )
} }
void SAL_CALL OEnumerationByIndex::disposing(const starlang::EventObject& aEvent) void SAL_CALL OEnumerationByIndex::disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
::osl::ResettableMutexGuard aLock(m_aLock); ::osl::ResettableMutexGuard aLock(m_aLock);
...@@ -216,7 +216,7 @@ void OEnumerationByIndex::impl_startDisposeListening() ...@@ -216,7 +216,7 @@ void OEnumerationByIndex::impl_startDisposeListening()
return; return;
++m_refCount; ++m_refCount;
css::uno::Reference< starlang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY);
if (xDisposable.is()) if (xDisposable.is())
{ {
xDisposable->addEventListener(this); xDisposable->addEventListener(this);
...@@ -234,7 +234,7 @@ void OEnumerationByIndex::impl_stopDisposeListening() ...@@ -234,7 +234,7 @@ void OEnumerationByIndex::impl_stopDisposeListening()
return; return;
++m_refCount; ++m_refCount;
css::uno::Reference< starlang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XComponent > xDisposable(m_xAccess, css::uno::UNO_QUERY);
if (xDisposable.is()) if (xDisposable.is())
{ {
xDisposable->removeEventListener(this); xDisposable->removeEventListener(this);
...@@ -269,7 +269,7 @@ sal_Bool SAL_CALL OAnyEnumeration::hasMoreElements( ) throw(css::uno::RuntimeEx ...@@ -269,7 +269,7 @@ sal_Bool SAL_CALL OAnyEnumeration::hasMoreElements( ) throw(css::uno::RuntimeEx
css::uno::Any SAL_CALL OAnyEnumeration::nextElement( ) css::uno::Any SAL_CALL OAnyEnumeration::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
{ {
if ( ! hasMoreElements()) if ( ! hasMoreElements())
throw starcontainer::NoSuchElementException(); throw starcontainer::NoSuchElementException();
......
...@@ -30,7 +30,6 @@ namespace comphelper ...@@ -30,7 +30,6 @@ namespace comphelper
namespace starbeans = ::com::sun::star::beans; namespace starbeans = ::com::sun::star::beans;
namespace starlang = ::com::sun::star::lang;
sal_Int16 getNumberFormatType(const css::uno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey) sal_Int16 getNumberFormatType(const css::uno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey)
...@@ -89,7 +88,7 @@ css::uno::Any getNumberFormatDecimals(const css::uno::Reference<starutil::XNumbe ...@@ -89,7 +88,7 @@ css::uno::Any getNumberFormatDecimals(const css::uno::Reference<starutil::XNumbe
sal_Int32 getStandardFormat( sal_Int32 getStandardFormat(
const css::uno::Reference<starutil::XNumberFormatter>& xFormatter, const css::uno::Reference<starutil::XNumberFormatter>& xFormatter,
sal_Int16 nType, sal_Int16 nType,
const starlang::Locale& _rLocale) const css::lang::Locale& _rLocale)
{ {
css::uno::Reference<starutil::XNumberFormatsSupplier> xSupplier( xFormatter.is() ? xFormatter->getNumberFormatsSupplier() : css::uno::Reference<starutil::XNumberFormatsSupplier>(NULL)); css::uno::Reference<starutil::XNumberFormatsSupplier> xSupplier( xFormatter.is() ? xFormatter->getNumberFormatsSupplier() : css::uno::Reference<starutil::XNumberFormatsSupplier>(NULL));
css::uno::Reference<starutil::XNumberFormats> xFormats( xSupplier.is() ? xSupplier->getNumberFormats() : css::uno::Reference<starutil::XNumberFormats>(NULL)); css::uno::Reference<starutil::XNumberFormats> xFormats( xSupplier.is() ? xSupplier->getNumberFormats() : css::uno::Reference<starutil::XNumberFormats>(NULL));
......
...@@ -195,7 +195,7 @@ bool tryPropertyValue(Any& _rConvertedValue, Any& _rOldValue, const Any& _rValue ...@@ -195,7 +195,7 @@ bool tryPropertyValue(Any& _rConvertedValue, Any& _rOldValue, const Any& _rValue
reinterpret_cast< uno_ReleaseFunc >(cpp_release) reinterpret_cast< uno_ReleaseFunc >(cpp_release)
) )
) )
throw starlang::IllegalArgumentException(); throw css::lang::IllegalArgumentException();
} }
else else
_rConvertedValue = _rValueToSet; _rConvertedValue = _rValueToSet;
......
...@@ -36,7 +36,6 @@ namespace comphelper ...@@ -36,7 +36,6 @@ namespace comphelper
namespace starcontainer = ::com::sun::star::container; namespace starcontainer = ::com::sun::star::container;
namespace starlang = ::com::sun::star::lang;
//= OEnumerationLock //= OEnumerationLock
...@@ -55,7 +54,7 @@ struct OEnumerationLock ...@@ -55,7 +54,7 @@ struct OEnumerationLock
*/ */
class COMPHELPER_DLLPUBLIC OEnumerationByName : private OEnumerationLock class COMPHELPER_DLLPUBLIC OEnumerationByName : private OEnumerationLock
, public ::cppu::WeakImplHelper2< starcontainer::XEnumeration , , public ::cppu::WeakImplHelper2< starcontainer::XEnumeration ,
starlang::XEventListener > css::lang::XEventListener >
{ {
css::uno::Sequence< OUString > m_aNames; css::uno::Sequence< OUString > m_aNames;
sal_Int32 m_nPos; sal_Int32 m_nPos;
...@@ -70,9 +69,9 @@ public: ...@@ -70,9 +69,9 @@ public:
virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL nextElement( ) virtual css::uno::Any SAL_CALL nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL disposing(const starlang::EventObject& aEvent) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private: private:
COMPHELPER_DLLPRIVATE void impl_startDisposeListening(); COMPHELPER_DLLPRIVATE void impl_startDisposeListening();
...@@ -87,7 +86,7 @@ private: ...@@ -87,7 +86,7 @@ private:
*/ */
class COMPHELPER_DLLPUBLIC OEnumerationByIndex : private OEnumerationLock class COMPHELPER_DLLPUBLIC OEnumerationByIndex : private OEnumerationLock
, public ::cppu::WeakImplHelper2< starcontainer::XEnumeration , , public ::cppu::WeakImplHelper2< starcontainer::XEnumeration ,
starlang::XEventListener > css::lang::XEventListener >
{ {
sal_Int32 m_nPos; sal_Int32 m_nPos;
css::uno::Reference< starcontainer::XIndexAccess > m_xAccess; css::uno::Reference< starcontainer::XIndexAccess > m_xAccess;
...@@ -99,9 +98,9 @@ public: ...@@ -99,9 +98,9 @@ public:
virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL nextElement( ) virtual css::uno::Any SAL_CALL nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL disposing(const starlang::EventObject& aEvent) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private: private:
COMPHELPER_DLLPRIVATE void impl_startDisposeListening(); COMPHELPER_DLLPRIVATE void impl_startDisposeListening();
...@@ -127,7 +126,7 @@ public: ...@@ -127,7 +126,7 @@ public:
virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasMoreElements( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL nextElement( ) virtual css::uno::Any SAL_CALL nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(starcontainer::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
......
...@@ -30,7 +30,6 @@ namespace comphelper ...@@ -30,7 +30,6 @@ namespace comphelper
{ {
namespace starlang = ::com::sun::star::lang;
namespace starutil = ::com::sun::star::util; namespace starutil = ::com::sun::star::util;
/// returns the ::com::sun::star::util::NumberFormat of the given key under the given formats /// returns the ::com::sun::star::util::NumberFormat of the given key under the given formats
...@@ -47,7 +46,7 @@ namespace comphelper ...@@ -47,7 +46,7 @@ namespace comphelper
sal_Int32 getStandardFormat( sal_Int32 getStandardFormat(
const css::uno::Reference<starutil::XNumberFormatter>& xFormatter, const css::uno::Reference<starutil::XNumberFormatter>& xFormatter,
sal_Int16 nType, sal_Int16 nType,
const starlang::Locale& _rLocale); const css::lang::Locale& _rLocale);
/** retrieves a the value of a given property for a given format key, relating to a given formatter /** retrieves a the value of a given property for a given format key, relating to a given formatter
*/ */
......
...@@ -38,7 +38,6 @@ namespace com { namespace sun { namespace star { namespace awt { ...@@ -38,7 +38,6 @@ namespace com { namespace sun { namespace star { namespace awt {
namespace comphelper namespace comphelper
{ {
namespace starawt = ::com::sun::star::awt; namespace starawt = ::com::sun::star::awt;
namespace starlang = ::com::sun::star::lang;
typedef css::uno::Reference< css::uno::XInterface > InterfaceRef; typedef css::uno::Reference< css::uno::XInterface > InterfaceRef;
typedef css::uno::Sequence< OUString > StringSequence; typedef css::uno::Sequence< OUString > StringSequence;
...@@ -105,7 +104,7 @@ namespace comphelper ...@@ -105,7 +104,7 @@ namespace comphelper
template <class TYPE> template <class TYPE>
void disposeComponent(css::uno::Reference<TYPE>& _rxComp) void disposeComponent(css::uno::Reference<TYPE>& _rxComp)
{ {
css::uno::Reference<starlang::XComponent> xComp(_rxComp, css::uno::UNO_QUERY); css::uno::Reference<css::lang::XComponent> xComp(_rxComp, css::uno::UNO_QUERY);
if (xComp.is()) if (xComp.is())
{ {
xComp->dispose(); xComp->dispose();
...@@ -117,7 +116,7 @@ namespace comphelper ...@@ -117,7 +116,7 @@ namespace comphelper
bool getImplementation(TYPE*& _pObject, const css::uno::Reference< css::uno::XInterface >& _rxIFace) bool getImplementation(TYPE*& _pObject, const css::uno::Reference< css::uno::XInterface >& _rxIFace)
{ {
_pObject = NULL; _pObject = NULL;
css::uno::Reference< starlang::XUnoTunnel > xTunnel(_rxIFace, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XUnoTunnel > xTunnel(_rxIFace, css::uno::UNO_QUERY);
if (xTunnel.is()) if (xTunnel.is())
_pObject = reinterpret_cast< TYPE* >(xTunnel->getSomething(TYPE::getUnoTunnelImplementationId())); _pObject = reinterpret_cast< TYPE* >(xTunnel->getSomething(TYPE::getUnoTunnelImplementationId()));
...@@ -152,7 +151,7 @@ namespace comphelper ...@@ -152,7 +151,7 @@ namespace comphelper
COMPHELPER_DLLPUBLIC OUString getString(const css::uno::Any& _rAny); COMPHELPER_DLLPUBLIC OUString getString(const css::uno::Any& _rAny);
COMPHELPER_DLLPUBLIC bool getBOOL(const css::uno::Any& _rAny); COMPHELPER_DLLPUBLIC bool getBOOL(const css::uno::Any& _rAny);
COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const css::uno::Any& _rAny) throw(starlang::IllegalArgumentException); COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const css::uno::Any& _rAny) throw(css::lang::IllegalArgumentException);
//= replacement of some former UsrAny.setXXX methods - can be used with rvalues //= replacement of some former UsrAny.setXXX methods - can be used with rvalues
inline void setBOOL(css::uno::Any& _rAny, bool _b) inline void setBOOL(css::uno::Any& _rAny, bool _b)
......
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