build fix
[LibreOffice.git] / filter / source / graphic / GraphicExportDialog.hxx
blobd6aead53f2783cb9aec290bcd9084a0d772753bb
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_FILTER_SOURCE_GRAPHIC_GRAPHICEXPORTDIALOG_HXX
21 #define INCLUDED_FILTER_SOURCE_GRAPHIC_GRAPHICEXPORTDIALOG_HXX
23 #include <tools/fldunit.hxx>
24 #include <cppuhelper/implbase.hxx>
25 #include <comphelper/processfactory.hxx>
27 #include <com/sun/star/lang/XInitialization.hpp>
28 #include <com/sun/star/beans/XPropertyAccess.hpp>
29 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
30 #include <com/sun/star/document/XExporter.hpp>
32 using namespace css;
33 using namespace css::uno;
34 using namespace css::beans;
35 using namespace css::lang;
37 class GraphicExportDialog : public cppu::WeakImplHelper
39 document::XExporter,
40 ui::dialogs::XExecutableDialog,
41 beans::XPropertyAccess,
42 lang::XInitialization
45 Sequence<PropertyValue> maMediaDescriptor;
46 Sequence<PropertyValue> maFilterDataSequence;
47 Reference<XComponent> mxSourceDocument;
49 OUString maDialogTitle;
50 FieldUnit meFieldUnit;
51 bool mbExportSelection;
53 public:
55 explicit GraphicExportDialog( const Reference<XComponentContext>& rxContext );
56 virtual ~GraphicExportDialog() override;
58 // XInitialization
59 virtual void SAL_CALL initialize( const Sequence<Any>& aArguments ) throw (Exception, RuntimeException, std::exception ) override;
61 // XPropertyAccess
62 virtual Sequence<PropertyValue> SAL_CALL getPropertyValues() throw ( RuntimeException, std::exception ) override;
63 virtual void SAL_CALL setPropertyValues( const Sequence<PropertyValue>& aProps )
64 throw ( UnknownPropertyException, PropertyVetoException,
65 lang::IllegalArgumentException, lang::WrappedTargetException,
66 RuntimeException, std::exception ) override;
68 // XExecuteDialog
69 virtual sal_Int16 SAL_CALL execute() throw ( RuntimeException, std::exception ) override;
70 virtual void SAL_CALL setTitle( const OUString& aTitle ) throw ( RuntimeException, std::exception ) override;
72 // XExporter
73 virtual void SAL_CALL setSourceDocument( const Reference<lang::XComponent>& xDocument ) throw ( lang::IllegalArgumentException, RuntimeException, std::exception ) override;
77 #endif // _GRAPHICEXPORTDIALOGUNO_HXX_
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */