SBSPSS/Utils/Libs/TexGrab/TexGrab.h
2000-12-02 18:55:49 +00:00

121 lines
3.2 KiB
C++

/*=========================================================================
TexGrab.h
Author: Dave
Created: 011200
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __TEXGRAB_LIB_H__
#define __TEXGRAB_LIB_H__
/*----------------------------------------------------------------------
Includes
-------- */
#include <vector>
#include <gtypes.h>
#include <gstring.hpp>
#include <misc.hpp>
#include <gfname.hpp>
#include <pcre.h>
#include <ginio.h>
#include <repread.h>
#include "sprset.h"
#include "allfiles.h"
using namespace std;
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Class defintions
---------------- */
class CTexGrab
{
public:
CTexGrab();
~CTexGrab();
void AddFile(char *Name);
void Process();
void CompressTpages(bool f) {m_compressTpages=f;}
void NoWriteTpages(bool f) {m_noWriteTpages=f;}
void UseHalfTpage(bool f) {m_useHalfTpage=f;}
void AnimatedHeadersOnly(bool f) {m_AnimatedHeadersOnly=f;}
void DontOutputBoxes(bool f) {m_DontOutputBoxes=f;}
void AlignHeaders(bool f) {m_AlignHeaders=f;}
void AllowRotate(bool f) {MyFiles.SetAllowRotate(f);}
void FileRecursion(bool f) {MyFiles.SetFileRecursion(f);}
void tNoSort() {MyFiles.setNoSort();}
void ReadRepFile(GString String) {MyFiles.ReadRepFile(String);}
void CrossHair(bool f) {MyFiles.SetCrossHair(f);}
void ZeroColZero(bool f) {MyFiles.SetZeroColZero(f);}
void MoveUVs(bool f) {MyFiles.SetMoveUVs(f);}
void ShrinkToFit(bool f) {MyFiles.SetShrinkToFit(f);}
void SetOutFile(char *Name) {m_OutFile=Name;}
void SetSprFile(char *Name) {m_SprFile=Name;}
void SetDebugOut(char *Name) {m_OutLbm=Name;}
void SetRepFile(char *Name) {m_ReportFile=Name;}
void SetIncFile(char *Name) {m_IncOutFile=Name;}
void SetRawTPageFile(char *Name) {m_rawTpageFile=Name;}
void MaxSize(int Size) {MyFiles.SetMaxSize(Size);}
void SetTPage(int Base,int W,int H) {m_PageBase=Base; m_WidthPages=W; m_HeightPages=H; m_PagePlacements=true;}
void ForceOffsets(int XOfs,int YOfs) {MyFiles.SetXOff(XOfs); MyFiles.SetYOff(YOfs); MyFiles.SetForceOffsets(true);}
protected:
AllFiles MyFiles;
GString m_OutFile;
GString m_OutLbm;
GString m_SprFile;
GString m_ReportFile;
GString m_IncOutFile;
GString m_rawTpageFile;
int m_PageBase;
int m_WidthPages;
int m_HeightPages;
bool m_PagePlacements;
bool m_compressTpages;
bool m_noWriteTpages;
bool m_useHalfTpage;
bool m_AnimatedHeadersOnly;
bool m_DontOutputBoxes;
bool m_AlignHeaders;
};
/*---------------------------------------------------------------------- */
#endif
/*===========================================================================
end */