106bcd5d2SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 306bcd5d2SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 406bcd5d2SAndrew Rist * or more contributor license agreements. See the NOTICE file 506bcd5d2SAndrew Rist * distributed with this work for additional information 606bcd5d2SAndrew Rist * regarding copyright ownership. The ASF licenses this file 706bcd5d2SAndrew Rist * to you under the Apache License, Version 2.0 (the 806bcd5d2SAndrew Rist * "License"); you may not use this file except in compliance 906bcd5d2SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 1106bcd5d2SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 1306bcd5d2SAndrew Rist * Unless required by applicable law or agreed to in writing, 1406bcd5d2SAndrew Rist * software distributed under the License is distributed on an 1506bcd5d2SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1606bcd5d2SAndrew Rist * KIND, either express or implied. See the License for the 1706bcd5d2SAndrew Rist * specific language governing permissions and limitations 1806bcd5d2SAndrew Rist * under the License. 19cdf0e10cSrcweir * 2006bcd5d2SAndrew Rist *************************************************************/ 2106bcd5d2SAndrew Rist 2206bcd5d2SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INFORMATIONDIALOG_HXX 25cdf0e10cSrcweir #define INFORMATIONDIALOG_HXX 26cdf0e10cSrcweir #include <vector> 27cdf0e10cSrcweir #include "unodialog.hxx" 28cdf0e10cSrcweir #include "configurationaccess.hxx" 29cdf0e10cSrcweir #include "pppoptimizertoken.hxx" 30cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 31cdf0e10cSrcweir #include <com/sun/star/awt/XItemListener.hpp> 32cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 33cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h> 34cdf0e10cSrcweir #include <com/sun/star/text/XTextRange.hpp> 35cdf0e10cSrcweir #include <com/sun/star/drawing/XShapes.hpp> 36cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp> 37cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp> 38cdf0e10cSrcweir #include <com/sun/star/view/XSelectionSupplier.hpp> 39cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp> 40cdf0e10cSrcweir #include <com/sun/star/awt/XItemEventBroadcaster.hpp> 41cdf0e10cSrcweir #include <com/sun/star/frame/XStorable.hpp> 42cdf0e10cSrcweir #include <com/sun/star/frame/XDispatch.hpp> 43cdf0e10cSrcweir #include <com/sun/star/awt/PushButtonType.hpp> 44cdf0e10cSrcweir #include <com/sun/star/io/XStream.hpp> 45cdf0e10cSrcweir 46cdf0e10cSrcweir // --------------------- 47cdf0e10cSrcweir // - InformationDialog - 48cdf0e10cSrcweir // --------------------- 49*597a4c59SAriel Constenla-Haile 50*597a4c59SAriel Constenla-Haile class InformationDialog : public UnoDialog 51*597a4c59SAriel Constenla-Haile , public ConfigurationAccess 52cdf0e10cSrcweir { 53cdf0e10cSrcweir public : 54cdf0e10cSrcweir 55*597a4c59SAriel Constenla-Haile InformationDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext, 56*597a4c59SAriel Constenla-Haile const com::sun::star::uno::Reference< com::sun::star::awt::XWindowPeer >& rxParent, 57*597a4c59SAriel Constenla-Haile const rtl::OUString& rSaveAsURL, 58*597a4c59SAriel Constenla-Haile sal_Bool& bOpenNewDocument, 59*597a4c59SAriel Constenla-Haile const sal_Int64& nSourceSize, 60*597a4c59SAriel Constenla-Haile const sal_Int64& nDestSize, 61*597a4c59SAriel Constenla-Haile const sal_Int64& nApproxDest ); 62cdf0e10cSrcweir ~InformationDialog(); 63cdf0e10cSrcweir 64cdf0e10cSrcweir sal_Bool execute(); 65cdf0e10cSrcweir private : 66cdf0e10cSrcweir 67*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext; 68cdf0e10cSrcweir sal_Int64 mnSourceSize; 69cdf0e10cSrcweir sal_Int64 mnDestSize; 70cdf0e10cSrcweir sal_Int64 mnApproxSize; 71cdf0e10cSrcweir sal_Bool& mrbOpenNewDocument; 72cdf0e10cSrcweir const rtl::OUString& maSaveAsURL; 73*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XCheckBox > mxCheckBox; 74cdf0e10cSrcweir 75*597a4c59SAriel Constenla-Haile void InitDialog(); 76*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XFixedText > InsertFixedText( 77*597a4c59SAriel Constenla-Haile const rtl::OUString& rControlName, 78*597a4c59SAriel Constenla-Haile const rtl::OUString& rLabel, 79*597a4c59SAriel Constenla-Haile sal_Int32 nXPos, 80*597a4c59SAriel Constenla-Haile sal_Int32 nYPos, 81*597a4c59SAriel Constenla-Haile sal_Int32 nWidth, 82*597a4c59SAriel Constenla-Haile sal_Int32 nHeight, 83*597a4c59SAriel Constenla-Haile sal_Bool bMultiLine, 84*597a4c59SAriel Constenla-Haile sal_Int16 nTabIndex ); 85*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XControl > InsertImage( 86*597a4c59SAriel Constenla-Haile const rtl::OUString& rControlName, 87*597a4c59SAriel Constenla-Haile const rtl::OUString& rURL, 88*597a4c59SAriel Constenla-Haile sal_Int32 nPosX, 89*597a4c59SAriel Constenla-Haile sal_Int32 nPosY, 90*597a4c59SAriel Constenla-Haile sal_Int32 nWidth, 91*597a4c59SAriel Constenla-Haile sal_Int32 nHeight, 92*597a4c59SAriel Constenla-Haile sal_Bool bScale ); 93*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XCheckBox > InsertCheckBox( 94*597a4c59SAriel Constenla-Haile const rtl::OUString& rControlName, 95*597a4c59SAriel Constenla-Haile const rtl::OUString& rLabel, 96*597a4c59SAriel Constenla-Haile const rtl::OUString& rHelpURL, 97*597a4c59SAriel Constenla-Haile sal_Int32 nXPos, 98*597a4c59SAriel Constenla-Haile sal_Int32 nYPos, 99*597a4c59SAriel Constenla-Haile sal_Int32 nWidth, 100*597a4c59SAriel Constenla-Haile sal_Int32 nHeight, 101*597a4c59SAriel Constenla-Haile sal_Int16 nTabIndex ); 102*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XButton > InsertButton( 103*597a4c59SAriel Constenla-Haile const rtl::OUString& rControlName, 104*597a4c59SAriel Constenla-Haile sal_Int32 nXPos, 105*597a4c59SAriel Constenla-Haile sal_Int32 nYPos, 106*597a4c59SAriel Constenla-Haile sal_Int32 nWidth, 107*597a4c59SAriel Constenla-Haile sal_Int32 nHeight, 108*597a4c59SAriel Constenla-Haile sal_Int16 nTabIndex, 109*597a4c59SAriel Constenla-Haile sal_Int32 nResID ); 110cdf0e10cSrcweir 111cdf0e10cSrcweir }; 112cdf0e10cSrcweir 113cdf0e10cSrcweir #endif 114