Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifdef MACOSX
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tipcmsg.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//  Forward declarations
Shinya Kitaoka 120a6e
namespace tipc {
Toshihiro Shimizu 890ddd
class Server;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
using namespace tipc;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace font_io {
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void addParsers(tipc::Server *srv);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
//    Initialization messages
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class LoadFontNamesParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax : $FNTloadFontNames
Shinya Kitaoka 120a6e
  // Reply: ok | err
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTloadFontNames"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class GetAllFamiliesParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax : $FNTgetAllFamilies
Shinya Kitaoka 120a6e
  // Reply: ok <families vector=""> | err</families>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTgetAllFamilies"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class GetAllTypefacesParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax : $FNTgetAllTypefaces
Shinya Kitaoka 120a6e
  // Reply: ok <typefaces vector=""> | err</typefaces>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTgetAllTypefaces"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
//    Setter messages
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class SetFamilyParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTsetFamily <family></family>
Shinya Kitaoka 120a6e
  // Reply: ok | err
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTsetFamily"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class SetTypefaceParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTsetTypeface <typeface></typeface>
Shinya Kitaoka 120a6e
  // Reply: ok <ascender> <descender> | err</descender></ascender>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTsetTypeface"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class SetSizeParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTsetSize <size></size>
Shinya Kitaoka 120a6e
  // Reply: ok <ascender> <descender> | err</descender></ascender>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTsetSize"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
//    Getter messages
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class GetCurrentFamilyParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTgetCurrentFamily
Shinya Kitaoka 120a6e
  // Reply: ok <family name=""> | err</family>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTgetCurrentFamily"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class GetCurrentTypefaceParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTgetCurrentTypeface
Shinya Kitaoka 120a6e
  // Reply: ok <typeface name=""> | err</typeface>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTgetCurrentTypeface"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class GetDistanceParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTgetDistance <firstchar> <secondchar></secondchar></firstchar>
Shinya Kitaoka 120a6e
  // Reply: ok <x> <y> | err</y></x>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTgetDistance"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
//    Draw messages
Toshihiro Shimizu 890ddd
//************************************************************************************
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DrawCharVIParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTdrawCharVI <char> <nextchar></nextchar></char>
Shinya Kitaoka 120a6e
  // Reply: ok <x> <y> <strokes vector=""> | err</strokes></y></x>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTdrawCharVI"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DrawCharGRParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTdrawCharGR <shmem-id> <char> <nextchar></nextchar></char></shmem-id>
Shinya Kitaoka 120a6e
  // Reply: ok <lx> <ly> <x> <y> | err</y></x></ly></lx>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTdrawCharGR"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DrawCharCMParser : public tipc::MessageParser {
Shinya Kitaoka 120a6e
  // Syntax: $FNTdrawCharCM <ink> <shmem-id> <char> <nextchar></nextchar></char></shmem-id></ink>
Shinya Kitaoka 120a6e
  // Reply: ok <lx> <ly> <x> <y> | err</y></x></ly></lx>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  QString header() const { return "$FNTdrawCharCM"; }
Shinya Kitaoka 120a6e
  void operator()(Message &stream);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
}  // namespace tlevelwriter_mov
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif