LibreOffice Module svx (master) 1
|
#include <bmpmask.hxx>
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::Rectangle & | GetInnerRect () const |
const tools::Rectangle & | GetOuterRect () const |
SfxBindings & | GetBindings () const |
sal_uInt16 | GetType () const |
SfxChildAlignment | GetAlignment () const |
void | SetAlignment (SfxChildAlignment eAlign) |
const Size & | GetFloatingSize () const |
void | SetFloatingSize (const Size &rSize) |
void | SetMinOutputSizePixel (const Size &rSize) |
const Size & | GetMinOutputSizePixel () 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) |
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 SfxChildWindow * | GetChildWindow_Impl () |
Protected Attributes inherited from SfxDockingWindow | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Box > | m_xContainer |
Definition at line 87 of file bmpmask.hxx.
SvxBmpMask::SvxBmpMask | ( | SfxBindings * | pBindinx, |
SfxChildWindow * | pCW, | ||
vcl::Window * | pParent | ||
) |
Definition at line 347 of file _bmpmask.cxx.
References GetFrameWeld(), and PERCENT().
|
overridevirtual |
Definition at line 447 of file _bmpmask.cxx.
|
overrideprivatevirtual |
Reimplemented from SfxDockingWindow.
Definition at line 502 of file _bmpmask.cxx.
References SfxDockingWindow::Close(), SfxDispatcher::ExecuteList(), SfxDockingWindow::GetBindings(), SfxBindings::GetDispatcher(), and OWN_CALLMODE.
|
overridevirtual |
Reimplemented from SfxDockingWindow.
Definition at line 452 of file _bmpmask.cxx.
References aSelItem, SfxControllerItem::dispose(), SfxDockingWindow::dispose(), m_xBtnExec, m_xCbx1, m_xCbx2, m_xCbx3, m_xCbx4, m_xCbxTrans, m_xCtlPipette, m_xCtlPipetteWin, m_xData, m_xLbColor1, m_xLbColor2, m_xLbColor3, m_xLbColor4, m_xLbColorTrans, m_xQSet1, m_xQSet2, m_xQSet3, m_xQSet4, m_xQSetWin1, m_xQSetWin2, m_xQSetWin3, m_xQSetWin4, m_xSp1, m_xSp2, m_xSp3, m_xSp4, and m_xTbxPipette.
|
private |
Definition at line 934 of file _bmpmask.cxx.
References Graphic::GetGDIMetaFile(), ImpMask(), ImpReplaceTransparency(), m_xCbxTrans, and m_xLbColorTrans.
Referenced by Mask().
|
private |
Definition at line 598 of file _bmpmask.cxx.
References InitColorArrays(), nCount, and BitmapEx::Replace().
Referenced by GetMetaFile(), and Mask().
Definition at line 627 of file _bmpmask.cxx.
References Animation::Count(), Animation::Get(), Graphic::GetBitmapEx(), i, InitColorArrays(), AnimationFrame::maBitmapEx, Mask(), and Animation::Replace().
|
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.
|
private |
Definition at line 610 of file _bmpmask.cxx.
References Bitmap::CombineOr(), Bitmap::CreateMask(), BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), and BitmapEx::IsAlpha().
Referenced by Mask().
|
staticprivate |
Definition at line 888 of file _bmpmask.cxx.
References Animation::Count(), Animation::Get(), i, AnimationFrame::maBitmapEx, Animation::Replace(), and BitmapEx::ReplaceTransparency().
Referenced by GetMetaFile(), and Mask().
|
staticprivate |
Definition at line 904 of file _bmpmask.cxx.
References GDIMetaFile::AddAction(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MapMode::GetOrigin(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), i, GDIMetaFile::Record(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), and GDIMetaFile::WindStart().
|
private |
Definition at line 563 of file _bmpmask.cxx.
References m_xCbx1, m_xCbx2, m_xCbx3, m_xCbx4, m_xLbColor1, m_xLbColor2, m_xLbColor3, m_xLbColor4, m_xQSet1, m_xQSet2, m_xQSet3, m_xQSet4, m_xSp1, m_xSp2, m_xSp3, m_xSp4, and nCount.
bool SvxBmpMask::IsEyedropping | ( | ) | const |
Definition at line 1033 of file _bmpmask.cxx.
References m_xTbxPipette.
Definition at line 942 of file _bmpmask.cxx.
References COL_TRANSPARENT(), BitmapEx::GetAlphaMask(), Graphic::GetAnimation(), BitmapEx::GetBitmap(), Graphic::GetBitmapEx(), GetMetaFile(), Graphic::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), Graphic::GetPrefSize(), BitmapEx::GetSizePixel(), Graphic::GetType(), Size::Height(), i, ImpMask(), ImpMaskTransparent(), ImpReplaceTransparency(), InitColorArrays(), Graphic::IsAnimated(), Graphic::IsTransparent(), m_xCbxTrans, m_xLbColorTrans, nCount, BitmapEx::ReplaceTransparency(), Graphic::SetPrefMapMode(), Graphic::SetPrefSize(), and Size::Width().
Referenced by ImpMask().
void SvxBmpMask::onSelect | ( | const MaskSet * | pSet | ) |
void SvxBmpMask::PipetteClicked | ( | ) |
Definition at line 517 of file _bmpmask.cxx.
References aPipetteColor, m_xCbx1, m_xCbx2, m_xCbx3, m_xCbx4, m_xData, m_xQSet1, m_xQSet2, m_xQSet3, m_xQSet4, and m_xTbxPipette.
|
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().
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::StateChangedAtToolBoxControl().
|
friend |
Definition at line 89 of file bmpmask.hxx.
|
friend |
Definition at line 90 of file bmpmask.hxx.
|
private |
Definition at line 126 of file bmpmask.hxx.
Referenced by PipetteClicked(), and SetColor().
|
private |
Definition at line 127 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 95 of file bmpmask.hxx.
Referenced by dispose(), and SetExecState().
|
private |
Definition at line 97 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), and PipetteClicked().
|
private |
Definition at line 103 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), and PipetteClicked().
|
private |
Definition at line 109 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), and PipetteClicked().
|
private |
Definition at line 115 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), and PipetteClicked().
|
private |
Definition at line 121 of file bmpmask.hxx.
Referenced by dispose(), GetMetaFile(), and Mask().
|
private |
Definition at line 93 of file bmpmask.hxx.
Referenced by dispose(), and SetColor().
|
private |
Definition at line 94 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 124 of file bmpmask.hxx.
Referenced by dispose(), PipetteClicked(), and SetExecState().
|
private |
Definition at line 101 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 107 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 113 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 119 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 122 of file bmpmask.hxx.
Referenced by dispose(), GetMetaFile(), and Mask().
|
private |
Definition at line 98 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().
|
private |
Definition at line 104 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().
|
private |
Definition at line 110 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().
|
private |
Definition at line 116 of file bmpmask.hxx.
Referenced by dispose(), InitColorArrays(), onSelect(), PipetteClicked(), and SetAccessibleNames().
|
private |
Definition at line 99 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 105 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 111 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 117 of file bmpmask.hxx.
Referenced by dispose().
|
private |
Definition at line 100 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 106 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 112 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 118 of file bmpmask.hxx.
Referenced by dispose(), and InitColorArrays().
|
private |
Definition at line 92 of file bmpmask.hxx.
Referenced by dispose(), IsEyedropping(), and PipetteClicked().