com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class HtmlSaveOptions



  • public class HtmlSaveOptions
    extends SaveOptions

    Allows to specify additional options when rendering project pages to HTML.

    • Constructor Detail

      • HtmlSaveOptions

        public HtmlSaveOptions()

        Initializes a new instance of the HtmlSaveOptions class.

    • Method Detail

      • getCssSavingCallback

        public ICssSavingCallback getCssSavingCallback()

        Gets the callback that is called to create resource to store CSS.

        Returns:
        the callback that is called to create resource to store CSS.
      • setCssSavingCallback

        public void setCssSavingCallback(ICssSavingCallback value)

        Sets the callback that is called to create resource to store CSS.

        Parameters:
        value - the callback that is called to create resource to store CSS.
      • getDefaultFontName

        public String getDefaultFontName()
        Gets the default font for rendering.
        Returns:
        the default font for rendering.
      • setDefaultFontName

        public void setDefaultFontName(String value)
        Sets the default font for rendering.
        Parameters:
        value - the default font name for rendering.
      • getExportCss

        public int getExportCss()

        Gets the way css are exported.

        Returns:
        the way css are exported.
      • setExportCss

        public void setExportCss(int value)

        Sets the way css are exported.

        Parameters:
        value - the way css are exported.
      • getExportFonts

        public int getExportFonts()

        Gets the way fonts are exported.

        Returns:
        the way fonts are exported.
      • setExportFonts

        public void setExportFonts(int value)

        Sets the way fonts are exported.

        Parameters:
        value - the way fonts are exported.
      • getExportImages

        public int getExportImages()

        Gets the way images are exported.

        Returns:
        the way images are exported.
      • setExportImages

        public void setExportImages(int value)

        Sets the way images are exported.

        Parameters:
        value - the way images are exported.
      • getFontFaceTypes

        public int getFontFaceTypes()

        Gets the font face types.

        Returns:
        the font face types.
      • setFontFaceTypes

        public void setFontFaceTypes(int value)

        Sets the font face types.

        Parameters:
        value - the font face types.
      • getFontSavingCallback

        public IFontSavingCallback getFontSavingCallback()

        Gets the callback that is called to create resource to store font.

        Returns:
        the callback that is called to create resource to store font.
      • setFontSavingCallback

        public void setFontSavingCallback(IFontSavingCallback value)

        Sets the callback that is called to create resource to store font.

        Parameters:
        value - the callback that is called to create resource to store font.
      • getImageSavingCallback

        public IImageSavingCallback getImageSavingCallback()

        Gets the callback that is called to create resource to store font.

        Returns:
        the callback that is called to create resource to store font.
      • setImageSavingCallback

        public void setImageSavingCallback(IImageSavingCallback value)

        Sets the callback that is called to create resource to store font.

        Parameters:
        value - the callback that is called to create resource to store font.
      • getIncludeProjectNameInPageHeader

        public boolean getIncludeProjectNameInPageHeader()
        Gets a value indicating whether to include project name in HTML page header.
        Returns:
        a flag which determines whether to include project name in HTML page header.
      • setIncludeProjectNameInPageHeader

        public void setIncludeProjectNameInPageHeader(boolean value)

        Sets a value indicating whether to include project name in HTML page header.

        Parameters:
        value - a flag which determines whether to include project name in HTML page header.
      • getIncludeProjectNameInTitle

        public boolean getIncludeProjectNameInTitle()

        Gets a value indicating whether to include project name in HTML title.

        Returns:
        a flag which determines whether to include project name in HTML title.
      • setIncludeProjectNameInTitle

        public void setIncludeProjectNameInTitle(boolean value)

        Sets a value indicating whether to include project name in HTML title.

        Parameters:
        value - a flag which determines whether to include project name in HTML title.
      • getPages

        public List<Integer> getPages()

        Gets a list of page numbers to save when rendering project layout.


        All project pages will be saved if this list is empty.

        Returns:
        a list of page numbers to save when rendering project layout.
      • setPages

        public void setPages(List<Integer> value)

        Sets a list of page numbers to save when rendering project layout.


        All project pages will be saved if this list is empty.

        Parameters:
        value - a list of page numbers to save when rendering project layout.
      • getReduceFooterGap

        public boolean getReduceFooterGap()
        Gets a value indicating whether a gap between last task and the footer must be reduced.
        Returns:
        value indicating whether a gap between last task and the footer must be reduced.
      • setReduceFooterGap

        public void setReduceFooterGap(boolean value)
        Sets a value indicating whether a gap between last task and the footer must be reduced.
        Parameters:
        value - value indicating whether a gap between last task and the footer must be reduced.
      • getUseGradientBrush

        public boolean getUseGradientBrush()

        Gets a value indicating whether to use gradient brush when rendering project layout.


        Currently using of gradient brush is not supported when rendering to HTML.

        Overrides:
        getUseGradientBrush in class SaveOptions
        Returns:
        true if gradient brush will be used to render project layout; otherwise false.
      • setUseGradientBrush

        public void setUseGradientBrush(boolean value)

        Sets a value indicating whether to use gradient brush when rendering project layout.


        Currently using of gradient brush is not supported when rendering to HTML.

        Overrides:
        setUseGradientBrush in class SaveOptions
        Parameters:
        value - a flag which determines whether to use gradient brush when rendering project layout.
      • getUseProjectDefaultFont

        public boolean getUseProjectDefaultFont()
        Gets a value indicating whether the default font must be used for rendering.
        Returns:
        a value indicating whether the default font must be used for rendering.
      • setUseProjectDefaultFont

        public void setUseProjectDefaultFont(boolean value)
        Sets a value indicating whether the default font must be used for rendering.
        Parameters:
        value - a value indicating whether the default font must be used for rendering.