Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

PDFExporter.h

#ifndef PDFEXPORTER_INCLUDED
#define PDFEXPORTER_INCLUDED

#include "BaseExporter.h"
#include <vector>

using std::vector;

class wxPdfDocument; // Forward declaration

00011 class PDFExporter : public BaseExporter
{
  public:
00014     struct Style
    {
      int value;
      wxColour back;
      wxColour fore;
      bool bold;
      bool italics;
      bool underlined;

      bool operator == (int aValue);
    };

  public:
    void Export(const wxString &filename, const wxString &title, const wxMemoryBuffer &styled_text, const EditorColourSet *color_set, int lineCount);

  private:
    vector<Style> m_styles;
    int defStyleIdx;

    static void PDFSetFont(wxPdfDocument &pdf);
    void PDFGetStyles(const EditorColourSet *c_color_set, HighlightLanguage lang);
    void PDFBody(wxPdfDocument &pdf, const wxMemoryBuffer &styled_text, int lineCount);
};

#endif // PDFEXPORTER_INCLUDED

Generated by  Doxygen 1.6.0   Back to index