LibreOffice Module vcl (master)  1
Classes | Functions | Variables
pdfwriter_impl2.cxx File Reference
#include <pdf/pdfwriter_impl.hxx>
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/virdev.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/metaact.hxx>
#include <vcl/BitmapReadAccess.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 <o3tl/unit_conversion.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
 

Functions

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

Variables

const tools::Long unsetRun [256]
 
const tools::Long setRun [256]
 
const PixelCode WhitePixelCodes []
 
const PixelCode BlackPixelCodes []
 

Function Documentation

static tools::Long findBitRun ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW,
bool  i_bSet 
)
static

Definition at line 1552 of file pdfwriter_impl2.cxx.

References findBitRunImpl().

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

static tools::Long findBitRun ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW 
)
static

Definition at line 1560 of file pdfwriter_impl2.cxx.

References findBitRunImpl(), and isSet().

static tools::Long findBitRunImpl ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW,
bool  i_bSet 
)
static

Definition at line 1489 of file pdfwriter_impl2.cxx.

References nIndex, setRun, and unsetRun.

Referenced by findBitRun().

static bool isSet ( const Scanline  i_pLine,
tools::Long  i_nIndex 
)
static

Definition at line 1484 of file pdfwriter_impl2.cxx.

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

static bool lcl_canUsePDFAxialShading ( const Gradient rGradient)
static

Definition at line 1947 of file pdfwriter_impl2.cxx.

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

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

Variable Documentation

const PixelCode BlackPixelCodes[]

Definition at line 1724 of file pdfwriter_impl2.cxx.

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

const tools::Long setRun[256]
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, 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, 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,
}

Definition at line 1444 of file pdfwriter_impl2.cxx.

Referenced by findBitRunImpl().

const PixelCode WhitePixelCodes[]

Definition at line 1616 of file pdfwriter_impl2.cxx.