2011-08-04 15:39:25 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-02 14:13:40 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2013-10-23 19:15:52 +02:00
|
|
|
#ifndef INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
|
|
|
|
#define INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2010-08-12 17:36:53 +02:00
|
|
|
#include <toolkit/controls/controlmodelcontainerbase.hxx>
|
2013-05-27 11:24:12 +02:00
|
|
|
#include <com/sun/star/awt/UnoControlDialog.hpp>
|
2003-03-27 16:05:12 +00:00
|
|
|
#include <com/sun/star/awt/XTopWindow.hpp>
|
2011-02-21 13:10:28 +01:00
|
|
|
#include <com/sun/star/awt/XDialog2.hpp>
|
2011-03-23 17:24:48 +00:00
|
|
|
#include <com/sun/star/awt/XSimpleTabController.hpp>
|
2007-01-02 14:33:54 +00:00
|
|
|
#include <com/sun/star/resource/XStringResourceResolver.hpp>
|
2012-02-13 14:19:22 +00:00
|
|
|
#include <com/sun/star/graphic/XGraphicObject.hpp>
|
2013-11-09 15:38:04 -06:00
|
|
|
#include <toolkit/helper/servicenames.hxx>
|
|
|
|
#include <toolkit/helper/macros.hxx>
|
2003-03-27 16:05:12 +00:00
|
|
|
#include <toolkit/controls/unocontrolcontainer.hxx>
|
2007-01-02 14:33:54 +00:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2013-05-27 11:24:12 +02:00
|
|
|
#include <cppuhelper/implbase2.hxx>
|
2011-02-21 13:10:28 +01:00
|
|
|
#include <cppuhelper/implbase3.hxx>
|
2003-03-27 16:05:12 +00:00
|
|
|
#include <list>
|
|
|
|
|
2013-05-27 11:24:12 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper2 < ControlContainerBase
|
2015-10-23 09:07:12 +02:00
|
|
|
, css::awt::XUnoControlDialog
|
|
|
|
, css::awt::XWindowListener
|
2011-02-21 13:10:28 +01:00
|
|
|
> UnoDialogControl_Base;
|
|
|
|
class UnoDialogControl : public UnoDialogControl_Base
|
2003-03-27 16:05:12 +00:00
|
|
|
{
|
|
|
|
private:
|
2015-10-23 09:07:12 +02:00
|
|
|
css::uno::Reference< css::awt::XMenuBar > mxMenuBar;
|
2007-01-02 14:33:54 +00:00
|
|
|
TopWindowListenerMultiplexer maTopWindowListeners;
|
2007-07-18 07:43:25 +00:00
|
|
|
bool mbWindowListener;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoDialogControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoDialogControl() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
OUString GetComponentServiceName() override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL disposing( const css::lang::EventObject& Source ) throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL dispose() throw(css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::awt::XTopWindow
|
|
|
|
void SAL_CALL addTopWindowListener( const css::uno::Reference< css::awt::XTopWindowListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL removeTopWindowListener( const css::uno::Reference< css::awt::XTopWindowListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL toFront( ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL toBack( ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL setMenuBar( const css::uno::Reference< css::awt::XMenuBar >& xMenu ) throw (css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::awt::XWindowListener
|
|
|
|
virtual void SAL_CALL windowResized( const css::awt::WindowEvent& e ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL windowMoved( const css::awt::WindowEvent& e ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL windowShown( const css::lang::EventObject& e ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL windowHidden( const css::lang::EventObject& e ) throw (css::uno::RuntimeException, std::exception) override;
|
2007-07-18 07:43:25 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::awt::XDialog2
|
|
|
|
virtual void SAL_CALL endDialog( ::sal_Int32 Result ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL setHelpId( const OUString& Id ) throw (css::uno::RuntimeException, std::exception) override;
|
2011-02-21 13:10:28 +01:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::awt::XDialog
|
|
|
|
void SAL_CALL setTitle( const OUString& Title ) throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
OUString SAL_CALL getTitle() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
sal_Int16 SAL_CALL execute() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL endExecute() throw(css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::awt::XControl
|
|
|
|
sal_Bool SAL_CALL setModel( const css::uno::Reference< css::awt::XControlModel >& Model ) throw(css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2007-01-02 14:33:54 +00:00
|
|
|
// XModifyListener
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException, std::exception) override;
|
2007-01-02 14:33:54 +00:00
|
|
|
|
2013-05-27 11:24:12 +02:00
|
|
|
// resolve some ambigous methods
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Reference<css::awt::XWindowPeer> SAL_CALL getPeer() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getPeer(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addWindowListener(const css::uno::Reference<css::awt::XWindowListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addWindowListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Reference<css::awt::XControlModel> SAL_CALL getModel() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getModel(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addEventListener(const css::uno::Reference<css::lang::XEventListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addEventListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeEventListener(const css::uno::Reference<css::lang::XEventListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeEventListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setContext(const css::uno::Reference<css::uno::XInterface>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setContext(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Reference<css::uno::XInterface> SAL_CALL getContext() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getContext(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Reference<css::awt::XView> SAL_CALL getView() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getView(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setDesignMode(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setDesignMode(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual sal_Bool SAL_CALL isDesignMode() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::isDesignMode(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual sal_Bool SAL_CALL isTransparent() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::isTransparent(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setPosSize(sal_Int32 p1, sal_Int32 p2, sal_Int32 p3, sal_Int32 p4, sal_Int16 p5) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setPosSize(p1, p2, p3, p4, p5); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::awt::Rectangle SAL_CALL getPosSize() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getPosSize(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setVisible(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setVisible(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setEnable(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setEnable(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setFocus() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setFocus(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeWindowListener(const css::uno::Reference<css::awt::XWindowListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeWindowListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addFocusListener(const css::uno::Reference<css::awt::XFocusListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addFocusListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeFocusListener(const css::uno::Reference<css::awt::XFocusListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeFocusListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addKeyListener(const css::uno::Reference<css::awt::XKeyListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addKeyListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeKeyListener(const css::uno::Reference<css::awt::XKeyListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeKeyListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addMouseListener(const css::uno::Reference<css::awt::XMouseListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addMouseListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeMouseListener(const css::uno::Reference<css::awt::XMouseListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeMouseListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addMouseMotionListener(const css::uno::Reference<css::awt::XMouseMotionListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addMouseMotionListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeMouseMotionListener(const css::uno::Reference<css::awt::XMouseMotionListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeMouseMotionListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addPaintListener(const css::uno::Reference<css::awt::XPaintListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addPaintListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removePaintListener(const css::uno::Reference<css::awt::XPaintListener>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removePaintListener(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL setStatusText(const rtl::OUString& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setStatusText(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Sequence<css::uno::Reference<css::awt::XControl> > SAL_CALL getControls() throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getControls(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Reference<css::awt::XControl> SAL_CALL getControl(const rtl::OUString& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getControl(p1); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL addControl(const rtl::OUString& p1, const css::uno::Reference<css::awt::XControl>& p2) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addControl(p1, p2); }
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL removeControl(const css::uno::Reference<css::awt::XControl>& p1) throw (css::uno::RuntimeException, std::exception) override
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeControl(p1); }
|
|
|
|
|
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::lang::XServiceInfo
|
2015-03-17 12:25:11 +01:00
|
|
|
OUString SAL_CALL getImplementationName()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) override;
|
2015-03-17 12:25:11 +01:00
|
|
|
|
|
|
|
sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
|
2015-10-12 16:04:04 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) override;
|
2015-03-17 12:25:11 +01:00
|
|
|
|
|
|
|
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2004-11-16 09:00:32 +00:00
|
|
|
protected:
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void PrepareWindowDescriptor( css::awt::WindowDescriptor& rDesc ) override;
|
2015-11-06 09:26:51 +00:00
|
|
|
virtual void ImplModelPropertiesChanged( const css::uno::Sequence< css::beans::PropertyChangeEvent >& rEvents ) throw(css::uno::RuntimeException, std::exception) override;
|
2003-03-27 16:05:12 +00:00
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
2011-03-23 17:24:48 +00:00
|
|
|
class UnoMultiPageModel : public ControlModelContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoMultiPageModel( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoMultiPageModel() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoMultiPageModel( const UnoMultiPageModel& rModel );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
UnoControlModel* Clone() const override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageModel, ControlModelContainerBase, "com.sun.star.awt.UnoMultiPageModel" )
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XNamedContainer
|
2015-10-23 09:07:12 +02:00
|
|
|
void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement ) throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// Override the method of parent Class
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual sal_Bool SAL_CALL getGroupControl( ) throw (css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
protected:
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
|
2015-10-12 16:04:04 +02:00
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class UnoMultiPageControl : public ControlContainerBase
|
2015-10-23 09:07:12 +02:00
|
|
|
,public css::awt::XSimpleTabController
|
|
|
|
,public css::awt::XTabListener
|
2011-03-23 17:24:48 +00:00
|
|
|
{
|
|
|
|
TabListenerMultiplexer maTabListeners;
|
2015-10-23 09:07:12 +02:00
|
|
|
void bindPage( const css::uno::Reference< css::awt::XControl >& _rxControl );
|
2011-03-23 17:24:48 +00:00
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoMultiPageControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoMultiPageControl() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
OUString GetComponentServiceName() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::lang::XServiceInfo
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageControl, ControlContainerBase, "com.sun.star.awt.UnoControlMultiPage" )
|
2015-10-23 09:07:12 +02:00
|
|
|
css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException) override { return ControlContainerBase::queryInterface(rType); }
|
|
|
|
css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) throw(css::uno::RuntimeException) override;
|
2015-10-12 16:04:04 +02:00
|
|
|
void SAL_CALL acquire() throw() override { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() override { OWeakAggObject::release(); }
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::lang::XTypeProvider
|
|
|
|
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
// css::awt::XSimpleTabController
|
|
|
|
virtual ::sal_Int32 SAL_CALL insertTab() throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL removeTab( ::sal_Int32 ID ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
|
|
|
|
|
|
|
|
virtual void SAL_CALL setTabProps( ::sal_Int32 ID, const css::uno::Sequence< css::beans::NamedValue >& Properties ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL getTabProps( ::sal_Int32 ID ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
|
|
|
|
|
|
|
|
virtual void SAL_CALL activateTab( ::sal_Int32 ID ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual ::sal_Int32 SAL_CALL getActiveTabID() throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
|
|
|
|
virtual void SAL_CALL addTabListener( const css::uno::Reference< css::awt::XTabListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL removeTabListener( const css::uno::Reference< css::awt::XTabListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XTabListener
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void SAL_CALL inserted( ::sal_Int32 ID ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL removed( ::sal_Int32 ID ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL changed( ::sal_Int32 ID, const css::uno::Sequence< css::beans::NamedValue >& Properties ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL activated( ::sal_Int32 ID ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL deactivated( ::sal_Int32 ID ) throw (css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual void SAL_CALL disposing( const css::lang::EventObject& evt ) throw (css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XComponent
|
2015-10-23 09:07:12 +02:00
|
|
|
void SAL_CALL dispose( ) throw(css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void impl_createControlPeerIfNecessary(
|
2015-10-23 09:07:12 +02:00
|
|
|
const css::uno::Reference< css::awt::XControl >& _rxControl
|
2015-10-12 16:04:04 +02:00
|
|
|
) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class UnoPageModel : public ControlModelContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoPageModel( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoPageModel() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoPageModel( const UnoPageModel& rModel );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
UnoControlModel* Clone() const override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoPageModel, ControlModelContainerBase, "com.sun.star.awt.UnoPageModel" )
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// Override the method of parent Class
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual sal_Bool SAL_CALL getGroupControl( ) throw (css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
protected:
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
|
2015-10-12 16:04:04 +02:00
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class UnoPageControl : public ControlContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoPageControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoPageControl() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
OUString GetComponentServiceName() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::lang::XServiceInfo
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoPageControl, ControlContainerBase, "com.sun.star.awt.UnoControlPage" )
|
2011-03-23 17:24:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class UnoFrameModel : public ControlModelContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoFrameModel( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoFrameModel() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoFrameModel( const UnoFrameModel& rModel );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
UnoControlModel* Clone() const override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFrameModel, ControlModelContainerBase, "com.sun.star.awt.UnoFrameModel" )
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(css::uno::RuntimeException, std::exception) override;
|
|
|
|
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( css::uno::RuntimeException, std::exception) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
protected:
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
|
2015-10-12 16:04:04 +02:00
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class UnoFrameControl : public ControlContainerBase
|
|
|
|
{
|
|
|
|
protected:
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void ImplSetPosSize( css::uno::Reference< css::awt::XControl >& rxCtrl ) override;
|
2011-03-23 17:24:48 +00:00
|
|
|
public:
|
2015-10-23 09:07:12 +02:00
|
|
|
UnoFrameControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~UnoFrameControl() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
OUString GetComponentServiceName() override;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
// css::lang::XServiceInfo
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFrameControl, ControlContainerBase, "com.sun.star.awt.UnoControlFrame" )
|
2011-03-23 17:24:48 +00:00
|
|
|
};
|
|
|
|
|
2013-10-23 19:15:52 +02:00
|
|
|
#endif // INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
|
2011-08-04 15:39:25 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|