Ignore:
Timestamp:
Aug 27, 2010, 11:00:52 AM (11 years ago)
Author:
Silvan Scherrer
Message:

poppler update to 0.14.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/poppler/ArthurOutputDev.cc

    r277 r461  
    1616// Copyright (C) 2005 Brad Hards <bradh@frogmouth.net>
    1717// Copyright (C) 2005-2009 Albert Astals Cid <aacid@kde.org>
    18 // Copyright (C) 2008 Pino Toscano <pino@kde.org>
     18// Copyright (C) 2008, 2010 Pino Toscano <pino@kde.org>
    1919// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
    2020// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com>
     
    5050//------------------------------------------------------------------------
    5151
     52#ifdef HAVE_SPLASH
    5253#include "splash/SplashFontFileID.h"
    5354#include "splash/SplashFontFile.h"
     
    7879};
    7980
    80 
     81#endif
    8182
    8283//------------------------------------------------------------------------
     
    9596ArthurOutputDev::~ArthurOutputDev()
    9697{
     98#ifdef HAVE_SPLASH
    9799  delete m_fontEngine;
     100#endif
    98101}
    99102
    100103void ArthurOutputDev::startDoc(XRef *xrefA) {
    101104  xref = xrefA;
     105#ifdef HAVE_SPLASH
    102106  delete m_fontEngine;
    103107  m_fontEngine = new SplashFontEngine(
     
    110114#endif
    111115  m_painter->testRenderHint(QPainter::TextAntialiasing));
     116#endif
    112117}
    113118
     
    162167void ArthurOutputDev::updateLineDash(GfxState *state)
    163168{
    164   // qDebug() << "updateLineDash";
     169  double *dashPattern;
     170  int dashLength;
     171  double dashStart;
     172  state->getLineDash(&dashPattern, &dashLength, &dashStart);
     173  QVector<qreal> pattern(dashLength);
     174  for (int i = 0; i < dashLength; ++i) {
     175    pattern[i] = dashPattern[i];
     176  }
     177  m_currentPen.setDashPattern(pattern);
     178  m_currentPen.setDashOffset(dashStart);
     179  m_painter->setPen(m_currentPen);
    165180}
    166181
     
    204219void ArthurOutputDev::updateMiterLimit(GfxState *state)
    205220{
    206   // We can't do mitre (or Miter) limit with Qt4 yet.
    207   // the limit is in state->getMiterLimit() when we get there
     221  m_currentPen.setMiterLimit(state->getMiterLimit());
     222  m_painter->setPen(m_currentPen);
    208223}
    209224
     
    250265void ArthurOutputDev::updateFont(GfxState *state)
    251266{
     267#ifdef HAVE_SPLASH
    252268  GfxFont *gfxFont;
    253269  GfxFontType fontType;
     
    475491 err1:
    476492  return;
     493#endif
    477494}
    478495
     
    541558                               double originX, double originY,
    542559                               CharCode code, int nBytes, Unicode *u, int uLen) {
     560#ifdef HAVE_SPLASH
    543561  double x1, y1;
    544562//   SplashPath *path;
     
    583601          ++i;
    584602        }
    585 #ifdef __GNUC__
    586 #warning FIX THIS
    587 #endif
     603// FIXME fix this
    588604//      else if (fontPath->flags[i] & splashPathArcCW) {
    589605//        qDebug() << "Need to implement arc";
     
    637653    */
    638654  }
     655#endif
    639656}
    640657
Note: See TracChangeset for help on using the changeset viewer.