LibreOffice Module svtools (master) 1
Macros | Functions
exportdialog.cxx File Reference
#include <sal/config.h>
#include <algorithm>
#include <comphelper/propertyvalue.hxx>
#include <o3tl/safeint.hxx>
#include <tools/stream.hxx>
#include <tools/fract.hxx>
#include <utility>
#include <vcl/graphicfilter.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
#include <svtools/DocumentToGraphicRenderer.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <com/sun/star/drawing/XDrawView.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/graphic/PrimitiveFactory2D.hpp>
#include <com/sun/star/geometry/AffineMatrix2D.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <unotools/streamwrap.hxx>
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
#include <vcl/graph.hxx>
#include <rtl/ustrbuf.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include "exportdialog.hxx"
Include dependency graph for exportdialog.cxx:

Go to the source code of this file.

Macros

#define FORMAT_UNKNOWN   0
 
#define FORMAT_JPG   1
 
#define FORMAT_PNG   2
 
#define FORMAT_BMP   3
 
#define FORMAT_GIF   4
 
#define FORMAT_TIF   10
 
#define FORMAT_WMF   12
 
#define FORMAT_EMF   13
 
#define FORMAT_EPS   14
 
#define FORMAT_SVG   16
 
#define FORMAT_WEBP   17
 
#define UNIT_DEFAULT   -1
 
#define UNIT_INCH   0
 
#define UNIT_CM   1
 
#define UNIT_MM   2
 
#define UNIT_POINT   3
 
#define UNIT_PIXEL   4
 
#define UNIT_MAX_ID   UNIT_PIXEL
 

Functions

static sal_Int16 GetFilterFormat (std::u16string_view rExt)
 
static MapUnit GetMapUnit (sal_Int32 nUnit)
 
static basegfx::B2DRange GetShapeRangeForXShape (const uno::Reference< drawing::XShape > &rxShape, const uno::Reference< graphic::XPrimitiveFactory2D > &rxPrimitiveFactory2D, const uno::Sequence< beans::PropertyValue > &rViewInformation)
 
static OUString ImpValueOfInKB (sal_Int64 rVal)
 
 IMPL_LINK_NOARG (ExportDialog, SelectHdl, weld::SpinButton &, void)
 
 IMPL_LINK_NOARG (ExportDialog, SelectListBoxHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateHdl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateHdlLossless, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateLock, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateHdlMtfSizeX, weld::SpinButton &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateHdlMtfSizeY, weld::SpinButton &, void)
 
 IMPL_LINK_NOARG (ExportDialog, UpdateHdlNfResolution, weld::SpinButton &, void)
 
 IMPL_LINK_NOARG (ExportDialog, SbCompressionUpdateHdl, weld::Scale &, void)
 
 IMPL_LINK_NOARG (ExportDialog, OK, weld::Button &, void)
 

Macro Definition Documentation

◆ FORMAT_BMP

#define FORMAT_BMP   3

Definition at line 54 of file exportdialog.cxx.

◆ FORMAT_EMF

#define FORMAT_EMF   13

Definition at line 58 of file exportdialog.cxx.

◆ FORMAT_EPS

#define FORMAT_EPS   14

Definition at line 59 of file exportdialog.cxx.

◆ FORMAT_GIF

#define FORMAT_GIF   4

Definition at line 55 of file exportdialog.cxx.

◆ FORMAT_JPG

#define FORMAT_JPG   1

Definition at line 52 of file exportdialog.cxx.

◆ FORMAT_PNG

#define FORMAT_PNG   2

Definition at line 53 of file exportdialog.cxx.

◆ FORMAT_SVG

#define FORMAT_SVG   16

Definition at line 60 of file exportdialog.cxx.

◆ FORMAT_TIF

#define FORMAT_TIF   10

Definition at line 56 of file exportdialog.cxx.

◆ FORMAT_UNKNOWN

#define FORMAT_UNKNOWN   0

Definition at line 51 of file exportdialog.cxx.

◆ FORMAT_WEBP

#define FORMAT_WEBP   17

Definition at line 61 of file exportdialog.cxx.

◆ FORMAT_WMF

#define FORMAT_WMF   12

Definition at line 57 of file exportdialog.cxx.

◆ UNIT_CM

#define UNIT_CM   1

Definition at line 65 of file exportdialog.cxx.

◆ UNIT_DEFAULT

#define UNIT_DEFAULT   -1

Definition at line 63 of file exportdialog.cxx.

◆ UNIT_INCH

#define UNIT_INCH   0

Definition at line 64 of file exportdialog.cxx.

◆ UNIT_MAX_ID

#define UNIT_MAX_ID   UNIT_PIXEL

Definition at line 69 of file exportdialog.cxx.

◆ UNIT_MM

#define UNIT_MM   2

Definition at line 66 of file exportdialog.cxx.

◆ UNIT_PIXEL

#define UNIT_PIXEL   4

Definition at line 68 of file exportdialog.cxx.

◆ UNIT_POINT

#define UNIT_POINT   3

Definition at line 67 of file exportdialog.cxx.

Function Documentation

◆ GetFilterFormat()

static sal_Int16 GetFilterFormat ( std::u16string_view  rExt)
static

◆ GetMapUnit()

static MapUnit GetMapUnit ( sal_Int32  nUnit)
static

Definition at line 99 of file exportdialog.cxx.

References UNIT_CM, UNIT_INCH, UNIT_MM, UNIT_PIXEL, and UNIT_POINT.

Referenced by IMPL_LINK_NOARG(), and ExportDialog::updateControls().

◆ GetShapeRangeForXShape()

static basegfx::B2DRange GetShapeRangeForXShape ( const uno::Reference< drawing::XShape > &  rxShape,
const uno::Reference< graphic::XPrimitiveFactory2D > &  rxPrimitiveFactory2D,
const uno::Sequence< beans::PropertyValue > &  rViewInformation 
)
static

◆ IMPL_LINK_NOARG() [1/10]

IMPL_LINK_NOARG ( ExportDialog  ,
OK  ,
weld::Button ,
void   
)

Definition at line 1129 of file exportdialog.cxx.

References m_xDialog, and RET_OK.

◆ IMPL_LINK_NOARG() [2/10]

IMPL_LINK_NOARG ( ExportDialog  ,
SbCompressionUpdateHdl  ,
weld::Scale ,
void   
)

Definition at line 1123 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [3/10]

IMPL_LINK_NOARG ( ExportDialog  ,
SelectHdl  ,
weld::SpinButton ,
void   
)

Definition at line 1006 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [4/10]

IMPL_LINK_NOARG ( ExportDialog  ,
SelectListBoxHdl  ,
weld::ComboBox ,
void   
)

Definition at line 1011 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [5/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateHdl  ,
weld::Toggleable ,
void   
)

Definition at line 1016 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [6/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateHdlLossless  ,
weld::Toggleable ,
void   
)

Definition at line 1021 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [7/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateHdlMtfSizeX  ,
weld::SpinButton ,
void   
)

◆ IMPL_LINK_NOARG() [8/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateHdlMtfSizeY  ,
weld::SpinButton ,
void   
)

◆ IMPL_LINK_NOARG() [9/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateHdlNfResolution  ,
weld::SpinButton ,
void   
)

Definition at line 1110 of file exportdialog.cxx.

◆ IMPL_LINK_NOARG() [10/10]

IMPL_LINK_NOARG ( ExportDialog  ,
UpdateLock  ,
weld::Toggleable ,
void   
)

Definition at line 1028 of file exportdialog.cxx.

◆ ImpValueOfInKB()

static OUString ImpValueOfInKB ( sal_Int64  rVal)
static

Definition at line 890 of file exportdialog.cxx.

Referenced by ExportDialog::updateControls().