Kaydet (Commit) af41ad9b authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Tor Lillqvist

Convert from EMFP_DEBUG to SAL_INFO

* Change to SAL_INFO instead of EMFP_DEBUG in implrenderer.cxx
* Add new log area cppcanvas.emf
* Update comment in log.hxx to reference the new location of log-areas.dox

Change-Id: I5d710725339f58a111a2f3494c3a72f685624322
Reviewed-on: https://gerrit.libreoffice.org/3726Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
üst bdf1731f
......@@ -81,12 +81,6 @@
#include "outdevstate.hxx"
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#if OSL_DEBUG_LEVEL > 1
#define EMFP_DEBUG(x) x
#else
#define EMFP_DEBUG(x)
#endif
using namespace ::com::sun::star;
......@@ -1326,7 +1320,7 @@ namespace cppcanvas
// - SetFont to process font metric specific actions
pCurrAct->Execute( &rVDev );
EMFP_DEBUG(printf("MTF\trecord type: 0x%x (%d)\n", pCurrAct->GetType(), pCurrAct->GetType()));
SAL_INFO("cppcanvas.emf", "MTF\trecord type: 0x" << pCurrAct->GetType() << " (" << pCurrAct->GetType() << ")");
switch( pCurrAct->GetType() )
{
......@@ -1834,22 +1828,22 @@ namespace cppcanvas
count = 0;
if (char *env = getenv ("EMF_PLUS_LIMIT")) {
limit = atoi (env);
EMFP_DEBUG (printf ("EMF+ records limit: %d\n", limit));
SAL_INFO ("cppcanvas.emf", "EMF+ records limit: " << limit);
}
}
EMFP_DEBUG (printf ("EMF+ passed to canvas mtf renderer, size: %u\n", (unsigned int)pAct->GetDataSize ()));
SAL_INFO ("cppcanvas.emf", "EMF+ passed to canvas mtf renderer, size: " << pAct->GetDataSize ());
if (count < limit)
processEMFPlus( pAct, rFactoryParms, rStates.getState(), rCanvas );
count ++;
} else if( pAct->GetComment().equalsL(RTL_CONSTASCII_STRINGPARAM("EMF_PLUS_HEADER_INFO")) ) {
EMFP_DEBUG (printf ("EMF+ passed to canvas mtf renderer - header info, size: %u\n", (unsigned int)pAct->GetDataSize ()));
SAL_INFO ("cppcanvas.emf", "EMF+ passed to canvas mtf renderer - header info, size: " << pAct->GetDataSize ());
SvMemoryStream rMF ((void*) pAct->GetData (), pAct->GetDataSize (), STREAM_READ);
rMF >> nFrameLeft >> nFrameTop >> nFrameRight >> nFrameBottom;
EMFP_DEBUG (printf ("EMF+ picture frame: %d,%d - %d,%d\n", (int)nFrameLeft, (int)nFrameTop, (int)nFrameRight, (int)nFrameBottom));
SAL_INFO ("cppcanvas.emf", "EMF+ picture frame: " << nFrameLeft << "," << nFrameTop << " - " << nFrameRight << "," << nFrameBottom);
rMF >> nPixX >> nPixY >> nMmX >> nMmY;
EMFP_DEBUG (printf ("EMF+ ref device pixel size: %dx%d mm size: %dx%d\n", (int)nPixX, (int)nPixY, (int)nMmX, (int)nMmY));
SAL_INFO ("cppcanvas.emf", "EMF+ ref device pixel size: " << nPixX << "x" << nPixY << " mm size: " << nMmX << "x" << nMmY);
rMF >> aBaseTransform;
//aWorldTransform.Set (aBaseTransform);
......
......@@ -330,6 +330,7 @@ certain functionality.
@li @c comphelper
@li @c configmgr
@li @c cppcanvas
@li @c cppcanvas.emf
@li @c cppuhelper
@li @c cppu
@li @c forms
......
......@@ -203,7 +203,7 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) {
@endverbatim
For a list of areas used see @ref sal_log_areas "SAL debug areas". Whenever
you use a new log area, add it to the file sal/inc/sal/log-areas.dox .
you use a new log area, add it to the file include/sal/log-areas.dox .
Whether these macros generate any log output is controlled in a two-stage
process.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment