1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #ifndef IMPSVGDIALOG_HXX
23 #define IMPSVGDIALOG_HXX
24 
25 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
26 #include <com/sun/star/uno/Sequence.h>
27 #endif
28 
29 #ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
30 #include <com/sun/star/beans/PropertyValue.hpp>
31 #endif
32 
33 #include <vcl/dialog.hxx>
34 #include <vcl/button.hxx>
35 #include <vcl/fixed.hxx>
36 #include <vcl/field.hxx>
37 #include <svtools/stdctrl.hxx>
38 #include <svtools/FilterConfigItem.hxx>
39 
40 #define SVG_EXPORTFILTER_CONFIGPATH         "Office.Common/Filter/SVG/Export/"
41 #define SVG_PROP_TINYPROFILE                "TinyMode"
42 #define SVG_PROP_EMBEDFONTS                 "EmbedFonts"
43 #define SVG_PROP_NATIVEDECORATION           "UseNativeTextDecoration"
44 #define SVG_PROP_GLYPHPLACEMENT             "GlyphPlacement"
45 #define SVG_PROP_OPACITY                    "Opacity"
46 #define SVG_PROP_GRADIENT                   "Gradient"
47 
48 // ----------------
49 // - ImpSVGDialog -
50 // ----------------
51 
52 class ResMgr;
53 class Window;
54 
55 class ImpSVGDialog : public ModalDialog
56 {
57 private:
58 
59     FixedLine			maFI;
60     CheckBox            maCBTinyProfile;
61     CheckBox            maCBEmbedFonts;
62     CheckBox            maCBUseNativeDecoration;
63 
64 	OKButton			maBTOK;
65 	CancelButton		maBTCancel;
66     HelpButton          maBTHelp;
67 
68     FilterConfigItem	maConfigItem;
69     sal_Bool            mbOldNativeDecoration;
70 
71 	DECL_LINK( OnToggleCheckbox, CheckBox* );
72 
73 public:
74 
75     ImpSVGDialog( Window* pParent, /*ResMgr& rResMgr,*/
76                   com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rFilterData );
77 	~ImpSVGDialog();
78 
79     com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > GetFilterData();
80 };
81 
82 #endif // IMPSVGDIALOG_HXX
83