fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sdext / source / minimizer / unodialog.hxx
blobe0e58abdd41d8da7113b0fcddea65ae3f5a195e4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
21 #define INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
23 #include <com/sun/star/uno/Sequence.h>
24 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
25 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
26 #include <com/sun/star/container/XIndexContainer.hpp>
27 #include <com/sun/star/frame/XController.hpp>
28 #include <com/sun/star/frame/XFrame.hpp>
29 #include <com/sun/star/script/XInvocation.hpp>
30 #include <com/sun/star/beans/XPropertySet.hpp>
31 #include <com/sun/star/beans/XMultiPropertySet.hpp>
32 #include <com/sun/star/awt/XControl.hpp>
33 #include <com/sun/star/awt/XControlModel.hpp>
34 #include <com/sun/star/container/XNameContainer.hpp>
35 #include <com/sun/star/container/XNameAccess.hpp>
36 #include <com/sun/star/uno/XComponentContext.hpp>
37 #include <com/sun/star/awt/XActionListener.hpp>
38 #include <com/sun/star/awt/XTextListener.hpp>
39 #include <com/sun/star/awt/XButton.hpp>
40 #include <com/sun/star/awt/XCheckBox.hpp>
41 #include <com/sun/star/awt/XComboBox.hpp>
42 #include <com/sun/star/awt/XTextComponent.hpp>
43 #include <com/sun/star/awt/XRadioButton.hpp>
44 #include <com/sun/star/awt/XListBox.hpp>
45 #include <com/sun/star/awt/XFixedText.hpp>
46 #include <com/sun/star/awt/XUnoControlDialog.hpp>
47 #include <com/sun/star/awt/XControlContainer.hpp>
48 #include <com/sun/star/awt/XReschedule.hpp>
49 #include <com/sun/star/awt/XDialog.hpp>
50 #include <com/sun/star/awt/Size.hpp>
51 #include <cppuhelper/implbase1.hxx>
52 #include <cppuhelper/implbase2.hxx>
53 #include <cppuhelper/implbase3.hxx>
56 // - UnoDialog -
61 class UnoDialog
63 public :
65 UnoDialog( const css::uno::Reference< css::uno::XComponentContext >& rxMSF, css::uno::Reference< css::frame::XFrame >& rxFrame );
66 ~UnoDialog();
68 void execute();
69 void endExecute( bool bStatus );
71 css::uno::Reference< css::awt::XWindowPeer > createWindowPeer( css::uno::Reference< css::awt::XWindowPeer > xParentPeer )
72 throw ( css::uno::Exception );
74 css::uno::Reference< css::uno::XInterface > insertControlModel( const OUString& rServiceName, const OUString& rName,
75 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
77 void setVisible( const OUString& rName, bool bVisible );
79 css::uno::Reference< css::awt::XButton > insertButton( const OUString& rName,
80 css::uno::Reference< css::awt::XActionListener > xActionListener, const css::uno::Sequence< OUString >& rPropertyNames,
81 const css::uno::Sequence< css::uno::Any >& rPropertyValues );
83 css::uno::Reference< css::awt::XFixedText > insertFixedText( const OUString& rName,
84 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
86 css::uno::Reference< css::awt::XCheckBox > insertCheckBox( const OUString& rName,
87 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
89 css::uno::Reference< css::awt::XControl > insertFormattedField( const OUString& rName,
90 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
92 css::uno::Reference< css::awt::XComboBox > insertComboBox( const OUString& rName,
93 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
95 css::uno::Reference< css::awt::XRadioButton > insertRadioButton( const OUString& rName,
96 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
98 css::uno::Reference< css::awt::XListBox > insertListBox( const OUString& rName,
99 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
101 css::uno::Reference< css::awt::XControl > insertImage( const OUString& rName,
102 const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues );
104 void setControlProperty( const OUString& rControlName, const OUString& rPropertyName, const css::uno::Any& rPropertyValue );
105 css::uno::Any getControlProperty( const OUString& rControlName, const OUString& rPropertyName );
107 void enableControl( const OUString& rControlName );
108 void disableControl( const OUString& rControlName );
110 css::uno::Reference< css::uno::XComponentContext > mxContext;
111 css::uno::Reference< css::frame::XController > mxController;
112 css::uno::Reference< css::awt::XReschedule > mxReschedule;
114 css::uno::Reference< css::uno::XInterface > mxDialogModel;
115 css::uno::Reference< css::beans::XMultiPropertySet > mxDialogModelMultiPropertySet;
116 css::uno::Reference< css::beans::XPropertySet > mxDialogModelPropertySet;
117 css::uno::Reference< css::lang::XMultiServiceFactory > mxDialogModelMSF;
118 css::uno::Reference< css::container::XNameContainer > mxDialogModelNameContainer;
119 css::uno::Reference< css::container::XNameAccess > mxDialogModelNameAccess;
121 css::uno::Reference< css::awt::XControlModel > mxControlModel;
123 css::uno::Reference< css::awt::XUnoControlDialog > mxDialog;
124 css::uno::Reference< css::awt::XControl > mxControl;
125 css::uno::Reference< css::awt::XWindowPeer > mxWindowPeer;
127 bool mbStatus;
130 #endif // INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */