LibreOffice Module sdext (master)  1
informationdialog.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_INFORMATIONDIALOG_HXX
21 #define INCLUDED_SDEXT_SOURCE_MINIMIZER_INFORMATIONDIALOG_HXX
22 
23 #include "unodialog.hxx"
24 #include "configurationaccess.hxx"
25 #include <com/sun/star/awt/XItemListener.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <cppuhelper/implbase.hxx>
28 
29 OUString InsertFixedText( UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rLabel,
30  sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight, bool bMultiLine, sal_Int16 nTabIndex );
31 
32 OUString InsertImage( UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rURL,
33  sal_Int32 nPosX, sal_Int32 nPosY, sal_Int32 nWidth, sal_Int32 nHeight, bool bScale );
34 
35 OUString InsertCheckBox( UnoDialog& rInformationDialog, const OUString& rControlName,
36  const css::uno::Reference< css::awt::XItemListener >& rItemListener, const OUString& rLabel,
37  sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex );
38 
39 OUString InsertButton( UnoDialog& rInformationDialog, const OUString& rControlName,
40  css::uno::Reference< css::awt::XActionListener > const & xActionListener, sal_Int32 nXPos, sal_Int32 nYPos,
41  sal_Int32 nWidth, sal_Int16 nTabIndex, const OUString& rText );
42 
44 {
45 public:
46 
47  InformationDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
48  css::uno::Reference< css::frame::XFrame > const & rxFrame, const OUString& rSaveAsURL,
49  bool& bOpenNewDocument, sal_Int64 nSourceSize, sal_Int64 nDestSize, sal_Int64 nApproxDest );
51 
52  void execute();
53 
54 private:
55 
56  css::uno::Reference< css::awt::XActionListener > mxActionListener;
57 
58  void InitDialog();
59 
60  sal_Int64 mnSourceSize;
61  sal_Int64 mnDestSize;
62  sal_Int64 mnApproxSize;
64  const OUString& maSaveAsURL;
65 };
66 
67 class OKActionListener : public ::cppu::WeakImplHelper< css::awt::XActionListener >
68 {
69 public:
70  explicit OKActionListener( UnoDialog& rDialog ) : mrDialog( rDialog ){}
71 
72  virtual void SAL_CALL actionPerformed( const css::awt::ActionEvent& Event ) override;
73  virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
74 private:
75 
77 };
78 
79 #endif
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString InsertCheckBox(UnoDialog &rInformationDialog, const OUString &rControlName, const css::uno::Reference< css::awt::XItemListener > &rItemListener, const OUString &rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex)
css::uno::Reference< css::awt::XActionListener > mxActionListener
OKActionListener(UnoDialog &rDialog)
OUString InsertFixedText(UnoDialog &rInformationDialog, const OUString &rControlName, const OUString &rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight, bool bMultiLine, sal_Int16 nTabIndex)
OUString InsertButton(UnoDialog &rInformationDialog, const OUString &rControlName, css::uno::Reference< css::awt::XActionListener > const &xActionListener, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex, const OUString &rText)
OUString InsertImage(UnoDialog &rInformationDialog, const OUString &rControlName, const OUString &rURL, sal_Int32 nPosX, sal_Int32 nPosY, sal_Int32 nWidth, sal_Int32 nHeight, bool bScale)
virtual void SAL_CALL actionPerformed(const css::awt::ActionEvent &Event) override
InformationDialog(const css::uno::Reference< css::uno::XComponentContext > &rxContext, css::uno::Reference< css::frame::XFrame > const &rxFrame, const OUString &rSaveAsURL, bool &bOpenNewDocument, sal_Int64 nSourceSize, sal_Int64 nDestSize, sal_Int64 nApproxDest)
const OUString & maSaveAsURL
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override