1 /*
2  * RmdOutputFormat.java
3  *
4  * Copyright (C) 2021 by RStudio, PBC
5  *
6  * Unless you have received this program directly from RStudio pursuant
7  * to the terms of a commercial license agreement with RStudio, then
8  * this program is licensed to you under the terms of version 3 of the
9  * GNU Affero General Public License. This program is distributed WITHOUT
10  * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
11  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
12  * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
13  *
14  */
15 package org.rstudio.studio.client.rmarkdown.model;
16 
17 import com.google.gwt.core.client.JavaScriptObject;
18 
19 public class RmdOutputFormat extends JavaScriptObject
20 {
RmdOutputFormat()21    protected RmdOutputFormat()
22    {
23    }
24 
getFormatName()25    public native final String getFormatName() /*-{
26       return this.format_name;
27    }-*/;
28 
isSelfContained()29    public native final boolean isSelfContained() /*-{
30       return this.self_contained;
31    }-*/;
32 
33    // output format name strings from the rmarkdown package (not exhaustive)
34    public final static String OUTPUT_HTML_DOCUMENT = "html_document";
35    public final static String OUTPUT_HTML_NOTEBOOK = "html_notebook";
36    public final static String OUTPUT_BEAMER_PRESENTATION = "beamer_presentation";
37    public final static String OUTPUT_REVEALJS_PRESENTATION = "revealjs_presentation";
38    public final static String OUTPUT_IOSLIDES_PRESENTATION = "ioslides_presentation";
39    public final static String OUTPUT_SLIDY_PRESENTATION = "slidy_presentation";
40    public final static String OUTPUT_PPT_PRESENTATION = "powerpoint_presentation";
41    public final static String OUTPUT_PRESENTATION_SUFFIX = "_presentation";
42    public final static String OUTPUT_DASHBOARD_SUFFIX = "_dashboard";
43    public final static String OUTPUT_WORD_DOCUMENT = "word_document";
44    public final static String OUTPUT_PDF_DOCUMENT = "pdf_document";
45 }
46 
47