Kaydet (Commit) c504477e authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

com::sun::star->css in UnoControls/

and remove some noise comments

Change-Id: I290ec365b58fa1b21838a6faf84006434c3e7bbd
Reviewed-on: https://gerrit.libreoffice.org/19904Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 44daaebf
This diff is collapsed.
This diff is collapsed.
...@@ -718,7 +718,7 @@ const OUString BaseControl::impl_getStaticImplementationName() ...@@ -718,7 +718,7 @@ const OUString BaseControl::impl_getStaticImplementationName()
WindowDescriptor* BaseControl::impl_getWindowDescriptor( const Reference< XWindowPeer >& xParentPeer ) WindowDescriptor* BaseControl::impl_getWindowDescriptor( const Reference< XWindowPeer >& xParentPeer )
{ {
// - used from "createPeer()" to set the values of an ::com::sun::star::awt::WindowDescriptor !!! // - used from "createPeer()" to set the values of an css::awt::WindowDescriptor !!!
// - if you will change the descriptor-values, you must override this virtuell function // - if you will change the descriptor-values, you must override this virtuell function
// - the caller must release the memory for this dynamical descriptor !!! // - the caller must release the memory for this dynamical descriptor !!!
......
...@@ -312,7 +312,7 @@ sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedVa ...@@ -312,7 +312,7 @@ sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedVa
void FrameControl::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle , void FrameControl::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle ,
const Any& rValue ) const Any& rValue )
throw ( ::com::sun::star::uno::Exception, std::exception ) throw ( css::uno::Exception, std::exception )
{ {
// this method only set the value // this method only set the value
MutexGuard aGuard (m_aMutex); MutexGuard aGuard (m_aMutex);
......
...@@ -373,7 +373,7 @@ const OUString StatusIndicator::impl_getStaticImplementationName() ...@@ -373,7 +373,7 @@ const OUString StatusIndicator::impl_getStaticImplementationName()
WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Reference< XWindowPeer >& xParentPeer ) WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Reference< XWindowPeer >& xParentPeer )
{ {
// - used from "createPeer()" to set the values of an ::com::sun::star::awt::WindowDescriptor !!! // - used from "createPeer()" to set the values of an css::awt::WindowDescriptor !!!
// - if you will change the descriptor-values, you must override this virtuell function // - if you will change the descriptor-values, you must override this virtuell function
// - the caller must release the memory for this dynamical descriptor !!! // - the caller must release the memory for this dynamical descriptor !!!
......
...@@ -31,44 +31,14 @@ namespace unocontrols{ ...@@ -31,44 +31,14 @@ namespace unocontrols{
// class declaration OConnectionPointContainerHelper // class declaration OConnectionPointContainerHelper
class OConnectionPointContainerHelper : public ::com::sun::star::lang::XConnectionPointContainer class OConnectionPointContainerHelper : public css::lang::XConnectionPointContainer
, public ::cppu::OWeakObject , public ::cppu::OWeakObject
{ {
// public methods
public: public:
// construct/destruct
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
OConnectionPointContainerHelper( ::osl::Mutex& aMutex ); OConnectionPointContainerHelper( ::osl::Mutex& aMutex );
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ~OConnectionPointContainerHelper(); virtual ~OConnectionPointContainerHelper();
// XInterface // XInterface
...@@ -86,8 +56,8 @@ public: ...@@ -86,8 +56,8 @@ public:
@onerror A RuntimeException is thrown. @onerror A RuntimeException is thrown.
*/ */
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
/**_______________________________________________________________________________________________________ /**_______________________________________________________________________________________________________
@short increment refcount @short increment refcount
...@@ -109,74 +79,22 @@ public: ...@@ -109,74 +79,22 @@ public:
// XConnectionPointContainer // XConnectionPointContainer
/**_________________________________________________________________________________________________________ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getConnectionPointTypes()
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getConnectionPointTypes()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________ virtual css::uno::Reference< css::lang::XConnectionPoint > SAL_CALL queryConnectionPoint(
@short const css::uno::Type& aType
@descr ) throw( css::uno::RuntimeException, std::exception ) override;
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XConnectionPoint > SAL_CALL queryConnectionPoint(
const ::com::sun::star::uno::Type& aType
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL advise( virtual void SAL_CALL advise(
const ::com::sun::star::uno::Type& aType , const css::uno::Type& aType ,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener const css::uno::Reference< css::uno::XInterface >& xListener
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; ) throw( css::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL unadvise( virtual void SAL_CALL unadvise(
const ::com::sun::star::uno::Type& aType , const css::uno::Type& aType ,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener const css::uno::Reference< css::uno::XInterface >& xListener
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; ) throw( css::uno::RuntimeException, std::exception ) override;
// public but impl method! // public but impl method!
// Is necessary to get container member at OConnectionPoint-instance. // Is necessary to get container member at OConnectionPoint-instance.
...@@ -185,8 +103,6 @@ public: ...@@ -185,8 +103,6 @@ public:
::cppu::OMultiTypeInterfaceContainerHelper& impl_getMultiTypeContainer() { return m_aMultiTypeContainer; } ::cppu::OMultiTypeInterfaceContainerHelper& impl_getMultiTypeContainer() { return m_aMultiTypeContainer; }
// private variables
private: private:
::osl::Mutex& m_aSharedMutex; ::osl::Mutex& m_aSharedMutex;
......
...@@ -34,45 +34,15 @@ namespace unocontrols{ ...@@ -34,45 +34,15 @@ namespace unocontrols{
// class declaration OConnectionPointHelper // class declaration OConnectionPointHelper
class OConnectionPointHelper : public ::com::sun::star::lang::XConnectionPoint class OConnectionPointHelper : public css::lang::XConnectionPoint
, public ::cppu::OWeakObject , public ::cppu::OWeakObject
{ {
// public methods
public: public:
// construct/destruct
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
OConnectionPointHelper( ::osl::Mutex& aMutex , OConnectionPointHelper( ::osl::Mutex& aMutex ,
OConnectionPointContainerHelper* pContainerImplementation , OConnectionPointContainerHelper* pContainerImplementation ,
::com::sun::star::uno::Type aType ); css::uno::Type aType );
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ~OConnectionPointHelper(); virtual ~OConnectionPointHelper();
...@@ -91,8 +61,8 @@ public: ...@@ -91,8 +61,8 @@ public:
@onerror A RuntimeException is thrown. @onerror A RuntimeException is thrown.
*/ */
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
/**_______________________________________________________________________________________________________ /**_______________________________________________________________________________________________________
@short increment refcount @short increment refcount
...@@ -114,135 +84,40 @@ public: ...@@ -114,135 +84,40 @@ public:
// XConnectionPoint // XConnectionPoint
/**_________________________________________________________________________________________________________ virtual css::uno::Type SAL_CALL getConnectionType()
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Type SAL_CALL getConnectionType()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XConnectionPointContainer > SAL_CALL getConnectionPointContainer()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param virtual css::uno::Reference< css::lang::XConnectionPointContainer > SAL_CALL getConnectionPointContainer()
throw( css::uno::RuntimeException, std::exception ) override;
@return
@onerror
*/
virtual void SAL_CALL advise( virtual void SAL_CALL advise(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener const css::uno::Reference< css::uno::XInterface >& xListener
) throw ( ) throw (
::com::sun::star::lang::ListenerExistException, css::lang::ListenerExistException,
::com::sun::star::lang::InvalidListenerException , css::lang::InvalidListenerException ,
::com::sun::star::uno::RuntimeException, std::exception css::uno::RuntimeException, std::exception
) override; ) override;
/**_________________________________________________________________________________________________________ virtual void SAL_CALL unadvise( const css::uno::Reference< css::uno::XInterface >& xListener )
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL unadvise( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > SAL_CALL getConnections() virtual css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > SAL_CALL getConnections()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
// private methods
private: private:
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
bool impl_LockContainer(); bool impl_LockContainer();
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
void impl_UnlockContainer(); void impl_UnlockContainer();
// private variables
private: private:
::osl::Mutex& m_aSharedMutex; ::osl::Mutex& m_aSharedMutex;
::com::sun::star::uno::WeakReference< ::com::sun::star::lang::XConnectionPointContainer > m_oContainerWeakReference; // Reference to container-class!. Don't use Reference<...> css::uno::WeakReference< css::lang::XConnectionPointContainer > m_oContainerWeakReference; // Reference to container-class!. Don't use Reference<...>
// It is a ring-reference => and must be a wekreference! // It is a ring-reference => and must be a wekreference!
OConnectionPointContainerHelper* m_pContainerImplementation; OConnectionPointContainerHelper* m_pContainerImplementation;
::com::sun::star::uno::Type m_aInterfaceType; css::uno::Type m_aInterfaceType;
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xLock; css::uno::Reference< css::uno::XInterface > m_xLock;
}; // class OConnectionPointHelper }; // class OConnectionPointHelper
......
...@@ -43,64 +43,21 @@ namespace unocontrols{ ...@@ -43,64 +43,21 @@ namespace unocontrols{
#define PROGRESSBAR_LINECOLOR_BRIGHT TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white #define PROGRESSBAR_LINECOLOR_BRIGHT TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white
#define PROGRESSBAR_LINECOLOR_SHADOW TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black #define PROGRESSBAR_LINECOLOR_SHADOW TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black
class ProgressBar : public ::com::sun::star::awt::XControlModel class ProgressBar : public css::awt::XControlModel
, public ::com::sun::star::awt::XProgressBar , public css::awt::XProgressBar
, public BaseControl , public BaseControl
{ {
// public methods
public: public:
// construct/destruct ProgressBar( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
ProgressBar( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ~ProgressBar(); virtual ~ProgressBar();
// XInterface // XInterface
/**_________________________________________________________________________________________________________ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType )
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_______________________________________________________________________________________________________ /**_______________________________________________________________________________________________________
@short increment refcount @short increment refcount
...@@ -122,256 +79,70 @@ public: ...@@ -122,256 +79,70 @@ public:
// XTypeProvider // XTypeProvider
/**_________________________________________________________________________________________________________ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
// XAggregation // XAggregation
/**_________________________________________________________________________________________________________ css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType )
@short throw( css::uno::RuntimeException, std::exception ) override;
@descr
@seealso
@param
@return
@onerror
*/
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& aType )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
// XProgressBar // XProgressBar
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL setForegroundColor( sal_Int32 nColor ) virtual void SAL_CALL setForegroundColor( sal_Int32 nColor )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL setBackgroundColor( sal_Int32 nColor ) virtual void SAL_CALL setBackgroundColor( sal_Int32 nColor )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL setValue( sal_Int32 nValue ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param virtual void SAL_CALL setValue( sal_Int32 nValue ) throw( css::uno::RuntimeException, std::exception ) override;
@return
@onerror
*/
virtual void SAL_CALL setRange( virtual void SAL_CALL setRange(
sal_Int32 nMin , sal_Int32 nMin ,
sal_Int32 nMax sal_Int32 nMax
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; ) throw( css::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror virtual sal_Int32 SAL_CALL getValue() throw( css::uno::RuntimeException, std::exception ) override;
*/
virtual sal_Int32 SAL_CALL getValue() throw( ::com::sun::star::uno::RuntimeException, std::exception ) override;
// XWindow // XWindow
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void SAL_CALL setPosSize( virtual void SAL_CALL setPosSize(
sal_Int32 nX , sal_Int32 nX ,
sal_Int32 nY , sal_Int32 nY ,
sal_Int32 nWidth , sal_Int32 nWidth ,
sal_Int32 nHeight , sal_Int32 nHeight ,
sal_Int16 nFlags sal_Int16 nFlags
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; ) throw( css::uno::RuntimeException, std::exception ) override;
// XControl // XControl
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual sal_Bool SAL_CALL setModel( virtual sal_Bool SAL_CALL setModel(
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& xModel const css::uno::Reference< css::awt::XControlModel >& xModel
) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; ) throw( css::uno::RuntimeException, std::exception ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > SAL_CALL getModel() virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
// BaseControl // BaseControl
/**_________________________________________________________________________________________________________ static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames();
@short
@descr
@seealso
@param
@return
@onerror
*/
static const ::com::sun::star::uno::Sequence< OUString > impl_getStaticSupportedServiceNames();
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
static const OUString impl_getStaticImplementationName(); static const OUString impl_getStaticImplementationName();
// protected methods
protected: protected:
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
virtual void impl_paint( virtual void impl_paint(
sal_Int32 nX , sal_Int32 nX ,
sal_Int32 nY , sal_Int32 nY ,
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics const css::uno::Reference< css::awt::XGraphics >& xGraphics
) override; ) override;
/**_________________________________________________________________________________________________________
@short
@descr
@seealso
@param
@return
@onerror
*/
void impl_recalcRange(); void impl_recalcRange();
// private variables
private: private:
bool m_bHorizontal; // orientation for steps [true=horizontal/false=vertikal] bool m_bHorizontal; // orientation for steps [true=horizontal/false=vertikal]
::com::sun::star::awt::Size m_aBlockSize; // width and height of a block [>=0,0] css::awt::Size m_aBlockSize; // width and height of a block [>=0,0]
sal_Int32 m_nForegroundColor; // (alpha,r,g,b) sal_Int32 m_nForegroundColor; // (alpha,r,g,b)
sal_Int32 m_nBackgroundColor; // (alpha,r,g,b) sal_Int32 m_nBackgroundColor; // (alpha,r,g,b)
sal_Int32 m_nMinRange; // lowest value = 0% [long, <_nMaxRange] sal_Int32 m_nMinRange; // lowest value = 0% [long, <_nMaxRange]
......
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