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
|
|
|
|
, ::com::sun::star::awt::XUnoControlDialog
|
2011-02-21 13:10:28 +01:00
|
|
|
, ::com::sun::star::awt::XWindowListener
|
|
|
|
> UnoDialogControl_Base;
|
|
|
|
class UnoDialogControl : public UnoDialogControl_Base
|
2003-03-27 16:05:12 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::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:
|
|
|
|
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoDialogControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoDialogControl();
|
2014-03-26 16:37:00 +01:00
|
|
|
OUString GetComponentServiceName() SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::awt::XTopWindow
|
2014-03-26 16:37:00 +01:00
|
|
|
void SAL_CALL addTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL removeTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL toFront( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL toBack( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL setMenuBar( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar >& xMenu ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2007-07-18 07:43:25 +00:00
|
|
|
// ::com::sun::star::awt::XWindowListener
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL windowResized( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL windowMoved( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL windowShown( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL windowHidden( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2007-07-18 07:43:25 +00:00
|
|
|
|
2011-02-21 13:10:28 +01:00
|
|
|
// ::com::sun::star::awt::XDialog2
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL endDialog( ::sal_Int32 Result ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL setHelpId( const OUString& Id ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-02-21 13:10:28 +01:00
|
|
|
|
2007-07-18 07:43:25 +00:00
|
|
|
// ::com::sun::star::awt::XDialog
|
2014-03-26 16:37:00 +01:00
|
|
|
void SAL_CALL setTitle( const OUString& Title ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
OUString SAL_CALL getTitle() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
sal_Int16 SAL_CALL execute() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
2014-03-26 16:37:00 +01:00
|
|
|
sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2007-01-02 14:33:54 +00:00
|
|
|
// XModifyListener
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2007-01-02 14:33:54 +00:00
|
|
|
|
2013-05-27 11:24:12 +02:00
|
|
|
// resolve some ambigous methods
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Reference<com::sun::star::awt::XWindowPeer> SAL_CALL getPeer() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getPeer(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addWindowListener(const com::sun::star::uno::Reference<com::sun::star::awt::XWindowListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addWindowListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> SAL_CALL getModel() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getModel(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addEventListener(const com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addEventListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeEventListener(const com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeEventListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setContext(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setContext(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL getContext() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getContext(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Reference<com::sun::star::awt::XView> SAL_CALL getView() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getView(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setDesignMode(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setDesignMode(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL isDesignMode() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::isDesignMode(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL isTransparent() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::isTransparent(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setPosSize(sal_Int32 p1, sal_Int32 p2, sal_Int32 p3, sal_Int32 p4, sal_Int16 p5) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setPosSize(p1, p2, p3, p4, p5); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::awt::Rectangle SAL_CALL getPosSize() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getPosSize(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setVisible(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setVisible(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setEnable(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setEnable(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setFocus() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setFocus(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeWindowListener(const com::sun::star::uno::Reference<com::sun::star::awt::XWindowListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeWindowListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addFocusListener(const com::sun::star::uno::Reference<com::sun::star::awt::XFocusListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addFocusListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeFocusListener(const com::sun::star::uno::Reference<com::sun::star::awt::XFocusListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeFocusListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addKeyListener(const com::sun::star::uno::Reference<com::sun::star::awt::XKeyListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addKeyListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeKeyListener(const com::sun::star::uno::Reference<com::sun::star::awt::XKeyListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeKeyListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addMouseListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addMouseListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeMouseListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeMouseListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addMouseMotionListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseMotionListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addMouseMotionListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeMouseMotionListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseMotionListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeMouseMotionListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addPaintListener(const com::sun::star::uno::Reference<com::sun::star::awt::XPaintListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addPaintListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removePaintListener(const com::sun::star::uno::Reference<com::sun::star::awt::XPaintListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removePaintListener(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setStatusText(const rtl::OUString& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::setStatusText(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::awt::XControl> > SAL_CALL getControls() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getControls(); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual com::sun::star::uno::Reference<com::sun::star::awt::XControl> SAL_CALL getControl(const rtl::OUString& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ return UnoDialogControl_Base::ControlContainerBase::getControl(p1); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addControl(const rtl::OUString& p1, const com::sun::star::uno::Reference<com::sun::star::awt::XControl>& p2) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::addControl(p1, p2); }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL removeControl(const com::sun::star::uno::Reference<com::sun::star::awt::XControl>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-05-27 11:24:12 +02:00
|
|
|
{ UnoDialogControl_Base::ControlContainerBase::removeControl(p1); }
|
|
|
|
|
|
|
|
|
2003-03-27 16:05:12 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2015-03-17 12:25:11 +01:00
|
|
|
OUString SAL_CALL getImplementationName()
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
|
|
|
|
sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
|
|
|
|
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
|
2004-11-16 09:00:32 +00:00
|
|
|
protected:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc ) SAL_OVERRIDE;
|
|
|
|
virtual void ImplModelPropertiesChanged( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& rEvents ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2003-03-27 16:05:12 +00:00
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
2011-03-23 17:24:48 +00:00
|
|
|
class UnoMultiPageModel : public ControlModelContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoMultiPageModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoMultiPageModel();
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoMultiPageModel( const UnoMultiPageModel& rModel );
|
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
UnoControlModel* Clone() const SAL_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
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XNamedContainer
|
2014-03-26 16:37:00 +01:00
|
|
|
void SAL_CALL insertByName( const OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// Override the method of parent Class
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL getGroupControl( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
protected:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class UnoMultiPageControl : public ControlContainerBase
|
|
|
|
,public ::com::sun::star::awt::XSimpleTabController
|
|
|
|
,public ::com::sun::star::awt::XTabListener
|
|
|
|
{
|
|
|
|
TabListenerMultiplexer maTabListeners;
|
|
|
|
void bindPage( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl );
|
|
|
|
public:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoMultiPageControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoMultiPageControl();
|
2014-03-26 16:37:00 +01:00
|
|
|
OUString GetComponentServiceName() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2014-12-12 12:23:58 +01:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageControl, ControlContainerBase, "com.sun.star.awt.UnoControlMultiPage" )
|
2014-03-26 16:37:00 +01:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE { return ControlContainerBase::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() SAL_OVERRIDE { OWeakAggObject::release(); }
|
2011-03-23 17:24:48 +00:00
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
2014-03-26 16:37:00 +01:00
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
// com::sun::star::awt::XSimpleTabController
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual ::sal_Int32 SAL_CALL insertTab() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL removeTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setTabProps( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > SAL_CALL getTabProps( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL activateTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::sal_Int32 SAL_CALL getActiveTabID() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XTabListener
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL inserted( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL removed( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL changed( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL activated( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL deactivated( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& evt ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
// XComponent
|
2014-03-26 16:37:00 +01:00
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void impl_createControlPeerIfNecessary(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl
|
2014-03-26 16:37:00 +01:00
|
|
|
) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class UnoPageModel : public ControlModelContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoPageModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoPageModel();
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoPageModel( const UnoPageModel& rModel );
|
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
UnoControlModel* Clone() const SAL_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
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// Override the method of parent Class
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL getGroupControl( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
protected:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class UnoPageControl : public ControlContainerBase
|
|
|
|
{
|
|
|
|
public:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoPageControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoPageControl();
|
2014-03-26 16:37:00 +01:00
|
|
|
OUString GetComponentServiceName() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
// ::com::sun::star::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:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoFrameModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoFrameModel();
|
2011-03-23 17:24:48 +00:00
|
|
|
UnoFrameModel( const UnoFrameModel& rModel );
|
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
UnoControlModel* Clone() const SAL_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
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
protected:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class UnoFrameControl : public ControlContainerBase
|
|
|
|
{
|
|
|
|
protected:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void ImplSetPosSize( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& rxCtrl ) SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
public:
|
2013-01-07 11:05:58 +02:00
|
|
|
UnoFrameControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~UnoFrameControl();
|
2014-03-26 16:37:00 +01:00
|
|
|
OUString GetComponentServiceName() SAL_OVERRIDE;
|
2011-03-23 17:24:48 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::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: */
|