Hi,

On 15/04/2012 21:49, Steve Cookson wrote:

As a general approach for an implementation within
Wx::PdfDocument, I'm
not sure really. Amending the richtextprint.cpp/.h in the wxWidgets
build isn't really an option for us (unless it is something
we could get
accepted upstream - which seems unlikely given it is wxPdfDocument
specific)

Is there, or could we not have, a compile option (like the OpenGL one) which
says if wxPdfDocument  is installed or not?

Not when compiling wxWidgets - because we would not patch the wxWidgets source with anything that isn't eventually going to be in wxWidgets itself - so nothing to check for.

When compiling Wx::PdfDocument we could probably do this - but then we would end up checking for wxPdfDocument versions and needing to sprinkle our code with #if defined statements.

I'd really like to avoid this. The Wx::Scintilla approach works quite well.

It is probably worth pointing out that the Wx::PdfDocument installation of wxPdfDocument would not affect any existing installation of wxPdfDocument - it would be Wx::PdfDocument specific.

Regards

Mark


Reply via email to