(root)/
gettext-0.22.4/
libtextstyle/
gnulib-local/
lib/
html-styled-ostream.oo.h
       1  /* Output stream for CSS styled text, producing HTML output.
       2     Copyright (C) 2006, 2020 Free Software Foundation, Inc.
       3     Written by Bruno Haible <bruno@clisp.org>, 2006.
       4  
       5     This program is free software: you can redistribute it and/or modify
       6     it under the terms of the GNU General Public License as published by
       7     the Free Software Foundation; either version 3 of the License, or
       8     (at your option) any later version.
       9  
      10     This program is distributed in the hope that it will be useful,
      11     but WITHOUT ANY WARRANTY; without even the implied warranty of
      12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13     GNU General Public License for more details.
      14  
      15     You should have received a copy of the GNU General Public License
      16     along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
      17  
      18  #ifndef _HTML_STYLED_OSTREAM_H
      19  #define _HTML_STYLED_OSTREAM_H
      20  
      21  #include <stdbool.h>
      22  
      23  #include "styled-ostream.h"
      24  #include "html-ostream.h"
      25  
      26  
      27  struct html_styled_ostream : struct styled_ostream
      28  {
      29  methods:
      30    /* Accessors.  */
      31    ostream_t      get_destination (html_styled_ostream_t stream);
      32    html_ostream_t get_html_destination (html_styled_ostream_t stream);
      33    const char *   get_css_filename (html_styled_ostream_t stream);
      34  };
      35  
      36  
      37  #ifdef __cplusplus
      38  extern "C" {
      39  #endif
      40  
      41  
      42  /* Create an output stream that takes input in the UTF-8 encoding and
      43     writes it in HTML form on DESTINATION, styled with the file CSS_FILENAME.
      44     Note that the resulting stream must be closed before DESTINATION can be
      45     closed.  */
      46  extern html_styled_ostream_t
      47         html_styled_ostream_create (ostream_t destination,
      48                                     const char *css_filename);
      49  
      50  
      51  /* Test whether a given output stream is a html_styled_ostream.  */
      52  extern bool is_instance_of_html_styled_ostream (ostream_t stream);
      53  
      54  
      55  #ifdef __cplusplus
      56  }
      57  #endif
      58  
      59  #endif /* _HTML_STYLED_OSTREAM_H */