nsITXTToHTMLConv.idl 992 B

1234567891011121314151617181920212223242526
  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsIStreamConverter.idl"
  6. [scriptable, uuid(933355f6-1dd2-11b2-a9b0-d335b9e35983)]
  7. interface nsITXTToHTMLConv : nsIStreamConverter {
  8. /**
  9. * @param text: Title to set for the HTML document. Only applicable if
  10. * preFormatHTML(true) is called.
  11. * @result The given title will be used to form an HTML document
  12. * from the plain text document.
  13. */
  14. void setTitle(in wstring text);
  15. /**
  16. * @param value: true to use an HTML header and footer on the document,
  17. * false to omit it.
  18. * @result The document will use a header and footer if value is
  19. * true.
  20. */
  21. void preFormatHTML(in boolean value);
  22. };