Use cppuhelper::ImplInheritanceHelper for toolkit VCLX window classes
Change-Id: I102b49608b62b351d6a458b3fd56167b136b24e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143525 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
#include <com/sun/star/awt/XCheckBox.hpp>
|
||||
#include <com/sun/star/awt/XItemListListener.hpp>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <cppuhelper/weak.hxx>
|
||||
|
||||
#include <svl/numuno.hxx>
|
||||
#include <toolkit/awt/vclxwindow.hxx>
|
||||
@@ -131,9 +130,10 @@ public:
|
||||
|
||||
// class VCLXCheckBox
|
||||
|
||||
class TOOLKIT_DLLPUBLIC VCLXCheckBox final : public css::awt::XCheckBox,
|
||||
public css::awt::XButton,
|
||||
public VCLXGraphicControl
|
||||
class TOOLKIT_DLLPUBLIC VCLXCheckBox final : public cppu::ImplInheritanceHelper<
|
||||
VCLXGraphicControl,
|
||||
css::awt::XCheckBox,
|
||||
css::awt::XButton>
|
||||
{
|
||||
private:
|
||||
ActionListenerMultiplexer maActionListeners;
|
||||
@@ -146,15 +146,6 @@ private:
|
||||
public:
|
||||
VCLXCheckBox();
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::lang::XComponent
|
||||
void SAL_CALL dispose( ) override;
|
||||
@@ -188,9 +179,10 @@ public:
|
||||
|
||||
// class VCLXRadioButton
|
||||
|
||||
class TOOLKIT_DLLPUBLIC VCLXRadioButton final : public css::awt::XRadioButton,
|
||||
public css::awt::XButton,
|
||||
public VCLXGraphicControl
|
||||
class TOOLKIT_DLLPUBLIC VCLXRadioButton final : public cppu::ImplInheritanceHelper<
|
||||
VCLXGraphicControl,
|
||||
css::awt::XRadioButton,
|
||||
css::awt::XButton>
|
||||
{
|
||||
private:
|
||||
ItemListenerMultiplexer maItemListeners;
|
||||
@@ -204,15 +196,6 @@ private:
|
||||
public:
|
||||
VCLXRadioButton();
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::lang::XComponent
|
||||
void SAL_CALL dispose( ) override;
|
||||
|
||||
@@ -244,8 +227,7 @@ public:
|
||||
|
||||
// class VCLXFixedHyperlink
|
||||
class VCLXFixedHyperlink final :
|
||||
public css::awt::XFixedHyperlink,
|
||||
public VCLXWindow
|
||||
public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XFixedHyperlink>
|
||||
{
|
||||
private:
|
||||
ActionListenerMultiplexer maActionListeners;
|
||||
@@ -259,18 +241,9 @@ public:
|
||||
VCLXFixedHyperlink();
|
||||
virtual ~VCLXFixedHyperlink() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XComponent
|
||||
void SAL_CALL dispose( ) override;
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XFixedHyperlink
|
||||
void SAL_CALL setText( const OUString& Text ) override;
|
||||
OUString SAL_CALL getText( ) override;
|
||||
@@ -297,8 +270,7 @@ public:
|
||||
|
||||
// class VCLXFixedText
|
||||
|
||||
class VCLXFixedText final : public css::awt::XFixedText,
|
||||
public VCLXWindow
|
||||
class VCLXFixedText final : public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XFixedText>
|
||||
{
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override;
|
||||
|
||||
@@ -306,15 +278,6 @@ public:
|
||||
VCLXFixedText();
|
||||
virtual ~VCLXFixedText() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XFixedText
|
||||
void SAL_CALL setText( const OUString& Text ) override;
|
||||
OUString SAL_CALL getText( ) override;
|
||||
@@ -333,8 +296,8 @@ public:
|
||||
|
||||
// class VCLXScrollBar
|
||||
|
||||
class TOOLKIT_DLLPUBLIC VCLXScrollBar final : public css::awt::XScrollBar,
|
||||
public VCLXWindow
|
||||
class TOOLKIT_DLLPUBLIC VCLXScrollBar final :
|
||||
public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XScrollBar>
|
||||
{
|
||||
private:
|
||||
AdjustmentListenerMultiplexer maAdjustmentListeners;
|
||||
@@ -344,14 +307,6 @@ private:
|
||||
|
||||
public:
|
||||
VCLXScrollBar();
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::lang::XComponent
|
||||
@@ -396,10 +351,11 @@ public:
|
||||
|
||||
// class VCLXEdit
|
||||
|
||||
class SAL_DLLPUBLIC_RTTI VCLXEdit : public css::awt::XTextComponent,
|
||||
public css::awt::XTextEditField,
|
||||
public css::awt::XTextLayoutConstrains,
|
||||
public VCLXWindow
|
||||
class SAL_DLLPUBLIC_RTTI VCLXEdit : public cppu::ImplInheritanceHelper<
|
||||
VCLXWindow,
|
||||
css::awt::XTextComponent,
|
||||
css::awt::XTextEditField,
|
||||
css::awt::XTextLayoutConstrains>
|
||||
{
|
||||
private:
|
||||
TextListenerMultiplexer maTextListeners;
|
||||
@@ -414,15 +370,6 @@ public:
|
||||
|
||||
TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::lang::XComponent
|
||||
void SAL_CALL dispose( ) override;
|
||||
@@ -463,7 +410,7 @@ public:
|
||||
|
||||
|
||||
// class VCLXSpinField
|
||||
class VCLXSpinField : public css::awt::XSpinField, public VCLXEdit
|
||||
class VCLXSpinField : public cppu::ImplInheritanceHelper<VCLXEdit, css::awt::XSpinField>
|
||||
{
|
||||
private:
|
||||
SpinListenerMultiplexer maSpinListeners;
|
||||
@@ -474,15 +421,6 @@ protected:
|
||||
public:
|
||||
VCLXSpinField();
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::awt::XSpinField
|
||||
void SAL_CALL addSpinListener( const css::uno::Reference< css::awt::XSpinListener >& l ) override;
|
||||
@@ -542,21 +480,12 @@ protected:
|
||||
virtual void GetPropertyIds( std::vector< sal_uInt16 > &aIds ) override { return ImplGetPropertyIds( aIds ); }
|
||||
};
|
||||
|
||||
class TOOLKIT_DLLPUBLIC SVTXNumericField final : public css::awt::XNumericField, public SVTXFormattedField
|
||||
class TOOLKIT_DLLPUBLIC SVTXNumericField final : public cppu::ImplInheritanceHelper<SVTXFormattedField, css::awt::XNumericField>
|
||||
{
|
||||
public:
|
||||
SVTXNumericField();
|
||||
virtual ~SVTXNumericField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { SVTXFormattedField::acquire(); }
|
||||
void SAL_CALL release() noexcept override { SVTXFormattedField::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XNumericField
|
||||
void SAL_CALL setValue( double Value ) override;
|
||||
double SAL_CALL getValue( ) override;
|
||||
|
||||
@@ -21,27 +21,18 @@
|
||||
|
||||
#include <com/sun/star/awt/XVclContainer.hpp>
|
||||
#include <com/sun/star/awt/XVclContainerPeer.hpp>
|
||||
#include <cppuhelper/weak.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
|
||||
#include <toolkit/awt/vclxwindow.hxx>
|
||||
|
||||
class VCLXContainer : public css::awt::XVclContainer,
|
||||
public css::awt::XVclContainerPeer,
|
||||
public VCLXWindow
|
||||
class VCLXContainer : public cppu::ImplInheritanceHelper<VCLXWindow,
|
||||
css::awt::XVclContainer,
|
||||
css::awt::XVclContainerPeer>
|
||||
{
|
||||
public:
|
||||
VCLXContainer();
|
||||
virtual ~VCLXContainer() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XVclContainer
|
||||
void SAL_CALL addVclContainerListener( const css::uno::Reference< css::awt::XVclContainerListener >& l ) override;
|
||||
void SAL_CALL removeVclContainerListener( const css::uno::Reference< css::awt::XVclContainerListener >& l ) override;
|
||||
|
||||
@@ -21,26 +21,17 @@
|
||||
|
||||
|
||||
#include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
|
||||
#include <cppuhelper/weak.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
|
||||
#include <toolkit/awt/vclxwindow.hxx>
|
||||
|
||||
class VCLXSystemDependentWindow final : public css::awt::XSystemDependentWindowPeer,
|
||||
public VCLXWindow
|
||||
class VCLXSystemDependentWindow final :
|
||||
public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XSystemDependentWindowPeer>
|
||||
{
|
||||
public:
|
||||
VCLXSystemDependentWindow();
|
||||
virtual ~VCLXSystemDependentWindow() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XSystemDependentWindowPeer
|
||||
css::uno::Any SAL_CALL getWindowHandle( const css::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType ) override;
|
||||
};
|
||||
|
||||
@@ -22,34 +22,21 @@
|
||||
|
||||
#include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
|
||||
#include <com/sun/star/awt/XTopWindow2.hpp>
|
||||
#include <cppuhelper/weak.hxx>
|
||||
|
||||
#include <cppuhelper/implbase2.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
|
||||
#include <awt/vclxcontainer.hxx>
|
||||
|
||||
namespace com::sun::star::awt { class XMenuBar; }
|
||||
|
||||
typedef ::cppu::ImplHelper2 < css::awt::XTopWindow2, css::awt::XSystemDependentWindowPeer
|
||||
> VCLXTopWindow_XBase;
|
||||
|
||||
|
||||
class VCLXTopWindow: public VCLXTopWindow_XBase,
|
||||
public VCLXContainer
|
||||
class VCLXTopWindow: public cppu::ImplInheritanceHelper<
|
||||
VCLXContainer, css::awt::XTopWindow2, css::awt::XSystemDependentWindowPeer >
|
||||
{
|
||||
public:
|
||||
VCLXTopWindow();
|
||||
virtual ~VCLXTopWindow() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XSystemDependentWindowPeer
|
||||
css::uno::Any SAL_CALL getWindowHandle( const css::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType ) override;
|
||||
|
||||
|
||||
+25
-144
@@ -39,6 +39,7 @@
|
||||
#include <com/sun/star/util/Time.hpp>
|
||||
#include <com/sun/star/util/Date.hpp>
|
||||
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <tools/lineend.hxx>
|
||||
|
||||
#include <awt/vclxtopwindow.hxx>
|
||||
@@ -73,22 +74,13 @@ private:
|
||||
};
|
||||
|
||||
// class VCLXMessageBox
|
||||
class VCLXMessageBox final : public css::awt::XMessageBox,
|
||||
public VCLXTopWindow
|
||||
class VCLXMessageBox final :
|
||||
public cppu::ImplInheritanceHelper<VCLXTopWindow, css::awt::XMessageBox>
|
||||
{
|
||||
public:
|
||||
VCLXMessageBox();
|
||||
virtual ~VCLXMessageBox() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::awt::XMessageBox
|
||||
void SAL_CALL setCaptionText( const OUString& aText ) override;
|
||||
@@ -112,13 +104,6 @@ public:
|
||||
VCLXFrame();
|
||||
virtual ~VCLXFrame() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XView
|
||||
void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) override;
|
||||
|
||||
@@ -130,22 +115,12 @@ public:
|
||||
};
|
||||
|
||||
// class VCLXDialog
|
||||
class VCLXDialog final : public css::awt::XDialog2,
|
||||
public VCLXTopWindow
|
||||
class VCLXDialog final : public cppu::ImplInheritanceHelper<VCLXTopWindow, css::awt::XDialog2>
|
||||
{
|
||||
public:
|
||||
VCLXDialog();
|
||||
virtual ~VCLXDialog() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XDialog2
|
||||
virtual void SAL_CALL endDialog( ::sal_Int32 Result ) override;
|
||||
virtual void SAL_CALL setHelpId( const OUString& Id ) override;
|
||||
@@ -176,13 +151,6 @@ public:
|
||||
VCLXTabPage();
|
||||
virtual ~VCLXTabPage() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XView
|
||||
void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) override;
|
||||
|
||||
@@ -195,7 +163,8 @@ public:
|
||||
virtual void GetPropertyIds( std::vector< sal_uInt16 > &aIds ) override { return ImplGetPropertyIds( aIds ); }
|
||||
};
|
||||
|
||||
class VCLXMultiPage final : public css::awt::XSimpleTabController, public VCLXContainer
|
||||
class VCLXMultiPage final :
|
||||
public cppu::ImplInheritanceHelper<VCLXContainer, css::awt::XSimpleTabController>
|
||||
{
|
||||
TabListenerMultiplexer maTabListeners;
|
||||
sal_Int32 mTabId;
|
||||
@@ -205,14 +174,6 @@ public:
|
||||
VCLXMultiPage();
|
||||
virtual ~VCLXMultiPage() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::lang::XComponent
|
||||
void SAL_CALL dispose( ) override;
|
||||
|
||||
@@ -242,10 +203,11 @@ public:
|
||||
virtual void GetPropertyIds( std::vector< sal_uInt16 > &aIds ) override { return ImplGetPropertyIds( aIds ); }
|
||||
};
|
||||
|
||||
class VCLXMultiLineEdit final : public css::awt::XTextComponent,
|
||||
public css::awt::XTextArea,
|
||||
public css::awt::XTextLayoutConstrains,
|
||||
public VCLXWindow
|
||||
class VCLXMultiLineEdit final : public cppu::ImplInheritanceHelper<
|
||||
VCLXWindow,
|
||||
css::awt::XTextComponent,
|
||||
css::awt::XTextArea,
|
||||
css::awt::XTextLayoutConstrains>
|
||||
{
|
||||
private:
|
||||
TextListenerMultiplexer maTextListeners;
|
||||
@@ -257,15 +219,6 @@ public:
|
||||
VCLXMultiLineEdit();
|
||||
virtual ~VCLXMultiLineEdit() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { VCLXWindow::acquire(); }
|
||||
void SAL_CALL release() noexcept override { VCLXWindow::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XTextComponent
|
||||
void SAL_CALL addTextListener( const css::uno::Reference< css::awt::XTextListener >& l ) override;
|
||||
void SAL_CALL removeTextListener( const css::uno::Reference< css::awt::XTextListener >& l ) override;
|
||||
@@ -304,8 +257,7 @@ public:
|
||||
};
|
||||
|
||||
// class VCLXProgressBar
|
||||
class VCLXProgressBar final : public css::awt::XProgressBar
|
||||
, public VCLXWindow
|
||||
class VCLXProgressBar final : public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XProgressBar>
|
||||
{
|
||||
private:
|
||||
sal_Int32 m_nValue;
|
||||
@@ -318,15 +270,6 @@ public:
|
||||
VCLXProgressBar();
|
||||
virtual ~VCLXProgressBar() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { VCLXWindow::acquire(); }
|
||||
void SAL_CALL release() noexcept override { VCLXWindow::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XProgressBar
|
||||
void SAL_CALL setForegroundColor( sal_Int32 nColor ) override;
|
||||
void SAL_CALL setBackgroundColor( sal_Int32 nColor ) override;
|
||||
@@ -372,8 +315,8 @@ public:
|
||||
|
||||
// class VCLXDateField
|
||||
|
||||
class VCLXDateField : public css::awt::XDateField,
|
||||
public VCLXFormattedSpinField
|
||||
class VCLXDateField :
|
||||
public cppu::ImplInheritanceHelper<VCLXFormattedSpinField, css::awt::XDateField>
|
||||
{
|
||||
protected:
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override;
|
||||
@@ -381,15 +324,6 @@ public:
|
||||
VCLXDateField();
|
||||
virtual ~VCLXDateField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::awt::XDateField
|
||||
void SAL_CALL setDate( const css::util::Date& Date ) override;
|
||||
@@ -420,23 +354,14 @@ public:
|
||||
|
||||
// class VCLXTimeField
|
||||
|
||||
class VCLXTimeField final : public css::awt::XTimeField,
|
||||
public VCLXFormattedSpinField
|
||||
class VCLXTimeField final :
|
||||
public cppu::ImplInheritanceHelper<VCLXFormattedSpinField, css::awt::XTimeField>
|
||||
{
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override;
|
||||
public:
|
||||
VCLXTimeField();
|
||||
virtual ~VCLXTimeField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XTimeField
|
||||
void SAL_CALL setTime( const css::util::Time& Time ) override;
|
||||
css::util::Time SAL_CALL getTime( ) override;
|
||||
@@ -464,22 +389,13 @@ public:
|
||||
|
||||
// class VCLXNumericField
|
||||
|
||||
class VCLXNumericField final : public css::awt::XNumericField,
|
||||
public VCLXFormattedSpinField
|
||||
class VCLXNumericField final :
|
||||
public cppu::ImplInheritanceHelper<VCLXFormattedSpinField, css::awt::XNumericField>
|
||||
{
|
||||
public:
|
||||
VCLXNumericField();
|
||||
virtual ~VCLXNumericField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XNumericField
|
||||
void SAL_CALL setValue( double Value ) override;
|
||||
double SAL_CALL getValue( ) override;
|
||||
@@ -511,8 +427,8 @@ public:
|
||||
|
||||
class MetricFormatter;
|
||||
class MetricField;
|
||||
class VCLXMetricField final : public css::awt::XMetricField,
|
||||
public VCLXFormattedSpinField
|
||||
class VCLXMetricField final :
|
||||
public cppu::ImplInheritanceHelper<VCLXFormattedSpinField, css::awt::XMetricField>
|
||||
{
|
||||
/// @throws css::uno::RuntimeException
|
||||
MetricFormatter *GetMetricFormatter();
|
||||
@@ -523,15 +439,6 @@ public:
|
||||
VCLXMetricField();
|
||||
virtual ~VCLXMetricField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XMetricField
|
||||
virtual void SAL_CALL setValue( ::sal_Int64 Value, ::sal_Int16 Unit ) override;
|
||||
virtual void SAL_CALL setUserValue( ::sal_Int64 Value, ::sal_Int16 Unit ) override;
|
||||
@@ -561,22 +468,13 @@ public:
|
||||
};
|
||||
|
||||
// class VCLXPatternField
|
||||
class VCLXPatternField final : public css::awt::XPatternField,
|
||||
public VCLXFormattedSpinField
|
||||
class VCLXPatternField final :
|
||||
public cppu::ImplInheritanceHelper<VCLXFormattedSpinField, css::awt::XPatternField>
|
||||
{
|
||||
public:
|
||||
VCLXPatternField();
|
||||
virtual ~VCLXPatternField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
|
||||
void SAL_CALL release() noexcept override { OWeakObject::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
|
||||
// css::awt::XPatternField
|
||||
void SAL_CALL setMasks( const OUString& EditMask, const OUString& LiteralMask ) override;
|
||||
@@ -595,7 +493,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class VCLXFileControl final : public css::awt::XTextComponent, public css::awt::XTextLayoutConstrains, public VCLXWindow
|
||||
class VCLXFileControl final : public cppu::ImplInheritanceHelper<VCLXWindow, css::awt::XTextComponent, css::awt::XTextLayoutConstrains>
|
||||
{
|
||||
DECL_LINK(ModifyHdl, Edit&, void);
|
||||
void ModifyHdl();
|
||||
@@ -607,15 +505,6 @@ public:
|
||||
|
||||
virtual void SetWindow( const VclPtr< vcl::Window > &pWindow ) override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { VCLXWindow::acquire(); }
|
||||
void SAL_CALL release() noexcept override { VCLXWindow::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XTextComponent
|
||||
void SAL_CALL addTextListener( const css::uno::Reference< css::awt::XTextListener >& l ) override;
|
||||
void SAL_CALL removeTextListener( const css::uno::Reference< css::awt::XTextListener >& l ) override;
|
||||
@@ -645,21 +534,13 @@ public:
|
||||
virtual void GetPropertyIds( std::vector< sal_uInt16 > &aIds ) override { return ImplGetPropertyIds( aIds ); }
|
||||
};
|
||||
|
||||
class SVTXCurrencyField final : public css::awt::XCurrencyField, public SVTXFormattedField
|
||||
class SVTXCurrencyField final :
|
||||
public cppu::ImplInheritanceHelper<SVTXFormattedField, css::awt::XCurrencyField>
|
||||
{
|
||||
public:
|
||||
SVTXCurrencyField();
|
||||
virtual ~SVTXCurrencyField() override;
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||
void SAL_CALL acquire() noexcept override { SVTXFormattedField::acquire(); }
|
||||
void SAL_CALL release() noexcept override { SVTXFormattedField::release(); }
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
|
||||
|
||||
// css::awt::XVclWindowPeer
|
||||
void SAL_CALL setProperty( const OUString& PropertyName, const css::uno::Any& Value ) override;
|
||||
css::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) override;
|
||||
|
||||
@@ -18,10 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <awt/vclxcontainer.hxx>
|
||||
#include <toolkit/helper/macros.hxx>
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <comphelper/interfacecontainer3.hxx>
|
||||
|
||||
#include <vcl/svapp.hxx>
|
||||
@@ -44,29 +41,6 @@ VCLXContainer::~VCLXContainer()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXContainer::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XVclContainer* >(this),
|
||||
static_cast< css::awt::XVclContainerPeer* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXContainer )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXContainer::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XVclContainer>::get(),
|
||||
cppu::UnoType<css::awt::XVclContainerPeer>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
|
||||
// css::awt::XVclContainer
|
||||
void VCLXContainer::addVclContainerListener( const css::uno::Reference< css::awt::XVclContainerListener >& rxListener )
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
#endif
|
||||
|
||||
#include <awt/vclxsystemdependentwindow.hxx>
|
||||
#include <toolkit/helper/macros.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
|
||||
#ifdef MACOSX
|
||||
#include <premac.h>
|
||||
@@ -48,27 +45,6 @@ VCLXSystemDependentWindow::~VCLXSystemDependentWindow()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXSystemDependentWindow::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XSystemDependentWindowPeer* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXSystemDependentWindow )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXSystemDependentWindow::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XSystemDependentWindowPeer>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Any VCLXSystemDependentWindow::getWindowHandle( const css::uno::Sequence< sal_Int8 >& /*ProcessId*/, sal_Int16 SystemType )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#endif
|
||||
|
||||
#include <vcl/sysdata.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <o3tl/safeint.hxx>
|
||||
|
||||
#include <awt/vclxtopwindow.hxx>
|
||||
@@ -227,28 +226,5 @@ VCLXTopWindow::~VCLXTopWindow()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXTopWindow::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet( VCLXTopWindow_XBase::queryInterface( rType ) );
|
||||
|
||||
if (!aRet.hasValue())
|
||||
aRet = VCLXTopWindow_XBase::queryInterface( rType );
|
||||
if ( !aRet.hasValue() )
|
||||
aRet = VCLXContainer::queryInterface( rType );
|
||||
|
||||
return aRet;
|
||||
}
|
||||
|
||||
css::uno::Sequence< sal_Int8 > VCLXTopWindow::getImplementationId()
|
||||
{
|
||||
return css::uno::Sequence<sal_Int8>();
|
||||
}
|
||||
|
||||
css::uno::Sequence< css::uno::Type > VCLXTopWindow::getTypes()
|
||||
{
|
||||
return ::comphelper::concatSequences( VCLXTopWindow_XBase::getTypes(), VCLXContainer::getTypes() );
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -24,11 +24,8 @@
|
||||
#include <com/sun/star/graphic/GraphicProvider.hpp>
|
||||
#include <com/sun/star/graphic/XGraphicProvider.hpp>
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <toolkit/helper/macros.hxx>
|
||||
#include <toolkit/helper/property.hxx>
|
||||
#include <toolkit/helper/convert.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <com/sun/star/awt/VisualEffect.hpp>
|
||||
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
|
||||
#include <com/sun/star/resource/XStringResourceResolver.hpp>
|
||||
@@ -782,29 +779,6 @@ VCLXCheckBox::VCLXCheckBox() : maActionListeners( *this ), maItemListeners( *th
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXCheckBox::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XButton* >(this),
|
||||
static_cast< css::awt::XCheckBox* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXGraphicControl::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXCheckBox )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXCheckBox::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XButton>::get(),
|
||||
cppu::UnoType<css::awt::XCheckBox>::get(),
|
||||
VCLXGraphicControl::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXCheckBox::CreateAccessibleContext()
|
||||
{
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
@@ -1089,29 +1063,6 @@ VCLXRadioButton::VCLXRadioButton() : maItemListeners( *this ), maActionListeners
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXRadioButton::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XRadioButton* >(this),
|
||||
static_cast< css::awt::XButton* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXGraphicControl::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXRadioButton )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXRadioButton::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XRadioButton>::get(),
|
||||
cppu::UnoType<css::awt::XButton>::get(),
|
||||
VCLXGraphicControl::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXRadioButton::CreateAccessibleContext()
|
||||
{
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
@@ -1356,27 +1307,6 @@ VCLXSpinField::VCLXSpinField() : maSpinListeners( *this )
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXSpinField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XSpinField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXEdit::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXSpinField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXSpinField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XSpinField>::get(),
|
||||
VCLXEdit::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXSpinField::addSpinListener( const css::uno::Reference< css::awt::XSpinListener > & l )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -2226,27 +2156,6 @@ VCLXMessageBox::~VCLXMessageBox()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXMessageBox::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XMessageBox* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXTopWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXMessageBox )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXMessageBox::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XMessageBox>::get(),
|
||||
VCLXTopWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXMessageBox::setCaptionText( const OUString& rText )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -2314,29 +2223,6 @@ VCLXDialog::~VCLXDialog()
|
||||
SAL_INFO("toolkit", __FUNCTION__);
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXDialog::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XDialog2* >(this),
|
||||
static_cast< css::awt::XDialog* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXTopWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXDialog )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXDialog::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XDialog2>::get(),
|
||||
cppu::UnoType<css::awt::XDialog>::get(),
|
||||
VCLXTopWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void SAL_CALL VCLXDialog::endDialog( ::sal_Int32 i_result )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -2521,13 +2407,6 @@ void SAL_CALL VCLXMultiPage::dispose()
|
||||
maTabListeners.disposeAndClear( aObj );
|
||||
VCLXContainer::dispose();
|
||||
}
|
||||
css::uno::Any SAL_CALL VCLXMultiPage::queryInterface(const css::uno::Type & rType )
|
||||
{
|
||||
uno::Any aRet = ::cppu::queryInterface( rType, static_cast< awt::XSimpleTabController*>( this ) );
|
||||
|
||||
return ( aRet.hasValue() ? aRet : VCLXContainer::queryInterface( rType ) );
|
||||
}
|
||||
IMPL_IMPLEMENTATION_ID( VCLXMultiPage )
|
||||
// css::awt::XView
|
||||
void SAL_CALL VCLXMultiPage::draw( sal_Int32 nX, sal_Int32 nY )
|
||||
{
|
||||
@@ -2771,8 +2650,6 @@ VCLXTabPage::~VCLXTabPage()
|
||||
{
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXTabPage )
|
||||
|
||||
// css::awt::XView
|
||||
void SAL_CALL VCLXTabPage::draw( sal_Int32 nX, sal_Int32 nY )
|
||||
{
|
||||
@@ -2865,14 +2742,6 @@ VCLXFixedHyperlink::~VCLXFixedHyperlink()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXFixedHyperlink::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XFixedHyperlink* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
void VCLXFixedHyperlink::dispose()
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -2883,19 +2752,6 @@ void VCLXFixedHyperlink::dispose()
|
||||
VCLXWindow::dispose();
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXFixedHyperlink )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXFixedHyperlink::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XFixedHyperlink>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXFixedHyperlink::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
|
||||
{
|
||||
switch ( rVclWindowEvent.GetId() )
|
||||
@@ -3167,27 +3023,6 @@ VCLXFixedText::~VCLXFixedText()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXFixedText::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XFixedText* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXFixedText )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXFixedText::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XFixedText>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXFixedText::CreateAccessibleContext()
|
||||
{
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
@@ -3315,27 +3150,6 @@ VCLXScrollBar::VCLXScrollBar() : maAdjustmentListeners( *this )
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXScrollBar::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XScrollBar* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXScrollBar )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXScrollBar::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XScrollBar>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXScrollBar::CreateAccessibleContext()
|
||||
{
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
@@ -3806,31 +3620,6 @@ VCLXEdit::VCLXEdit() : maTextListeners( *this )
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXEdit::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XTextComponent* >(this),
|
||||
static_cast< css::awt::XTextEditField* >(this),
|
||||
static_cast< css::awt::XTextLayoutConstrains* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXEdit )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXEdit::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XTextComponent>::get(),
|
||||
cppu::UnoType<css::awt::XTextEditField>::get(),
|
||||
cppu::UnoType<css::awt::XTextLayoutConstrains>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXEdit::CreateAccessibleContext()
|
||||
{
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
@@ -4839,27 +4628,6 @@ css::uno::Reference< css::accessibility::XAccessibleContext > VCLXDateField::Cre
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXDateField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XDateField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXFormattedSpinField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXDateField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXDateField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XDateField>::get(),
|
||||
VCLXFormattedSpinField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXDateField::setProperty( const OUString& PropertyName, const css::uno::Any& Value)
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -5194,27 +4962,6 @@ css::uno::Reference< css::accessibility::XAccessibleContext > VCLXTimeField::Cre
|
||||
return getAccessibleFactory().createAccessibleContext( this );
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXTimeField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XTimeField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXFormattedSpinField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXTimeField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXTimeField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XTimeField>::get(),
|
||||
VCLXFormattedSpinField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXTimeField::setTime( const util::Time& aTime )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -5501,27 +5248,6 @@ VCLXNumericField::~VCLXNumericField()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXNumericField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XNumericField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXFormattedSpinField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXNumericField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXNumericField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XNumericField>::get(),
|
||||
VCLXFormattedSpinField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXNumericField::setValue( double Value )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -5872,26 +5598,6 @@ MetricField *VCLXMetricField::GetMetricField()
|
||||
return pField;
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXMetricField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType, static_cast< css::awt::XMetricField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXFormattedSpinField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXMetricField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXMetricField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XMetricField>::get(),
|
||||
VCLXFormattedSpinField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
// FIXME: later ...
|
||||
#define MetricUnitUnoToVcl(a) (static_cast<FieldUnit>(a))
|
||||
|
||||
@@ -6114,27 +5820,6 @@ VCLXPatternField::~VCLXPatternField()
|
||||
{
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXPatternField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XPatternField* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXFormattedSpinField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXPatternField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXPatternField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XPatternField>::get(),
|
||||
VCLXFormattedSpinField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXPatternField::setMasks( const OUString& EditMask, const OUString& LiteralMask )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -6304,8 +5989,6 @@ VCLXFrame::~VCLXFrame()
|
||||
{
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXFrame )
|
||||
|
||||
// css::awt::XView
|
||||
void SAL_CALL VCLXFrame::draw( sal_Int32 nX, sal_Int32 nY )
|
||||
{
|
||||
@@ -6400,28 +6083,6 @@ void VCLXProgressBar::ImplUpdateValue()
|
||||
pProgressBar->SetValue( static_cast<sal_uInt16>(nPercent) );
|
||||
}
|
||||
|
||||
// css::uno::XInterface
|
||||
css::uno::Any VCLXProgressBar::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XProgressBar* >(this),
|
||||
static_cast< css::lang::XTypeProvider* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXProgressBar )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXProgressBar::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XProgressBar>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
// css::awt::XProgressBar
|
||||
void VCLXProgressBar::setForegroundColor( sal_Int32 nColor )
|
||||
{
|
||||
@@ -6595,29 +6256,6 @@ VCLXFileControl::~VCLXFileControl()
|
||||
pControl->GetEdit().SetModifyHdl( Link<Edit&,void>() );
|
||||
}
|
||||
|
||||
css::uno::Any VCLXFileControl::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XTextComponent* >(this),
|
||||
static_cast< css::awt::XTextLayoutConstrains* >(this),
|
||||
static_cast< css::lang::XTypeProvider* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXFileControl )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXFileControl::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XTextComponent>::get(),
|
||||
cppu::UnoType<css::awt::XTextLayoutConstrains>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
void lcl_setWinBits( vcl::Window* _pWindow, WinBits _nBits, bool _bSet )
|
||||
@@ -7454,27 +7092,6 @@ SVTXCurrencyField::~SVTXCurrencyField()
|
||||
{
|
||||
}
|
||||
|
||||
css::uno::Any SVTXCurrencyField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XCurrencyField* >(this),
|
||||
static_cast< css::lang::XTypeProvider* >(this) );
|
||||
return (aRet.hasValue() ? aRet : SVTXFormattedField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( SVTXCurrencyField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SVTXCurrencyField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XCurrencyField>::get(),
|
||||
SVTXFormattedField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void SVTXCurrencyField::setValue( double Value )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
@@ -7721,27 +7338,6 @@ SVTXNumericField::~SVTXNumericField()
|
||||
{
|
||||
}
|
||||
|
||||
css::uno::Any SVTXNumericField::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XNumericField* >(this),
|
||||
static_cast< css::lang::XTypeProvider* >(this) );
|
||||
return (aRet.hasValue() ? aRet : SVTXFormattedField::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( SVTXNumericField )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > SVTXNumericField::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XNumericField>::get(),
|
||||
SVTXFormattedField::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
|
||||
css::uno::Reference<accessibility::XAccessibleContext> SVTXNumericField::CreateAccessibleContext()
|
||||
{
|
||||
@@ -7941,31 +7537,6 @@ VCLXMultiLineEdit::~VCLXMultiLineEdit()
|
||||
{
|
||||
}
|
||||
|
||||
css::uno::Any VCLXMultiLineEdit::queryInterface( const css::uno::Type & rType )
|
||||
{
|
||||
css::uno::Any aRet = ::cppu::queryInterface( rType,
|
||||
static_cast< css::awt::XTextComponent* >(this),
|
||||
static_cast< css::awt::XTextArea* >(this),
|
||||
static_cast< css::awt::XTextLayoutConstrains* >(this),
|
||||
static_cast< css::lang::XTypeProvider* >(this) );
|
||||
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
|
||||
}
|
||||
|
||||
IMPL_IMPLEMENTATION_ID( VCLXMultiLineEdit )
|
||||
|
||||
// css::lang::XTypeProvider
|
||||
css::uno::Sequence< css::uno::Type > VCLXMultiLineEdit::getTypes()
|
||||
{
|
||||
static const ::cppu::OTypeCollection aTypeList(
|
||||
cppu::UnoType<css::lang::XTypeProvider>::get(),
|
||||
cppu::UnoType<css::awt::XTextComponent>::get(),
|
||||
cppu::UnoType<css::awt::XTextArea>::get(),
|
||||
cppu::UnoType<css::awt::XTextLayoutConstrains>::get(),
|
||||
VCLXWindow::getTypes()
|
||||
);
|
||||
return aTypeList.getTypes();
|
||||
}
|
||||
|
||||
void VCLXMultiLineEdit::addTextListener( const css::uno::Reference< css::awt::XTextListener > & l )
|
||||
{
|
||||
maTextListeners.addInterface( l );
|
||||
|
||||
Reference in New Issue
Block a user