* src/BaseDoc.py (write_note): Add function.

* src/docgen/HtmlDoc.py (write_note): Implement function.
* src/plugins/FtmStyleDescendants.py (print_notes): Call write_note()
with the note's format.


svn: r2500
This commit is contained in:
Alex Roitman
2003-12-11 03:49:44 +00:00
parent f33d59dd4b
commit 527e161b42
4 changed files with 35 additions and 5 deletions

View File

@ -49,13 +49,15 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
Provides base interface to text based documents. Specific document
interfaces should be derived from the core classes.
"""
__author__ = "Donald N. Allingham"
__version__ = "Revision:$"
__version__ = "Revision:$Id$"
#-------------------------------------------------------------------------
#
@ -1279,6 +1281,18 @@ class BaseDoc:
"Creates a horizontal line"
pass
def write_note(self,text,format,style_name):
"""
Writes the note's text and take care of paragraphs,
depending on the format.
text - text to write.
format - format to use for writing:
0 for flowed text,
1 for preformatted text.
"""
pass
def write_text(self,text):
"""
Writes the text in the current paragraph. Should only be used after a