LibreOffice Module svtools (master) 1
|
#include <exportdialog.hxx>
Public Member Functions | |
ExportDialog (FltCallDialogParameter &rPara, css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< css::lang::XComponent > &rxSourceDocument, bool bExportSelection, bool bIsExportVectorFormat, bool bGraphicsSource, const css::uno::Reference< css::graphic::XGraphic > &rxGraphic) | |
virtual | ~ExportDialog () override |
![]() | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
![]() | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
DECL_LINK (UpdateHdl, weld::Toggleable &, void) | |
DECL_LINK (UpdateLock, weld::Toggleable &, void) | |
DECL_LINK (SelectListBoxHdl, weld::ComboBox &, void) | |
DECL_LINK (SelectHdl, weld::SpinButton &, void) | |
DECL_LINK (UpdateHdlMtfSizeX, weld::SpinButton &, void) | |
DECL_LINK (UpdateHdlMtfSizeY, weld::SpinButton &, void) | |
DECL_LINK (UpdateHdlNfResolution, weld::SpinButton &, void) | |
DECL_LINK (SbCompressionUpdateHdl, weld::Scale &, void) | |
DECL_LINK (UpdateHdlLossless, weld::Toggleable &, void) | |
DECL_LINK (OK, weld::Button &, void) | |
void | setupSizeControls () |
void | createFilterOptions () |
void | setupControls () |
void | updateControls () |
void | GetGraphicSource () |
void | GetGraphicStream () |
css::uno::Sequence< css::beans::PropertyValue > | GetFilterData (bool bUpdateConfig) |
sal_uInt32 | GetRawFileSize () const |
bool | IsTempExportAvailable () const |
css::awt::Size | GetOriginalSize () |
sal_Int32 | GetDefaultUnit () const |
Additional Inherited Members | |
![]() | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
![]() | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 41 of file exportdialog.hxx.
ExportDialog::ExportDialog | ( | FltCallDialogParameter & | rPara, |
css::uno::Reference< css::uno::XComponentContext > | xContext, | ||
const css::uno::Reference< css::lang::XComponent > & | rxSourceDocument, | ||
bool | bExportSelection, | ||
bool | bIsExportVectorFormat, | ||
bool | bGraphicsSource, | ||
const css::uno::Reference< css::graphic::XGraphic > & | rxGraphic | ||
) |
Definition at line 554 of file exportdialog.cxx.
References FltCallDialogParameter::aFilterData, weld::Scale::connect_value_changed(), weld::SpinButton::connect_value_changed(), Application::GetDefaultDevice(), GetFilterFormat(), GetGraphicSource(), Size::getHeight(), GetOriginalSize(), Graphic::GetSizePixel(), Size::getWidth(), Size::Height(), LINK, weld::GenericDialogController::m_xDialog, maExt, maOriginalSize, maResolution, maSize, mbIsPixelFormat, mnFormat, mnInitialResolutionUnit, mnMaxFilesizeForRealtimePreview, mpFilterOptionsItem, mpNfCompression, mpOptionsItem, mpSbCompression, mxBtnOK, mxCbEPSPreviewEPSI, mxCbEPSPreviewTIFF, mxCbInterlaced, mxCbLossless, mxCbRLEEncoding, mxCbSaveTransparency, mxContext, mxFtEstimatedSize, mxGraphic, mxGraphic, mxLbColorDepth, mxLbResolution, mxLbSizeX, mxMfSizeX, mxMfSizeY, mxModifyDimension, mxModifyResolution, mxNfResolution, mxRbBinary, mxRbEPSCompressionLZW, mxRbEPSCompressionNone, mxRbEPSLevel1, mxRbEPSLevel2, mxRbText, OK, setupControls(), UNIT_DEFAULT, updateControls(), and Size::Width().
|
overridevirtual |
Definition at line 997 of file exportdialog.cxx.
|
private |
Definition at line 754 of file exportdialog.cxx.
References FORMAT_BMP, FORMAT_EPS, FORMAT_GIF, FORMAT_JPG, FORMAT_PNG, FORMAT_WEBP, mnFormat, mpFilterOptionsItem, mpNfCompression, mpSbCompression, ms1BitThreshold, ms24BitColor, ms8BitColorPalette, ms8BitGrayscale, mxBMPCompression, mxCbEPSPreviewEPSI, mxCbEPSPreviewTIFF, mxCbInterlaced, mxCbLossless, mxCbRLEEncoding, mxCbSaveTransparency, mxColorDepth, mxDrawingObjects, mxEPSGrid, mxJPGWEBPQuality, mxLbColorDepth, mxMode, mxNfJpgWebpCompression, mxNfPngCompression, mxPNGCompression, mxRbEPSColorFormat1, mxRbEPSColorFormat2, mxRbEPSCompressionLZW, mxRbEPSCompressionNone, mxRbEPSLevel1, mxRbEPSLevel2, mxSbJpgWebpCompression, mxSbPngCompression, nVersion, weld::Scale::set_range(), weld::SpinButton::set_range(), and weld::SpinButton::set_value().
Referenced by setupControls().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 113 of file exportdialog.cxx.
References FltCallDialogParameter::eFieldUnit, mrFltCallPara, UNIT_CM, UNIT_INCH, UNIT_MM, and UNIT_POINT.
Referenced by GetFilterData(), and setupSizeControls().
|
private |
Definition at line 157 of file exportdialog.cxx.
References FORMAT_BMP, FORMAT_EPS, FORMAT_GIF, FORMAT_JPG, FORMAT_PNG, FORMAT_WEBP, weld::Scale::get_value(), GetDefaultUnit(), FilterConfigItem::GetFilterData(), maResolution, maSize, mbIsPixelFormat, mnFormat, mnInitialResolutionUnit, mpFilterOptionsItem, mpOptionsItem, mpSbCompression, mxCbEPSPreviewEPSI, mxCbEPSPreviewTIFF, mxCbInterlaced, mxCbLossless, mxCbRLEEncoding, mxCbSaveTransparency, mxLbColorDepth, mxLbResolution, mxLbSizeX, mxNfResolution, mxRbEPSColorFormat2, mxRbEPSCompressionNone, mxRbEPSLevel2, nValue, u, UNIT_CM, UNIT_DEFAULT, UNIT_MAX_ID, UNIT_PIXEL, FilterConfigItem::WriteBool(), and FilterConfigItem::WriteInt32().
Referenced by GetGraphicStream().
|
private |
Definition at line 376 of file exportdialog.cxx.
References DocumentToGraphicRenderer::isShapeSelected(), mbExportSelection, mbGraphicsSource, mxGraphic, mxPage, mxShape, mxShapes, mxSourceDocument, xController, and xModel.
Referenced by ExportDialog().
|
private |
Definition at line 414 of file exportdialog.cxx.
References COL_WHITE(), GraphicFilter::ExportGraphic(), Graphic::GetBitmapEx(), DocumentToGraphicRenderer::getCurrentPage(), DocumentToGraphicRenderer::getDocumentSizeInPixels(), GraphicFilter::GetExportFormatNumberForShortName(), GetFilterData(), GraphicFilter::GetGraphicFilter(), Graphic::GetSizePixel(), Graphic::GetType(), Graphic::GetXGraphic(), Size::Height(), GraphicFilter::IsExportPixelFormat(), IsTempExportAvailable(), maExt, comphelper::makePropertyValue(), maSize, mbExportSelection, mbGraphicsSource, mbIsPixelFormat, mpTempStream, mxContext, mxGraphic, mxPage, mxShape, mxShapes, mxSourceDocument, DocumentToGraphicRenderer::renderToGraphic(), BitmapEx::Scale(), u, Size::Width(), and xStream.
Referenced by updateControls().
|
private |
Definition at line 318 of file exportdialog.cxx.
References basegfx::Range2D< typename TYPE, typename TRAITS >::expand(), basegfx::B2DHomMatrix::get(), DocumentToGraphicRenderer::getCurrentPage(), Application::GetDefaultDevice(), DocumentToGraphicRenderer::getDocumentSizeIn100mm(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), GetShapeRangeForXShape(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), Size::Height(), comphelper::makePropertyValue(), mbExportSelection, mbGraphicsSource, mxContext, mxPage, mxShape, mxShapes, mxSourceDocument, nCount, nIndex, and Size::Width().
Referenced by ExportDialog().
|
private |
Definition at line 519 of file exportdialog.cxx.
References maSize, mbIsPixelFormat, ms1BitThreshold, ms24BitColor, ms8BitColorPalette, ms8BitGrayscale, mxLbColorDepth, and SAL_MAX_UINT32.
Referenced by IsTempExportAvailable(), and updateControls().
|
private |
Definition at line 549 of file exportdialog.cxx.
References GetRawFileSize(), o3tl::make_unsigned(), and mnMaxFilesizeForRealtimePreview.
Referenced by GetGraphicStream().
|
private |
Definition at line 881 of file exportdialog.cxx.
References createFilterOptions(), mbIsPixelFormat, mnMaxFilesizeForRealtimePreview, mxInfo, and setupSizeControls().
Referenced by ExportDialog().
|
private |
Definition at line 717 of file exportdialog.cxx.
References GetDefaultUnit(), mbIsPixelFormat, mnInitialResolutionUnit, mpOptionsItem, mxFtResolution, mxLbResolution, mxLbSizeX, mxNfResolution, UNIT_CM, UNIT_DEFAULT, UNIT_MAX_ID, and UNIT_PIXEL.
Referenced by setupControls().
|
private |
Definition at line 902 of file exportdialog.cxx.
References weld::SpinButton::get_value(), weld::Widget::get_visible(), GetGraphicStream(), GetMapUnit(), GetRawFileSize(), Size::Height(), ImpValueOfInKB(), OutputDevice::LogicToLogic(), maResolution, maSize, mbIsPixelFormat, mnMaxFilesizeForRealtimePreview, mpNfCompression, mpSbCompression, mpTempStream, msEstimatedSizePix1, msEstimatedSizePix2, msEstimatedSizeVec, mxFtEstimatedSize, mxLbResolution, mxLbSizeX, mxMfSizeX, mxMfSizeY, mxNfResolution, mxRbEPSColorFormat1, mxRbEPSColorFormat2, mxRbEPSCompressionLZW, mxRbEPSCompressionNone, mxRbEPSLevel1, weld::Scale::set_value(), and Size::Width().
Referenced by ExportDialog().
|
private |
Definition at line 66 of file exportdialog.hxx.
Referenced by ExportDialog(), and GetGraphicStream().
|
private |
Definition at line 72 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 82 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), and updateControls().
|
private |
Definition at line 73 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), GetGraphicStream(), GetRawFileSize(), and updateControls().
|
private |
Definition at line 76 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 77 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 75 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), GetGraphicStream(), GetRawFileSize(), setupControls(), setupSizeControls(), and updateControls().
|
private |
Definition at line 67 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 79 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), and setupSizeControls().
|
private |
Definition at line 68 of file exportdialog.hxx.
Referenced by ExportDialog(), IsTempExportAvailable(), setupControls(), and updateControls().
|
private |
Definition at line 64 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 92 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and updateControls().
|
private |
Definition at line 63 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), and setupSizeControls().
|
private |
Definition at line 91 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), GetFilterData(), and updateControls().
|
private |
Definition at line 70 of file exportdialog.hxx.
Referenced by GetGraphicStream(), and updateControls().
|
private |
Definition at line 45 of file exportdialog.hxx.
Referenced by GetDefaultUnit().
|
private |
Definition at line 58 of file exportdialog.hxx.
Referenced by createFilterOptions(), and GetRawFileSize().
|
private |
Definition at line 61 of file exportdialog.hxx.
Referenced by createFilterOptions(), and GetRawFileSize().
|
private |
Definition at line 60 of file exportdialog.hxx.
Referenced by createFilterOptions(), and GetRawFileSize().
|
private |
Definition at line 59 of file exportdialog.hxx.
Referenced by createFilterOptions(), and GetRawFileSize().
|
private |
Definition at line 54 of file exportdialog.hxx.
Referenced by updateControls().
|
private |
Definition at line 55 of file exportdialog.hxx.
Referenced by updateControls().
|
private |
Definition at line 56 of file exportdialog.hxx.
Referenced by updateControls().
|
private |
Definition at line 118 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 144 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 132 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 131 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 116 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 113 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 119 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 122 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 101 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 48 of file exportdialog.hxx.
Referenced by GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 121 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 124 of file exportdialog.hxx.
|
private |
Definition at line 128 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 142 of file exportdialog.hxx.
Referenced by ExportDialog(), and updateControls().
|
private |
Definition at line 97 of file exportdialog.hxx.
Referenced by setupSizeControls().
|
private |
Definition at line 52 of file exportdialog.hxx.
Referenced by ExportDialog(), GetGraphicSource(), and GetGraphicStream().
|
private |
Definition at line 141 of file exportdialog.hxx.
Referenced by setupControls().
|
private |
Definition at line 104 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 102 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), GetFilterData(), and GetRawFileSize().
|
private |
Definition at line 99 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), setupSizeControls(), and updateControls().
|
private |
Definition at line 95 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), setupSizeControls(), and updateControls().
|
private |
Definition at line 94 of file exportdialog.hxx.
Referenced by ExportDialog(), and updateControls().
|
private |
Definition at line 96 of file exportdialog.hxx.
Referenced by ExportDialog(), and updateControls().
|
private |
Definition at line 115 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 129 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 130 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 111 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 108 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 98 of file exportdialog.hxx.
Referenced by ExportDialog(), GetFilterData(), setupSizeControls(), and updateControls().
|
private |
Definition at line 89 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 105 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 125 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 135 of file exportdialog.hxx.
Referenced by createFilterOptions(), and updateControls().
|
private |
Definition at line 136 of file exportdialog.hxx.
Referenced by createFilterOptions(), GetFilterData(), and updateControls().
|
private |
Definition at line 137 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and updateControls().
|
private |
Definition at line 138 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), GetFilterData(), and updateControls().
|
private |
Definition at line 133 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and updateControls().
|
private |
Definition at line 134 of file exportdialog.hxx.
Referenced by createFilterOptions(), ExportDialog(), and GetFilterData().
|
private |
Definition at line 126 of file exportdialog.hxx.
Referenced by ExportDialog().
|
private |
Definition at line 110 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 107 of file exportdialog.hxx.
Referenced by createFilterOptions().
|
private |
Definition at line 85 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 87 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().
|
private |
Definition at line 50 of file exportdialog.hxx.
Referenced by GetGraphicSource(), GetGraphicStream(), and GetOriginalSize().