|
LibreOffice Module svtools (master) 1
|
#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"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) | |
| #define FORMAT_BMP 3 |
Definition at line 54 of file exportdialog.cxx.
| #define FORMAT_EMF 13 |
Definition at line 58 of file exportdialog.cxx.
| #define FORMAT_EPS 14 |
Definition at line 59 of file exportdialog.cxx.
| #define FORMAT_GIF 4 |
Definition at line 55 of file exportdialog.cxx.
| #define FORMAT_JPG 1 |
Definition at line 52 of file exportdialog.cxx.
| #define FORMAT_PNG 2 |
Definition at line 53 of file exportdialog.cxx.
| #define FORMAT_SVG 16 |
Definition at line 60 of file exportdialog.cxx.
| #define FORMAT_TIF 10 |
Definition at line 56 of file exportdialog.cxx.
| #define FORMAT_UNKNOWN 0 |
Definition at line 51 of file exportdialog.cxx.
| #define FORMAT_WEBP 17 |
Definition at line 61 of file exportdialog.cxx.
| #define FORMAT_WMF 12 |
Definition at line 57 of file exportdialog.cxx.
| #define UNIT_CM 1 |
Definition at line 65 of file exportdialog.cxx.
| #define UNIT_DEFAULT -1 |
Definition at line 63 of file exportdialog.cxx.
| #define UNIT_INCH 0 |
Definition at line 64 of file exportdialog.cxx.
| #define UNIT_MAX_ID UNIT_PIXEL |
Definition at line 69 of file exportdialog.cxx.
| #define UNIT_MM 2 |
Definition at line 66 of file exportdialog.cxx.
| #define UNIT_PIXEL 4 |
Definition at line 68 of file exportdialog.cxx.
| #define UNIT_POINT 3 |
Definition at line 67 of file exportdialog.cxx.
|
static |
Definition at line 73 of file exportdialog.cxx.
References FORMAT_BMP, FORMAT_EMF, FORMAT_EPS, FORMAT_GIF, FORMAT_JPG, FORMAT_PNG, FORMAT_SVG, FORMAT_TIF, FORMAT_UNKNOWN, FORMAT_WEBP, FORMAT_WMF, and u.
Referenced by ExportDialog::ExportDialog().
|
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().
|
static |
Definition at line 140 of file exportdialog.cxx.
References basegfx::Range2D< typename TYPE, typename TRAITS >::expand().
Referenced by ExportDialog::GetOriginalSize().
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| OK | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 1129 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| SbCompressionUpdateHdl | , | ||
| weld::Scale & | , | ||
| void | |||
| ) |
Definition at line 1123 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| SelectHdl | , | ||
| weld::SpinButton & | , | ||
| void | |||
| ) |
Definition at line 1006 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| SelectListBoxHdl | , | ||
| weld::ComboBox & | , | ||
| void | |||
| ) |
Definition at line 1011 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateHdl | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 1016 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateHdlLossless | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 1021 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateHdlMtfSizeX | , | ||
| weld::SpinButton & | , | ||
| void | |||
| ) |
Definition at line 1046 of file exportdialog.cxx.
References GetMapUnit(), Size::Height(), if(), OutputDevice::LogicToLogic(), maSize, and Size::Width().
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateHdlMtfSizeY | , | ||
| weld::SpinButton & | , | ||
| void | |||
| ) |
Definition at line 1078 of file exportdialog.cxx.
References GetMapUnit(), Size::Height(), if(), OutputDevice::LogicToLogic(), maSize, and Size::Width().
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateHdlNfResolution | , | ||
| weld::SpinButton & | , | ||
| void | |||
| ) |
Definition at line 1110 of file exportdialog.cxx.
| IMPL_LINK_NOARG | ( | ExportDialog | , |
| UpdateLock | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 1028 of file exportdialog.cxx.
|
static |
Definition at line 890 of file exportdialog.cxx.
Referenced by ExportDialog::updateControls().