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

#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 (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 OString &rID, const OUString &rUIXMLDescription)
 
virtual ~SfxDockingWindow () 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_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 void Move () override
 
SAL_DLLPRIVATE SfxChildWindowGetChildWindow_Impl ()
 
- Protected Attributes inherited from SfxDockingWindow
std::unique_ptr< weld::Builderm_xBuilder
 
VclPtr< vcl::Windowm_xVclContentArea
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 87 of file bmpmask.hxx.

Constructor & Destructor Documentation

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

Definition at line 447 of file _bmpmask.cxx.

Member Function Documentation

bool SvxBmpMask::Close ( )
overrideprivatevirtual
void SvxBmpMask::dispose ( void  )
overridevirtual
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().

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().

GDIMetaFile SvxBmpMask::ImpMask ( const GDIMetaFile rMtf)
private
Animation SvxBmpMask::ImpMask ( const Animation rAnimation)
private
BitmapEx SvxBmpMask::ImpMaskTransparent ( const BitmapEx rBitmapEx,
const Color rColor,
const sal_uInt8  nTol 
)
private
Animation SvxBmpMask::ImpReplaceTransparency ( const Animation rAnim,
const Color rColor 
)
staticprivate
GDIMetaFile SvxBmpMask::ImpReplaceTransparency ( const GDIMetaFile rMtf,
const Color rColor 
)
staticprivate
sal_uInt16 SvxBmpMask::InitColorArrays ( Color pSrcCols,
Color pDstCols,
sal_uInt8 pTols 
)
private
bool SvxBmpMask::IsEyedropping ( ) const

Definition at line 1033 of file _bmpmask.cxx.

References m_xTbxPipette.

Graphic SvxBmpMask::Mask ( const Graphic rGraphic)
void SvxBmpMask::onSelect ( 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.

Referenced by MaskSet::GetFocus(), and MaskSet::Select().

void SvxBmpMask::PipetteClicked ( )
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().

Referenced by SvxBmpMask().

void SvxBmpMask::SetColor ( const Color rColor)

Definition at line 511 of file _bmpmask.cxx.

References aPipetteColor, and m_xCtlPipette.

void SvxBmpMask::SetExecState ( bool  bEnable)

Definition at line 552 of file _bmpmask.cxx.

References m_xBtnExec, and m_xData.

Referenced by SvxBmpMaskSelectItem::StateChanged().

Friends And Related Function Documentation

friend class MaskData
friend

Definition at line 89 of file bmpmask.hxx.

Referenced by SvxBmpMask().

friend class MaskSet
friend

Definition at line 90 of file bmpmask.hxx.

Member Data Documentation

Color SvxBmpMask::aPipetteColor
private

Definition at line 126 of file bmpmask.hxx.

Referenced by PipetteClicked(), SetColor(), and SvxBmpMask().

SvxBmpMaskSelectItem SvxBmpMask::aSelItem
private

Definition at line 127 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 95 of file bmpmask.hxx.

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

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

Definition at line 97 of file bmpmask.hxx.

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

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

Definition at line 103 of file bmpmask.hxx.

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

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

Definition at line 109 of file bmpmask.hxx.

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

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

Definition at line 115 of file bmpmask.hxx.

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

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

Definition at line 121 of file bmpmask.hxx.

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

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

Definition at line 93 of file bmpmask.hxx.

Referenced by dispose(), and SetColor().

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

Definition at line 94 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 124 of file bmpmask.hxx.

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

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

Definition at line 101 of file bmpmask.hxx.

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

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

Definition at line 107 of file bmpmask.hxx.

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

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

Definition at line 113 of file bmpmask.hxx.

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

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

Definition at line 119 of file bmpmask.hxx.

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

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

Definition at line 122 of file bmpmask.hxx.

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

std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet1
private
std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet2
private
std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet3
private
std::unique_ptr<MaskSet> SvxBmpMask::m_xQSet4
private
std::unique_ptr<weld::CustomWeld> SvxBmpMask::m_xQSetWin1
private

Definition at line 99 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 105 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 111 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 117 of file bmpmask.hxx.

Referenced by dispose().

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

Definition at line 100 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

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

Definition at line 106 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

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

Definition at line 112 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

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

Definition at line 118 of file bmpmask.hxx.

Referenced by dispose(), and InitColorArrays().

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

Definition at line 92 of file bmpmask.hxx.

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


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