LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
SvxBmpMask Class Referencefinal

#include <bmpmask.hxx>

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

Public Member Functions

 SvxBmpMask (SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window *pParent)
 
virtual ~SvxBmpMask () override
 
virtual void dispose () override
 
void SetColor (const Color &rColor)
 
void PipetteClicked ()
 
void SetExecState (bool bEnable)
 
Graphic Mask (const Graphic &rGraphic)
 
bool IsEyedropping () const
 
void onSelect (const MaskSet *pSet)
 is called by a MaskSet when it is selected More...
 
- Public Member Functions inherited from SfxDockingWindow
 SfxDockingWindow (SfxBindings *pBindings, SfxChildWindow *pCW, vcl::Window *pParent, WinBits nWinBits)
 
 SfxDockingWindow (SfxBindings *pBindings, SfxChildWindow *pCW, vcl::Window *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
virtual ~SfxDockingWindow () override
 
virtual void dispose () override
 
void Initialize (SfxChildWinInfo *pInfo)
 
virtual void FillInfo (SfxChildWinInfo &) const
 
virtual void StateChanged (StateChangedType nStateChange) override
 
void SetDockingRects (const tools::Rectangle &rOuter, const tools::Rectangle &rInner)
 
const tools::RectangleGetInnerRect () const
 
const tools::RectangleGetOuterRect () const
 
SfxBindingsGetBindings () const
 
sal_uInt16 GetType () const
 
SfxChildAlignment GetAlignment () const
 
void SetAlignment (SfxChildAlignment eAlign)
 
const SizeGetFloatingSize () const
 
void SetFloatingSize (const Size &rSize)
 
void SetMinOutputSizePixel (const Size &rSize)
 
const SizeGetMinOutputSizePixel () const
 
virtual bool EventNotify (NotifyEvent &rNEvt) override
 
 DECL_DLLPRIVATE_LINK (TimerHdl, Timer *, void)
 
SAL_DLLPRIVATE void Initialize_Impl ()
 
SAL_DLLPRIVATE void SetItemSize_Impl (const Size &rSize)
 
SAL_DLLPRIVATE void Disappear_Impl ()
 
SAL_DLLPRIVATE void Reappear_Impl ()
 
SAL_DLLPRIVATE bool IsAutoHide_Impl () const
 
SAL_DLLPRIVATE void AutoShow_Impl ()
 
SAL_DLLPRIVATE void ReleaseChildWindow_Impl ()
 

Private Member Functions

virtual bool Close () override
 
sal_uInt16 InitColorArrays (Color *pSrcCols, Color *pDstCols, sal_uInt8 *pTols)
 
void ImpMask (BitmapEx &rBitmap)
 
GDIMetaFile ImpMask (const GDIMetaFile &rMtf)
 
Animation ImpMask (const Animation &rAnimation)
 
BitmapEx ImpMaskTransparent (const BitmapEx &rBitmapEx, const Color &rColor, const sal_uInt8 nTol)
 
GDIMetaFile GetMetaFile (const Graphic &rGraphic)
 
SVX_DLLPRIVATE void SetAccessibleNames ()
 Set names for accessible objects. More...
 

Static Private Member Functions

static Animation ImpReplaceTransparency (const Animation &rAnim, const Color &rColor)
 
static GDIMetaFile ImpReplaceTransparency (const GDIMetaFile &rMtf, const Color &rColor)
 

Private Attributes

std::unique_ptr< weld::Toolbarm_xTbxPipette
 
std::unique_ptr< BmpColorWindowm_xCtlPipette
 
std::unique_ptr< weld::CustomWeldm_xCtlPipetteWin
 
std::unique_ptr< weld::Buttonm_xBtnExec
 
std::unique_ptr< weld::CheckButtonm_xCbx1
 
std::unique_ptr< MaskSetm_xQSet1
 
std::unique_ptr< weld::CustomWeldm_xQSetWin1
 
std::unique_ptr< weld::MetricSpinButtonm_xSp1
 
std::unique_ptr< ColorListBoxm_xLbColor1
 
std::unique_ptr< weld::CheckButtonm_xCbx2
 
std::unique_ptr< MaskSetm_xQSet2
 
std::unique_ptr< weld::CustomWeldm_xQSetWin2
 
std::unique_ptr< weld::MetricSpinButtonm_xSp2
 
std::unique_ptr< ColorListBoxm_xLbColor2
 
std::unique_ptr< weld::CheckButtonm_xCbx3
 
std::unique_ptr< MaskSetm_xQSet3
 
std::unique_ptr< weld::CustomWeldm_xQSetWin3
 
std::unique_ptr< weld::MetricSpinButtonm_xSp3
 
std::unique_ptr< ColorListBoxm_xLbColor3
 
std::unique_ptr< weld::CheckButtonm_xCbx4
 
std::unique_ptr< MaskSetm_xQSet4
 
std::unique_ptr< weld::CustomWeldm_xQSetWin4
 
std::unique_ptr< weld::MetricSpinButtonm_xSp4
 
std::unique_ptr< ColorListBoxm_xLbColor4
 
std::unique_ptr< weld::CheckButtonm_xCbxTrans
 
std::unique_ptr< ColorListBoxm_xLbColorTrans
 
std::unique_ptr< MaskDatam_xData
 
Color aPipetteColor
 
SvxBmpMaskSelectItem aSelItem
 

Friends

class MaskData
 
class MaskSet
 

Additional Inherited Members

- Protected Member Functions inherited from SfxDockingWindow
SfxChildAlignment CalcAlignment (const Point &rPos, tools::Rectangle &rRect)
 
virtual Size CalcDockingSize (SfxChildAlignment)
 
virtual SfxChildAlignment CheckAlignment (SfxChildAlignment, SfxChildAlignment)
 
virtual void Resize () override
 
virtual bool PrepareToggleFloatingMode () override
 
virtual void ToggleFloatingMode () override
 
virtual void StartDocking () override
 
virtual bool Docking (const Point &rPos, tools::Rectangle &rRect) override
 
virtual void EndDocking (const tools::Rectangle &rRect, bool bFloatMode) override
 
virtual void Resizing (Size &rSize) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual bool Close () override
 
virtual void Move () override
 
SAL_DLLPRIVATE SfxChildWindowGetChildWindow_Impl ()
 
- Protected Attributes inherited from SfxDockingWindow
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Boxm_xContainer
 

Detailed Description

Definition at line 87 of file bmpmask.hxx.

Constructor & Destructor Documentation

◆ SvxBmpMask()

SvxBmpMask::SvxBmpMask ( SfxBindings pBindinx,
SfxChildWindow pCW,
vcl::Window pParent 
)

Definition at line 347 of file _bmpmask.cxx.

References GetFrameWeld(), and PERCENT().

◆ ~SvxBmpMask()

SvxBmpMask::~SvxBmpMask ( )
overridevirtual

Definition at line 447 of file _bmpmask.cxx.

Member Function Documentation

◆ Close()

bool SvxBmpMask::Close ( )
overrideprivatevirtual

◆ dispose()

void SvxBmpMask::dispose ( void  )
overridevirtual

◆ GetMetaFile()

GDIMetaFile SvxBmpMask::GetMetaFile ( const Graphic rGraphic)
private

Definition at line 934 of file _bmpmask.cxx.

References Graphic::GetGDIMetaFile(), ImpMask(), ImpReplaceTransparency(), m_xCbxTrans, and m_xLbColorTrans.

Referenced by Mask().

◆ ImpMask() [1/3]

void SvxBmpMask::ImpMask ( BitmapEx rBitmap)
private

Definition at line 598 of file _bmpmask.cxx.

References InitColorArrays(), nCount, and BitmapEx::Replace().

Referenced by GetMetaFile(), and Mask().

◆ ImpMask() [2/3]

Animation SvxBmpMask::ImpMask ( const Animation rAnimation)
private

◆ ImpMask() [3/3]

GDIMetaFile SvxBmpMask::ImpMask ( const GDIMetaFile rMtf)
private

Definition at line 647 of file _bmpmask.cxx.

References GDIMetaFile::AddAction(), COL_TRANSPARENT(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), BitmapEx::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), Graphic::GetBitmapEx(), Color::GetBlue(), vcl::Font::GetColor(), MetaFillColorAction::GetColor(), MetaLineColorAction::GetColor(), MetaPixelAction::GetColor(), MetaTextColorAction::GetColor(), MetaTextFillColorAction::GetColor(), Wallpaper::GetColor(), MetaBmpExScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestSize(), MetaBmpScalePartAction::GetDestSize(), MetaFontAction::GetFont(), Color::GetGreen(), MetaBmpAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaPixelAction::GetPoint(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), MetaWallpaperAction::GetRect(), Color::GetRed(), MetaBmpExScaleAction::GetSize(), MetaBmpScaleAction::GetSize(), MetaBmpExScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcSize(), MetaBmpScalePartAction::GetSrcSize(), MetaAction::GetType(), MetaWallpaperAction::GetWallpaper(), i, InitColorArrays(), Mask(), nCount, vcl::Font::SetColor(), Wallpaper::SetColor(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), and TEST_COLS.

◆ ImpMaskTransparent()

BitmapEx SvxBmpMask::ImpMaskTransparent ( const BitmapEx rBitmapEx,
const Color rColor,
const sal_uInt8  nTol 
)
private

◆ ImpReplaceTransparency() [1/2]

Animation SvxBmpMask::ImpReplaceTransparency ( const Animation rAnim,
const Color rColor 
)
staticprivate

◆ ImpReplaceTransparency() [2/2]

GDIMetaFile SvxBmpMask::ImpReplaceTransparency ( const GDIMetaFile rMtf,
const Color rColor 
)
staticprivate

◆ InitColorArrays()

sal_uInt16 SvxBmpMask::InitColorArrays ( Color pSrcCols,
Color pDstCols,
sal_uInt8 pTols 
)
private

◆ IsEyedropping()

bool SvxBmpMask::IsEyedropping ( ) const

Definition at line 1033 of file _bmpmask.cxx.

References m_xTbxPipette.

◆ Mask()

Graphic SvxBmpMask::Mask ( const Graphic rGraphic)

◆ onSelect()

void SvxBmpMask::onSelect ( const MaskSet pSet)

is called by a MaskSet when it is selected

Definition at line 486 of file _bmpmask.cxx.

References m_xQSet1, m_xQSet2, m_xQSet3, and m_xQSet4.

◆ PipetteClicked()

void SvxBmpMask::PipetteClicked ( )

◆ SetAccessibleNames()

void SvxBmpMask::SetAccessibleNames ( )
private

Set names for accessible objects.

Set an accessible name for the source color check boxes.

This is necessary for objects like the source color checkboxes which initially have no name and for which the description would be read by AT.

Without this the lengthy description is read.

Definition at line 1041 of file _bmpmask.cxx.

References m_xQSet1, m_xQSet2, m_xQSet3, m_xQSet4, and SvxResId().

◆ SetColor()

void SvxBmpMask::SetColor ( const Color rColor)

Definition at line 511 of file _bmpmask.cxx.

References aPipetteColor, and m_xCtlPipette.

◆ SetExecState()

void SvxBmpMask::SetExecState ( bool  bEnable)

Definition at line 552 of file _bmpmask.cxx.

References m_xBtnExec, and m_xData.

Referenced by SvxBmpMaskSelectItem::StateChangedAtToolBoxControl().

Friends And Related Function Documentation

◆ MaskData

friend class MaskData
friend

Definition at line 89 of file bmpmask.hxx.

◆ MaskSet

friend class MaskSet
friend

Definition at line 90 of file bmpmask.hxx.

Member Data Documentation

◆ aPipetteColor

Color SvxBmpMask::aPipetteColor
private

Definition at line 126 of file bmpmask.hxx.

Referenced by PipetteClicked(), and SetColor().

◆ aSelItem

SvxBmpMaskSelectItem SvxBmpMask::aSelItem
private

Definition at line 127 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xBtnExec

std::unique_ptr<weld::Button> SvxBmpMask::m_xBtnExec
private

Definition at line 95 of file bmpmask.hxx.

Referenced by dispose(), and SetExecState().

◆ m_xCbx1

std::unique_ptr<weld::CheckButton> SvxBmpMask::m_xCbx1
private

Definition at line 97 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), and PipetteClicked().

◆ m_xCbx2

std::unique_ptr<weld::CheckButton> SvxBmpMask::m_xCbx2
private

Definition at line 103 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), and PipetteClicked().

◆ m_xCbx3

std::unique_ptr<weld::CheckButton> SvxBmpMask::m_xCbx3
private

Definition at line 109 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), and PipetteClicked().

◆ m_xCbx4

std::unique_ptr<weld::CheckButton> SvxBmpMask::m_xCbx4
private

Definition at line 115 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), and PipetteClicked().

◆ m_xCbxTrans

std::unique_ptr<weld::CheckButton> SvxBmpMask::m_xCbxTrans
private

Definition at line 121 of file bmpmask.hxx.

Referenced by dispose(), GetMetaFile(), and Mask().

◆ m_xCtlPipette

std::unique_ptr<BmpColorWindow> SvxBmpMask::m_xCtlPipette
private

Definition at line 93 of file bmpmask.hxx.

Referenced by dispose(), and SetColor().

◆ m_xCtlPipetteWin

std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xCtlPipetteWin
private

Definition at line 94 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xData

std::unique_ptr<MaskData> SvxBmpMask::m_xData
private

Definition at line 124 of file bmpmask.hxx.

Referenced by dispose(), PipetteClicked(), and SetExecState().

◆ m_xLbColor1

std::unique_ptr<ColorListBox> SvxBmpMask::m_xLbColor1
private

Definition at line 101 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xLbColor2

std::unique_ptr<ColorListBox> SvxBmpMask::m_xLbColor2
private

Definition at line 107 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xLbColor3

std::unique_ptr<ColorListBox> SvxBmpMask::m_xLbColor3
private

Definition at line 113 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xLbColor4

std::unique_ptr<ColorListBox> SvxBmpMask::m_xLbColor4
private

Definition at line 119 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xLbColorTrans

std::unique_ptr<ColorListBox> SvxBmpMask::m_xLbColorTrans
private

Definition at line 122 of file bmpmask.hxx.

Referenced by dispose(), GetMetaFile(), and Mask().

◆ m_xQSet1

std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet1
private

Definition at line 98 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().

◆ m_xQSet2

std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet2
private

Definition at line 104 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().

◆ m_xQSet3

std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet3
private

Definition at line 110 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().

◆ m_xQSet4

std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet4
private

Definition at line 116 of file bmpmask.hxx.

Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().

◆ m_xQSetWin1

std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xQSetWin1
private

Definition at line 99 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xQSetWin2

std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xQSetWin2
private

Definition at line 105 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xQSetWin3

std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xQSetWin3
private

Definition at line 111 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xQSetWin4

std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xQSetWin4
private

Definition at line 117 of file bmpmask.hxx.

Referenced by dispose().

◆ m_xSp1

std::unique_ptr<weld::MetricSpinButton> SvxBmpMask::m_xSp1
private

Definition at line 100 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xSp2

std::unique_ptr<weld::MetricSpinButton> SvxBmpMask::m_xSp2
private

Definition at line 106 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xSp3

std::unique_ptr<weld::MetricSpinButton> SvxBmpMask::m_xSp3
private

Definition at line 112 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xSp4

std::unique_ptr<weld::MetricSpinButton> SvxBmpMask::m_xSp4
private

Definition at line 118 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

◆ m_xTbxPipette

std::unique_ptr<weld::Toolbar> SvxBmpMask::m_xTbxPipette
private

Definition at line 92 of file bmpmask.hxx.

Referenced by dispose(), IsEyedropping(), and PipetteClicked().


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