You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/filters/kword/latex/export/pixmapFrame.h

103 lines
3.1 KiB

/* A TEXT ZONE IS SOME WORDS WITH A SPECIAL STYLE (ITALIC, ...).
* IT'S NOT USE FOR TITLE (BUT IN THE FUTURE IT WILL BE USED FOR)
* OR FOR SPECIAL PARAG.
*/
/*
** Header file for inclusion with kword_xml2latex.c
**
** Copyright (C) 2000 Robert JACOLIN
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Library General Public License for more details.
**
** To receive a copy of the GNU Library General Public License, write to the
** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
**
*/
#ifndef __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
#define __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
#include "element.h"
/***********************************************************************/
/* Class: PixmapFrame */
/***********************************************************************/
/**
* This class hold a pixmap (frame). The pixmap can be converted in (e)ps. by using
* the convert command of ImageMagick.
*/
class PixmapFrame : public Element
{
/* DATA MARKUP */
int _left;
int _top;
int _right;
int _bottom;
TAround _runaround;
double _runaroundGap;
TCreate _autoCreate;
TNFrame _newFrameBehaviour;
TSide _sheetSide;
bool _keepAspectRatio;
/* TEXT MARKUP */
TQString _key;
TQString _filenamePS;
public:
PixmapFrame();
PixmapFrame(TQString, TQString);
virtual ~PixmapFrame();
/**
* Accessors
*/
TAround getRunAround () const { return _runaround; }
double getAroundGap () const { return _runaroundGap; }
TCreate getAutoCreate () const { return _autoCreate; }
TNFrame getNewFrame () const { return _newFrameBehaviour; }
TSide getSheetSide () const { return _sheetSide; }
void getPixmap(TQDomNode);
TQString getKey () const { return _key; }
TQString getFilenamePS() const { return _filenamePS; }
/**
* Modifiers
*/
void setRunAround (const int a) { _runaround = (TAround) a; }
void setAroundGap (const double r) { _runaroundGap = r; }
void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
void setSheetSide (const int s) { _sheetSide = (TSide) s; }
void setKeepAspectRatio(const TQString);
void setKey (TQString k) { _key = k; }
void setFilenamePS (TQString f) { _filenamePS = f; }
/**
* Helpfull functions
*/
void analyse(const TQDomNode);
void convert();
void generate(TQTextStream&);
/*void generate_format_begin(TQTextStream &);
void generate_format_end(TQTextStream &);*/
private:
void analyseParamFrame(const TQDomNode);
};
#endif /* __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__ */