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

VclPtr< ToolBoxm_pTbxPipette
 
VclPtr< BmpColorWindowm_pCtlPipette
 
VclPtr< PushButtonm_pBtnExec
 
VclPtr< CheckBoxm_pCbx1
 
VclPtr< MaskSetm_pQSet1
 
VclPtr< MetricFieldm_pSp1
 
VclPtr< SvxColorListBoxm_pLbColor1
 
VclPtr< CheckBoxm_pCbx2
 
VclPtr< MaskSetm_pQSet2
 
VclPtr< MetricFieldm_pSp2
 
VclPtr< SvxColorListBoxm_pLbColor2
 
VclPtr< CheckBoxm_pCbx3
 
VclPtr< MaskSetm_pQSet3
 
VclPtr< MetricFieldm_pSp3
 
VclPtr< SvxColorListBoxm_pLbColor3
 
VclPtr< CheckBoxm_pCbx4
 
VclPtr< MaskSetm_pQSet4
 
VclPtr< MetricFieldm_pSp4
 
VclPtr< SvxColorListBoxm_pLbColor4
 
std::unique_ptr< MaskDatapData
 
VclPtr< CheckBoxm_pCbxTrans
 
VclPtr< SvxColorListBoxm_pLbColorTrans
 
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 ()
 

Detailed Description

Definition at line 91 of file bmpmask.hxx.

Constructor & Destructor Documentation

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

Definition at line 464 of file _bmpmask.cxx.

Member Function Documentation

bool SvxBmpMask::Close ( )
overrideprivatevirtual
void SvxBmpMask::dispose ( void  )
overridevirtual
GDIMetaFile SvxBmpMask::GetMetaFile ( const Graphic rGraphic)
private
void SvxBmpMask::ImpMask ( BitmapEx rBitmap)
private

Definition at line 610 of file _bmpmask.cxx.

References InitColorArrays(), 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 1041 of file _bmpmask.cxx.

References ToolBox::GetItemId(), ToolBox::IsItemChecked(), and m_pTbxPipette.

Graphic SvxBmpMask::Mask ( const Graphic rGraphic)
void SvxBmpMask::onSelect ( MaskSet pSet)

is called by a MaskSet when it is selected

Definition at line 498 of file _bmpmask.cxx.

References m_pQSet1, m_pQSet2, m_pQSet3, m_pQSet4, and ValueSet::SelectItem().

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 1049 of file _bmpmask.cxx.

References m_pQSet1, m_pQSet2, m_pQSet3, m_pQSet4, and SvxResId().

Referenced by SvxBmpMask().

void SvxBmpMask::SetColor ( const Color rColor)

Definition at line 523 of file _bmpmask.cxx.

References aPipetteColor, m_pCtlPipette, and BmpColorWindow::SetColor().

void SvxBmpMask::SetExecState ( bool  bEnable)

Friends And Related Function Documentation

friend class MaskData
friend

Definition at line 93 of file bmpmask.hxx.

Referenced by SvxBmpMask().

friend class MaskSet
friend

Definition at line 94 of file bmpmask.hxx.

Member Data Documentation

Color SvxBmpMask::aPipetteColor
private

Definition at line 124 of file bmpmask.hxx.

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

SvxBmpMaskSelectItem SvxBmpMask::aSelItem
private

Definition at line 125 of file bmpmask.hxx.

Referenced by dispose().

VclPtr<PushButton> SvxBmpMask::m_pBtnExec
private

Definition at line 98 of file bmpmask.hxx.

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

VclPtr<CheckBox> SvxBmpMask::m_pCbx1
private

Definition at line 100 of file bmpmask.hxx.

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

VclPtr<CheckBox> SvxBmpMask::m_pCbx2
private

Definition at line 105 of file bmpmask.hxx.

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

VclPtr<CheckBox> SvxBmpMask::m_pCbx3
private

Definition at line 110 of file bmpmask.hxx.

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

VclPtr<CheckBox> SvxBmpMask::m_pCbx4
private

Definition at line 115 of file bmpmask.hxx.

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

VclPtr<CheckBox> SvxBmpMask::m_pCbxTrans
private

Definition at line 121 of file bmpmask.hxx.

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

VclPtr<BmpColorWindow> SvxBmpMask::m_pCtlPipette
private

Definition at line 97 of file bmpmask.hxx.

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

VclPtr<SvxColorListBox> SvxBmpMask::m_pLbColor1
private

Definition at line 103 of file bmpmask.hxx.

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

VclPtr<SvxColorListBox> SvxBmpMask::m_pLbColor2
private

Definition at line 108 of file bmpmask.hxx.

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

VclPtr<SvxColorListBox> SvxBmpMask::m_pLbColor3
private

Definition at line 113 of file bmpmask.hxx.

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

VclPtr<SvxColorListBox> SvxBmpMask::m_pLbColor4
private

Definition at line 118 of file bmpmask.hxx.

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

VclPtr<SvxColorListBox> SvxBmpMask::m_pLbColorTrans
private

Definition at line 122 of file bmpmask.hxx.

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

VclPtr<MaskSet> SvxBmpMask::m_pQSet1
private
VclPtr<MaskSet> SvxBmpMask::m_pQSet2
private
VclPtr<MaskSet> SvxBmpMask::m_pQSet3
private
VclPtr<MaskSet> SvxBmpMask::m_pQSet4
private
VclPtr<MetricField> SvxBmpMask::m_pSp1
private

Definition at line 102 of file bmpmask.hxx.

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

VclPtr<MetricField> SvxBmpMask::m_pSp2
private

Definition at line 107 of file bmpmask.hxx.

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

VclPtr<MetricField> SvxBmpMask::m_pSp3
private

Definition at line 112 of file bmpmask.hxx.

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

VclPtr<MetricField> SvxBmpMask::m_pSp4
private

Definition at line 117 of file bmpmask.hxx.

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

VclPtr<ToolBox> SvxBmpMask::m_pTbxPipette
private

Definition at line 96 of file bmpmask.hxx.

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

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

Definition at line 120 of file bmpmask.hxx.

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


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