Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

qwt_plot_printfilter.h

00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef QWT_PLOT_PRINTFILTER_H
00011 #define QWT_PLOT_PRINTFILTER_H
00012 
00013 #include <qcolor.h>
00014 #include <qfont.h>
00015 #include "qwt_global.h"
00016 
00017 class QwtPlot;
00018 class QwtPlotItem;
00019 
00026 class QWT_EXPORT QwtPlotPrintFilter
00027 {
00028 public:
00030     enum Options 
00031     {
00032         PrintMargin = 1,
00033         PrintTitle = 2,
00034         PrintLegend = 4,
00035         PrintGrid = 8,
00036         PrintCanvasBackground = 16,
00037         PrintWidgetBackground = 32,
00038 
00039         PrintAll = ~PrintWidgetBackground
00040     }; 
00041 
00043     enum Item
00044     {
00045         Title,
00046         Legend,
00047         Curve,
00048         CurveSymbol,
00049         Marker,
00050         MarkerSymbol,
00051         MajorGrid,
00052         MinorGrid,
00053         CanvasBackground,
00054         AxisScale,
00055         AxisTitle,
00056         WidgetBackground
00057     };
00058 
00059     explicit QwtPlotPrintFilter();
00060     virtual ~QwtPlotPrintFilter(); 
00061 
00062     virtual QColor color(const QColor &, Item item) const;
00063     virtual QFont font(const QFont &, Item item) const;
00064 
00065     void setOptions(int options);
00066     int options() const;
00067 
00068     virtual void apply(QwtPlot *) const;
00069     virtual void reset(QwtPlot *) const;
00070 
00071     virtual void apply(QwtPlotItem *) const;
00072     virtual void reset(QwtPlotItem *) const;
00073 
00074 private:
00075     class PrivateData;
00076     PrivateData *d_data;
00077 };
00078 
00079 #endif

Generated on Wed Aug 31 23:02:29 2005 for Qwt User's Guide by  doxygen 1.4.1