|
LibreOffice Module sd (master) 1
|
#include <vectdlg.hxx>
Public Member Functions | |
| SdVectorizeDlg (weld::Window *pParent, const Bitmap &rBmp, ::sd::DrawDocShell *pDocShell) | |
| virtual | ~SdVectorizeDlg () override |
| const GDIMetaFile & | GetGDIMetaFile () const |
Public Member Functions inherited from weld::GenericDialogController | |
| GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
| virtual Dialog * | getDialog () override |
| virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
| 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 | |
| void | LoadSettings () |
| void | SaveSettings () const |
| void | InitPreviewBmp () |
| Bitmap | GetPreparedBitmap (Bitmap const &rBmp, Fraction &rScale) |
| void | Calculate (Bitmap const &rBmp, GDIMetaFile &rMtf) |
| DECL_LINK (ProgressHdl, tools::Long, void) | |
| DECL_LINK (ClickPreviewHdl, weld::Button &, void) | |
| DECL_LINK (ClickOKHdl, weld::Button &, void) | |
| DECL_LINK (ToggleHdl, weld::Toggleable &, void) | |
| DECL_LINK (ModifyHdl, weld::SpinButton &, void) | |
| DECL_LINK (MetricModifyHdl, weld::MetricSpinButton &, void) | |
Static Private Member Functions | |
| ::tools::Rectangle | GetRect (const Size &rDispSize, const Size &rBmpSize) |
| static void | AddTile (BitmapReadAccess const *pRAcc, GDIMetaFile &rMtf, tools::Long nPosX, tools::Long nPosY, tools::Long nWidth, tools::Long nHeight) |
Private Attributes | |
| ::sd::DrawDocShell * | m_pDocSh |
| Bitmap | aBmp |
| Bitmap | aPreviewBmp |
| GDIMetaFile | aMtf |
| GraphCtrl | m_aBmpWin |
| GraphCtrl | m_aMtfWin |
| std::unique_ptr< weld::SpinButton > | m_xNmLayers |
| std::unique_ptr< weld::MetricSpinButton > | m_xMtReduce |
| std::unique_ptr< weld::Label > | m_xFtFillHoles |
| std::unique_ptr< weld::MetricSpinButton > | m_xMtFillHoles |
| std::unique_ptr< weld::CheckButton > | m_xCbFillHoles |
| std::unique_ptr< weld::CustomWeld > | m_xBmpWin |
| std::unique_ptr< weld::CustomWeld > | m_xMtfWin |
| std::unique_ptr< weld::ProgressBar > | m_xPrgs |
| std::unique_ptr< weld::Button > | m_xBtnOK |
| std::unique_ptr< weld::Button > | m_xBtnPreview |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
| static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
| std::unique_ptr< weld::Builder > | m_xBuilder |
| std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 35 of file vectdlg.hxx.
| SdVectorizeDlg::SdVectorizeDlg | ( | weld::Window * | pParent, |
| const Bitmap & | rBmp, | ||
| ::sd::DrawDocShell * | pDocShell | ||
| ) |
Definition at line 33 of file vectdlg.cxx.
References get(), InitPreviewBmp(), LINK, LoadSettings(), m_xBmpWin, m_xBtnOK, m_xBtnPreview, m_xCbFillHoles, m_xDialog, m_xFtFillHoles, m_xMtFillHoles, m_xMtfWin, m_xMtReduce, m_xNmLayers, and PIXEL.
|
overridevirtual |
Definition at line 66 of file vectdlg.cxx.
|
staticprivate |
Definition at line 204 of file vectdlg.cxx.
References GDIMetaFile::AddAction(), tools::Rectangle::Bottom(), FRound(), BitmapReadAccess::GetColor(), Application::GetDefaultDevice(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), Size::Height(), OutputDevice::PixelToLogic(), tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetRight(), and Size::Width().
Referenced by Calculate().
|
private |
Definition at line 130 of file vectdlg.cxx.
References GDIMetaFile::AddAction(), AddTile(), aMap, MetaAction::Clone(), vcl::ScopedBitmapAccess< class Access, class Bitmap, Access *(Bitmap::*)() Acquire >::get(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), GetPreparedBitmap(), Bitmap::IsEmpty(), LINK, m_pDocSh, m_xCbFillHoles, m_xMtFillHoles, m_xMtReduce, m_xPrgs, n, nCount, vcl::ScopedBitmapAccess< class Access, class Bitmap, Access *(Bitmap::*)() Acquire >::reset(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), SfxObjectShell::SetWaitCursor(), and Bitmap::Vectorize().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 78 of file vectdlg.hxx.
References aMtf.
Definition at line 109 of file vectdlg.cxx.
References BitmapFilter::Filter(), BitmapEx::GetBitmap(), GetRect(), Bitmap::GetSizePixel(), Size::Height(), m_xNmLayers, Bitmap::Scale(), VECTORIZE_MAX_EXTENT, and Size::Width().
Referenced by Calculate().
|
staticprivate |
Definition at line 70 of file vectdlg.cxx.
References Size::Height(), Size::setHeight(), Size::setWidth(), and Size::Width().
Referenced by GetPreparedBitmap(), and InitPreviewBmp().
|
private |
Definition at line 100 of file vectdlg.cxx.
References aBmp, aPreviewBmp, GetRect(), Bitmap::GetSizePixel(), m_aBmpWin, Bitmap::Scale(), and GraphCtrl::SetGraphic().
Referenced by SdVectorizeDlg().
|
private |
Definition at line 291 of file vectdlg.cxx.
References tools::SvRef< typename T >::is(), Load, m_xCbFillHoles, m_xMtFillHoles, m_xMtReduce, m_xNmLayers, SD_MOD, and SD_OPTION_VECTORIZE.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 322 of file vectdlg.cxx.
References tools::SvRef< typename T >::is(), m_xCbFillHoles, m_xMtFillHoles, m_xMtReduce, m_xNmLayers, SD_MOD, SD_OPTION_VECTORIZE, and Store.
|
private |
Definition at line 38 of file vectdlg.hxx.
Referenced by InitPreviewBmp().
|
private |
Definition at line 40 of file vectdlg.hxx.
Referenced by GetGDIMetaFile().
|
private |
Definition at line 39 of file vectdlg.hxx.
Referenced by InitPreviewBmp().
|
private |
Definition at line 42 of file vectdlg.hxx.
Referenced by InitPreviewBmp().
|
private |
Definition at line 43 of file vectdlg.hxx.
|
private |
Definition at line 37 of file vectdlg.hxx.
Referenced by Calculate().
|
private |
Definition at line 50 of file vectdlg.hxx.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 53 of file vectdlg.hxx.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 54 of file vectdlg.hxx.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 49 of file vectdlg.hxx.
Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().
|
private |
Definition at line 47 of file vectdlg.hxx.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 48 of file vectdlg.hxx.
Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().
|
private |
Definition at line 51 of file vectdlg.hxx.
Referenced by SdVectorizeDlg().
|
private |
Definition at line 46 of file vectdlg.hxx.
Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().
|
private |
Definition at line 45 of file vectdlg.hxx.
Referenced by GetPreparedBitmap(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().
|
private |
Definition at line 52 of file vectdlg.hxx.
Referenced by Calculate().