LibreOffice Module vcl (master)  1
Classes | Functions | Variables
pdfwriter_impl2.cxx File Reference
#include "pdfwriter_impl.hxx"
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/virdev.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/metaact.hxx>
#include <vcl/bitmapaccess.hxx>
#include <vcl/graph.hxx>
#include <unotools/streamwrap.hxx>
#include <tools/helpers.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <comphelper/fileformat.h>
#include <comphelper/hash.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/graphic/GraphicProvider.hpp>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/beans/XMaterialHolder.hpp>
#include <cppuhelper/implbase.hxx>
#include <sal/log.hxx>
#include <memory>
Include dependency graph for pdfwriter_impl2.cxx:

Go to the source code of this file.

Classes

class  EncHashTransporter
 
struct  BitStreamState
 
struct  PixelCode
 

Functions

static bool lcl_canUsePDFAxialShading (const Gradient &rGradient)
 
static bool isSet (const Scanline i_pLine, long i_nIndex)
 
static long findBitRunImpl (const Scanline i_pLine, long i_nStartIndex, long i_nW, bool i_bSet)
 
static long findBitRun (const Scanline i_pLine, long i_nStartIndex, long i_nW, bool i_bSet)
 
static long findBitRun (const Scanline i_pLine, long i_nStartIndex, long i_nW)
 

Variables

static const long unsetRun [256]
 
static const long setRun [256]
 
static const PixelCode WhitePixelCodes []
 
static const PixelCode BlackPixelCodes []
 

Function Documentation

static long findBitRun ( const Scanline  i_pLine,
long  i_nStartIndex,
long  i_nW,
bool  i_bSet 
)
static

Definition at line 1615 of file pdfwriter_impl2.cxx.

References findBitRunImpl().

Referenced by vcl::PDFWriterImpl::writeG4Stream().

static long findBitRun ( const Scanline  i_pLine,
long  i_nStartIndex,
long  i_nW 
)
static

Definition at line 1623 of file pdfwriter_impl2.cxx.

References findBitRunImpl(), and isSet().

static long findBitRunImpl ( const Scanline  i_pLine,
long  i_nStartIndex,
long  i_nW,
bool  i_bSet 
)
static

Definition at line 1552 of file pdfwriter_impl2.cxx.

References setRun, and unsetRun.

Referenced by findBitRun().

static bool isSet ( const Scanline  i_pLine,
long  i_nIndex 
)
static

Definition at line 1547 of file pdfwriter_impl2.cxx.

Referenced by findBitRun(), and vcl::PDFWriterImpl::writeG4Stream().

static bool lcl_canUsePDFAxialShading ( const Gradient rGradient)
static

Definition at line 2006 of file pdfwriter_impl2.cxx.

References Gradient::GetSteps(), and Gradient::GetStyle().

Referenced by vcl::PDFWriterImpl::playMetafile().

Variable Documentation

const PixelCode BlackPixelCodes[]
static

Definition at line 1783 of file pdfwriter_impl2.cxx.

Referenced by vcl::PDFWriterImpl::putG4Span().

const long setRun[256]
static
Initial value:
=
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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Referenced by findBitRunImpl().

const PixelCode WhitePixelCodes[]
static

Definition at line 1675 of file pdfwriter_impl2.cxx.