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 
23 package com.sun.star.wizards.web.data;
24 
25 import com.sun.star.wizards.common.ConfigSet;
26 import com.sun.star.wizards.common.PropertyNames;
27 
28 public class CGExporter extends ConfigSetItem
29 {
30 
31     public String cp_Name;
32     public String cp_ExporterClass;
33     public boolean cp_OwnDirectory;
34     public boolean cp_SupportsFilename;
35     public String cp_DefaultFilename;
36     public String cp_Extension;
37     public String cp_SupportedMimeTypes;
38     public String cp_Icon;
39     public String cp_TargetType;
40     public boolean cp_Binary;
41     public int cp_PageType;
42     public String targetTypeName = PropertyNames.EMPTY_STRING;
43     public ConfigSet cp_Arguments = new ConfigSet(CGArgument.class);
44 
toString()45     public String toString()
46     {
47         return cp_Name;
48     }
49 
supports(String mime)50     public boolean supports(String mime)
51     {
52         return (cp_SupportedMimeTypes.equals(PropertyNames.EMPTY_STRING) || cp_SupportedMimeTypes.indexOf(mime) > -1);
53     }
54 }
55