LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SdVectorizeDlg Class Referencefinal

#include <vectdlg.hxx>

Inheritance diagram for SdVectorizeDlg:
[legend]
Collaboration diagram for SdVectorizeDlg:
[legend]

Public Member Functions

 SdVectorizeDlg (weld::Window *pParent, const Bitmap &rBmp, ::sd::DrawDocShell *pDocShell)
 
virtual ~SdVectorizeDlg () override
 
const GDIMetaFileGetGDIMetaFile () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () 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::DrawDocShellm_pDocSh
 
Bitmap aBmp
 
Bitmap aPreviewBmp
 
GDIMetaFile aMtf
 
GraphCtrl m_aBmpWin
 
GraphCtrl m_aMtfWin
 
std::unique_ptr< weld::SpinButtonm_xNmLayers
 
std::unique_ptr< weld::MetricSpinButtonm_xMtReduce
 
std::unique_ptr< weld::Labelm_xFtFillHoles
 
std::unique_ptr< weld::MetricSpinButtonm_xMtFillHoles
 
std::unique_ptr< weld::CheckButtonm_xCbFillHoles
 
std::unique_ptr< weld::CustomWeldm_xBmpWin
 
std::unique_ptr< weld::CustomWeldm_xMtfWin
 
std::unique_ptr< weld::ProgressBarm_xPrgs
 
std::unique_ptr< weld::Buttonm_xBtnOK
 
std::unique_ptr< weld::Buttonm_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::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 35 of file vectdlg.hxx.

Constructor & Destructor Documentation

◆ SdVectorizeDlg()

SdVectorizeDlg::SdVectorizeDlg ( weld::Window pParent,
const Bitmap rBmp,
::sd::DrawDocShell pDocShell 
)

◆ ~SdVectorizeDlg()

SdVectorizeDlg::~SdVectorizeDlg ( )
overridevirtual

Definition at line 66 of file vectdlg.cxx.

Member Function Documentation

◆ AddTile()

void SdVectorizeDlg::AddTile ( BitmapReadAccess const *  pRAcc,
GDIMetaFile rMtf,
tools::Long  nPosX,
tools::Long  nPosY,
tools::Long  nWidth,
tools::Long  nHeight 
)
staticprivate

◆ Calculate()

void SdVectorizeDlg::Calculate ( Bitmap const &  rBmp,
GDIMetaFile rMtf 
)
private

◆ DECL_LINK() [1/6]

SdVectorizeDlg::DECL_LINK ( ClickOKHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/6]

SdVectorizeDlg::DECL_LINK ( ClickPreviewHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/6]

SdVectorizeDlg::DECL_LINK ( MetricModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [4/6]

SdVectorizeDlg::DECL_LINK ( ModifyHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [5/6]

SdVectorizeDlg::DECL_LINK ( ProgressHdl  ,
tools::Long  ,
void   
)
private

◆ DECL_LINK() [6/6]

SdVectorizeDlg::DECL_LINK ( ToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetGDIMetaFile()

const GDIMetaFile & SdVectorizeDlg::GetGDIMetaFile ( ) const
inline

Definition at line 78 of file vectdlg.hxx.

References aMtf.

◆ GetPreparedBitmap()

Bitmap SdVectorizeDlg::GetPreparedBitmap ( Bitmap const &  rBmp,
Fraction rScale 
)
private

◆ GetRect()

tools::Rectangle SdVectorizeDlg::GetRect ( const Size rDispSize,
const Size rBmpSize 
)
staticprivate

Definition at line 70 of file vectdlg.cxx.

References Size::Height(), Size::setHeight(), Size::setWidth(), and Size::Width().

Referenced by GetPreparedBitmap(), and InitPreviewBmp().

◆ InitPreviewBmp()

void SdVectorizeDlg::InitPreviewBmp ( )
private

◆ LoadSettings()

void SdVectorizeDlg::LoadSettings ( )
private

◆ SaveSettings()

void SdVectorizeDlg::SaveSettings ( ) const
private

Member Data Documentation

◆ aBmp

Bitmap SdVectorizeDlg::aBmp
private

Definition at line 38 of file vectdlg.hxx.

Referenced by InitPreviewBmp().

◆ aMtf

GDIMetaFile SdVectorizeDlg::aMtf
private

Definition at line 40 of file vectdlg.hxx.

Referenced by GetGDIMetaFile().

◆ aPreviewBmp

Bitmap SdVectorizeDlg::aPreviewBmp
private

Definition at line 39 of file vectdlg.hxx.

Referenced by InitPreviewBmp().

◆ m_aBmpWin

GraphCtrl SdVectorizeDlg::m_aBmpWin
private

Definition at line 42 of file vectdlg.hxx.

Referenced by InitPreviewBmp().

◆ m_aMtfWin

GraphCtrl SdVectorizeDlg::m_aMtfWin
private

Definition at line 43 of file vectdlg.hxx.

◆ m_pDocSh

::sd::DrawDocShell* SdVectorizeDlg::m_pDocSh
private

Definition at line 37 of file vectdlg.hxx.

Referenced by Calculate().

◆ m_xBmpWin

std::unique_ptr<weld::CustomWeld> SdVectorizeDlg::m_xBmpWin
private

Definition at line 50 of file vectdlg.hxx.

Referenced by SdVectorizeDlg().

◆ m_xBtnOK

std::unique_ptr<weld::Button> SdVectorizeDlg::m_xBtnOK
private

Definition at line 53 of file vectdlg.hxx.

Referenced by SdVectorizeDlg().

◆ m_xBtnPreview

std::unique_ptr<weld::Button> SdVectorizeDlg::m_xBtnPreview
private

Definition at line 54 of file vectdlg.hxx.

Referenced by SdVectorizeDlg().

◆ m_xCbFillHoles

std::unique_ptr<weld::CheckButton> SdVectorizeDlg::m_xCbFillHoles
private

Definition at line 49 of file vectdlg.hxx.

Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().

◆ m_xFtFillHoles

std::unique_ptr<weld::Label> SdVectorizeDlg::m_xFtFillHoles
private

Definition at line 47 of file vectdlg.hxx.

Referenced by SdVectorizeDlg().

◆ m_xMtFillHoles

std::unique_ptr<weld::MetricSpinButton> SdVectorizeDlg::m_xMtFillHoles
private

Definition at line 48 of file vectdlg.hxx.

Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().

◆ m_xMtfWin

std::unique_ptr<weld::CustomWeld> SdVectorizeDlg::m_xMtfWin
private

Definition at line 51 of file vectdlg.hxx.

Referenced by SdVectorizeDlg().

◆ m_xMtReduce

std::unique_ptr<weld::MetricSpinButton> SdVectorizeDlg::m_xMtReduce
private

Definition at line 46 of file vectdlg.hxx.

Referenced by Calculate(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().

◆ m_xNmLayers

std::unique_ptr<weld::SpinButton> SdVectorizeDlg::m_xNmLayers
private

Definition at line 45 of file vectdlg.hxx.

Referenced by GetPreparedBitmap(), LoadSettings(), SaveSettings(), and SdVectorizeDlg().

◆ m_xPrgs

std::unique_ptr<weld::ProgressBar> SdVectorizeDlg::m_xPrgs
private

Definition at line 52 of file vectdlg.hxx.

Referenced by Calculate().


The documentation for this class was generated from the following files: