Branch data Line data Source code
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 _FLTCALL_HXX
21 : : #define _FLTCALL_HXX
22 : : #include <tools/gen.hxx>
23 : : #include <vcl/field.hxx>
24 : : #include <com/sun/star/uno/Sequence.h>
25 : : #include <com/sun/star/beans/PropertyValue.hpp>
26 : : #include <svtools/FilterConfigItem.hxx>
27 : :
28 : : class FilterConfigItem;
29 : : class SvStream;
30 : : class Graphic;
31 : : class Window;
32 : :
33 [ # # ]: 0 : struct FltCallDialogParameter
34 : : {
35 : :
36 : : Window* pWindow;
37 : : ResMgr* pResMgr;
38 : : FieldUnit eFieldUnit;
39 : : String aFilterExt;
40 : :
41 : : // In and Out PropertySequence for all filter dialogs
42 : : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aFilterData;
43 : :
44 : 0 : FltCallDialogParameter( Window* pW, ResMgr* pRsMgr, FieldUnit eFiUni ) :
45 : : pWindow ( pW ),
46 : : pResMgr ( pRsMgr ),
47 [ # # ]: 0 : eFieldUnit ( eFiUni ) {};
48 : : };
49 : :
50 : : typedef sal_Bool (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
51 : : FilterConfigItem* pConfigItem, sal_Bool bPrefDialog);
52 : : // Von diesem Typ sind sowohl Export-Filter-Funktionen als auch Import-Filter-Funktionen.
53 : : // rFileName ist der komplette Pfadname der zu importierenden bzw. zu exportierenden Datei.
54 : : // pCallBack darf auch NULL sein. pCallerData wird der Callback-Funktion uebergeben.
55 : : // pOptionsConfig darf NULL sein. Anderenfalls ist die Gruppe des Config schon gesetzt
56 : : // und darf von dem Filter nicht geaendert werden!
57 : : // Wenn bPrefDialog==sal_True gilt, wird ggf. ein Preferences-Dialog durchgefuehrt.
58 : :
59 : : typedef sal_Bool ( *PFilterDlgCall )( FltCallDialogParameter& );
60 : : // Von diesem Typ sind sowohl Export-Filter-Funktionen als auch Import-Filter-Funktionen.
61 : : // Uebergeben wird ein Pointer auf ein Parent-Fenster und auf die Options-Config.
62 : : // pOptions und pWindow duerfen NULL sein, in diesem Fall wird sal_False zurueckgeliefert.
63 : : // Anderenfalls ist die Gruppe der Config schon gesetzt
64 : : // und darf von dem Filter nicht geaendert werden!
65 : :
66 : : #endif
67 : :
68 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|