#ifndef __TextInterface1_h__ #define __TextInterface1_h__ #ifdef __GNUG__ #pragma interface #endif #include "ProtVersion.h" #include "common/PooledString.h" #ifdef VERSION_B #include "proteus/ProtPresB.h" #else #include "protean/ProtPresC.h" #endif #include "AlignType.h" ProtDocNode* createTextNode(PooledString); void setTextNode(ProtDocNode*, ProtValue*); class ProtClient; class ProtMedium; class TextInterface1: public PROTPRES { public: TextInterface1(ProtDocument*, ProtClient*, istream&, ostream&); ~TextInterface1(); ProtSchema* schema() const; ProtMedium* medium() const; const char** AlignTypeNames() const { return _AlignTypeNames; } double width(PROTNODE* n); double actualWidth(PROTNODE* n); double left(PROTNODE* n); double actualLeft(PROTNODE* n); double right(PROTNODE* n); double actualRight(PROTNODE* n); double hmiddle(PROTNODE* n); double actualHmiddle(PROTNODE* n); double height(PROTNODE* n); double actualHeight(PROTNODE* n); double top(PROTNODE* n); double actualTop(PROTNODE* n); double bottom(PROTNODE* n); double actualBottom(PROTNODE* n); double vmiddle(PROTNODE* n); double actualVmiddle(PROTNODE* n); // Attributes double blankLines(PROTNODE* n); double indent(PROTNODE* n); AlignType justify(PROTNODE* n); double lineWidth(PROTNODE* n); double fontSize(PROTNODE* n); PooledString fontFamily(PROTNODE* n); bool italic(PROTNODE* n); private: static ProtMedium* _medium; PROTSCHEMA* _schema; ProtMedium* setMedium(); PROTSCHEMA* setSchema(ProtMedium*, istream&, ostream&); static const int _AlignTypeNValues; static const char* _AlignTypeNames[]; static const int _AlignType[]; }; #endif __TextInterface1_h__