HTML Add-on für den TE Editor Toolkit

Ein HTML-Editor für Ihre Anwendung

Das HTML Add-on stellt eine einfache und kostengünstige Methode dar, um einen HTML-Editor und Viewer in eine Anwendung einzubauen. Das HTML Add-on setzt den TE Developer's Toolkit voraus.

HTML Add-on unterstützt folgende Gruppen von HTML-Tags:

  • Überschriften (H1-H7)
  • Zeichendarstellung
  • Listen: geordnet, ungeordnet, Menü und Verzeichnis
  • Adresse, Zitat, Blockzitat, waagerechte Linie, vorformatierter Text
  • Bildelemente und Image Maps
  • Hyperlinks
  • Body, Header und Titel
  • Formulare
  • Tabellen
Die Bibliothek holt die HTML-Daten aus einem Puffer im Speicher oder direkt aus einer Datei

Das HTML Add-on erkennt derzeit folgende Bildformate:

  • Bitmap-Format
  • Windows-Metafile-Format
  • GIF-Format
  • TIFF-Format
Natürlich können Sie auch andere Bildformate benutzen. In diesem Fall muß Ihre Anwendung die Bilder in eines der unterstützten Formate übersetzen.

Drucken

Sie können den HTML-Text in der Editor-Toolbox mit der entsprechenden API-Funktion ausdrucken. Sie haben dabei die Wahl, ob Sie den ganzen Text oder nur einen Teil ausdrucken möchten.

RTF->HTML Konverter

Das HTML Add-on enthält ein API für die Umwandlung von RTF-Daten in das HTML-Format

Zusammenarbeit mit dem TE Developer's Kit

Das HTML Add-on interpretiert den HTML-Text und schickt ihn dann an die TE Edit-Control weiter. Die Edit-Control ist für die Bewegung im Text, den Druck, die Datenübertragung vom und zum Clipboard und die Behandlung der Mausklicks zuständig. WEnn der Benutzer auf eine Hypertextbereich klickt, sendet die Edit-Control eine entsprechende Nachricht an das HTML Add-on. Das Add-on bearbeitet lokale Hyperlinks in eigener Regie, externe Hyperlinks übergibt es an Ihre Anwendung zur weiteren Bearbeitung.

Das Add-on ist, wie der Name bereits andeutet, nur ein Zusatz zum TE Developer's Kit. Sie benötigen deshalb eine Lizenz des TE Developer Kits und eine Lizenz des HTML Add-on, um HTML-Dateien zu editieren.

Auf Anwendungen, die mit dem HTML Add-on geschrieben wurden, erhebt der Hersteller keinerlei Laufzeitgebühren, wenn es sich nicht gerade um einen ausschließlichen HTML-Viewer oder -Editor handelt.

Der Quellcode ist im Lieferumfang enthalten und mit Microsoft- oder Borland-Compilern kompatibel.

API-Funktionen (Ausschnitt)

Die Kommentare sind im englischen Original belassen, um eventuelle Ungenauigkeiten bei der Übersetzung von Funktionsdefinitionen zu vermeiden.
HtsAddSelectionItem
Insert an item in the selection box.
HtsClearWindow
Clear the current viewer window.
HtsClose
Close the current window.
HtsCommand
Execute a menu command.
HtsDelSelectionItem
Delete the selected items from the current selection box.
HtsEditFormId
Edit the form id
HtsEditRule
Edit the current horizontal rule.
HtsGetFont
Retrieve the font information for an HTML style element.
HtsGetLinkInfo
Retrieve the color and style information for the link text.
HtsGetParaAttrib
Get the attributes of the current paragraph.
HtsLoadControl
Load the HTML Add-on control.
HtsInitialize
Initialize a TE editor window to work as an HTML control.
HtsInsertButtonField
Insert a button field in the current form.
HtsInsertLink
Insert a link or link name.
HtsInsertPicture
Insert a picture file.
HtsInsertRule
Insert a horizontal rule.
HtsInsertSelectField
Insert a selection box.
HtsInsertTextField
Insert a text field in the current form.
HtsNewFile
Clear the current file from the window.
HtsOpenFile
Open a new file.
HtsParaNormal
Reset the paragraph attributes
HtsPositionName
Position at a given tag name within the current document.
HtsRead
Read an HTML document or a buffer containing HTML data into the specified TE window.
HtsReformat
Reformat the text in the window.
HtsRtfToHtml
Convert the text from the RTF format to the HTML format.
HtsSave
Save the contents of the window
HtsSetFont
Set new font attributes for an HTML style element.
HtsSetFormId
Set a form id for a form.
HtsSetFontDlg
Allow the user to edit the font attributes for a desired HTML style element.
HtsSetForm
Set the form property of a paragraph.
HtsSetHeader
Set the header attribute and the header level.
HtsSetLinkInfo
Set new text color and style for the link text.
HtsSetLinkInfoDlg
Allow the user to edit the color and style for the link text.
HtsSetList
Set the list type and list level.
HtsMenuEnable
Get the 'enable' status of a menu item.
HtsMenuSelect
Get the 'check' status of a menu item.
HtsSetMiscCharType
Set miscellaneous character types.
HtsSetMiscParaType
Set blockquote, address, and preformatted paragraph types.
HtsGetFormInfo
Retrieve information about a form.
HtsGetFieldData
Retrieve data for a field in a form.
HtwWrite
Write the HTML text to a file or a buffer.
Weitere Programme des gleichen Herstellers

Chart Pro - allgemeine Informationen
Chart Pro - technische Informationen
TE Developer's Kit - allgemeine Informationen
TE Developer's Kit - technische Informationen

( Alphabetisches Produktverzeichnis ) ( Inhaltsverzeichnis ) ( Zurück zum Menü ) ( E-mail an ComFood)

Copyright 1998 ComFood Software GmbH, alle Rechte vorbehalten
Autor: Dr. Thomas Grüter