|
LibreOffice Module svx (master) 1
|
#include <dlgctrl.hxx>
Public Member Functions | |
| SvxPixelCtl (SvxTabPage *pPage) | |
| virtual | ~SvxPixelCtl () override |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
| virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
| virtual void | Resize () override |
| virtual tools::Rectangle | GetFocusRect () override |
| void | SetXBitmap (const BitmapEx &rBitmapEx) |
| void | SetPixelColor (const Color &rCol) |
| void | SetBackgroundColor (const Color &rCol) |
| sal_uInt8 | GetBitmapPixel (const sal_uInt16 nPixelNumber) const |
| std::array< sal_uInt8, 64 > const & | GetBitmapPixelPtr () const |
| void | SetPaintable (bool bTmp) |
| void | Reset () |
| css::uno::Reference< css::accessibility::XAccessible > | getAccessibleParent () const |
| virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
| a11yrelationset | get_accessible_relation_set () const |
| tools::Long | GetWidth () const |
| tools::Long | GetHeight () const |
| tools::Long | ShowPosition (const Point &pt) |
| tools::Long | PointToIndex (const Point &pt) const |
| Point | IndexToPoint (tools::Long nIndex) const |
| tools::Long | GetFocusPosIndex () const |
| virtual bool | KeyInput (const KeyEvent &rKEvt) override |
| virtual void | GetFocus () override |
| virtual void | LoseFocus () override |
Public Member Functions inherited from weld::CustomWidgetController | |
| virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
| virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
| virtual void | Resize () |
| virtual bool | MouseButtonDown (const MouseEvent &) |
| virtual bool | MouseMove (const MouseEvent &) |
| virtual bool | MouseButtonUp (const MouseEvent &) |
| virtual void | GetFocus () |
| virtual void | LoseFocus () |
| virtual void | StyleUpdated () |
| virtual bool | Command (const CommandEvent &) |
| virtual bool | KeyInput (const KeyEvent &) |
| virtual tools::Rectangle | GetFocusRect () |
| virtual FactoryFunction | GetUITestFactory () const |
| virtual OUString | RequestHelp (tools::Rectangle &) |
| virtual OUString | GetHelpText () const |
| Size const & | GetOutputSizePixel () const |
| void | SetOutputSizePixel (const Size &rSize) |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
| weld::DrawingArea * | GetDrawingArea () const |
| void | Invalidate () |
| void | Invalidate (const tools::Rectangle &rRect) |
| virtual void | Show () |
| virtual void | Hide () |
| void | SetCursor (void *pData) |
| void | GrabFocus () |
| bool | HasFocus () const |
| bool | HasChildFocus () const |
| bool | IsVisible () const |
| bool | IsReallyVisible () const |
| bool | IsEnabled () const |
| void | Enable () const |
| void | Disable () const |
| bool | IsActive () const |
| int | GetTextHeight () const |
| int | GetTextWidth (const OUString &rText) const |
| OUString | GetAccessibleName () const |
| OUString | GetAccessibleDescription () const |
| void | CaptureMouse () |
| bool | IsMouseCaptured () const |
| Point | GetPointerPosPixel () const |
| void | EnableRTL (bool bEnable) |
| bool | IsRTLEnabled () const |
| void | ReleaseMouse () |
| void | SetPointer (PointerStyle ePointerStyle) |
| void | SetHelpId (const OUString &rHelpId) |
| void | SetAccessibleName (const OUString &rName) |
| void | SetInputContext (const InputContext &rInputContext) |
| void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
| virtual int | GetSurroundingText (OUString &) |
| virtual bool | DeleteSurroundingText (const Selection &) |
| css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
| css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
| void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
| virtual bool | StartDrag () |
| void | set_size_request (int nWidth, int nHeight) |
| void | queue_resize () |
| CustomWidgetController () | |
| virtual | ~CustomWidgetController () |
| CustomWidgetController (CustomWidgetController const &)=default | |
| CustomWidgetController (CustomWidgetController &&)=default | |
| CustomWidgetController & | operator= (CustomWidgetController const &)=default |
| CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Static Public Member Functions | |
| static sal_uInt16 | GetLineCount () |
| static tools::Long | GetSquares () |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
Private Member Functions | |
| tools::Rectangle | implCalFocusRect (const Point &aPosition) |
| void | ChangePixel (sal_uInt16 nPixel) |
| SvxPixelCtl (SvxPixelCtl const &)=delete | |
| SvxPixelCtl (SvxPixelCtl &&)=delete | |
| SvxPixelCtl & | operator= (SvxPixelCtl const &)=delete |
| SvxPixelCtl & | operator= (SvxPixelCtl &&)=delete |
Private Attributes | |
| SvxTabPage * | m_pPage |
| Color | aPixelColor |
| Color | aBackgroundColor |
| Size | aRectSize |
| std::array< sal_uInt8, nSquares > | maPixelData |
| bool | bPaintable |
| Point | aFocusPosition |
| rtl::Reference< SvxPixelCtlAccessible > | m_xAccess |
Static Private Attributes | |
| static sal_uInt16 constexpr | nLines = 8 |
| static sal_uInt16 constexpr | nSquares = nLines * nLines |
Definition at line 142 of file dlgctrl.hxx.
|
privatedelete |
|
privatedelete |
| SvxPixelCtl::SvxPixelCtl | ( | SvxTabPage * | pPage | ) |
Definition at line 638 of file dlgctrl.cxx.
References maPixelData.
|
overridevirtual |
Definition at line 659 of file dlgctrl.cxx.
|
private |
Definition at line 665 of file dlgctrl.cxx.
References maPixelData, and nPixel.
Referenced by KeyInput(), and ShowPosition().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 583 of file dlgctrl.cxx.
References m_xAccess.
|
inline |
Definition at line 193 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::getAccessibleRelationSet().
|
inline |
Definition at line 191 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::getAccessibleParent().
| sal_uInt8 SvxPixelCtl::GetBitmapPixel | ( | const sal_uInt16 | nPixelNumber | ) | const |
Definition at line 900 of file dlgctrl.cxx.
References maPixelData, and nPixel.
Referenced by SvxPixelCtlAccessible::CreateChild(), SvxPixelCtlAccessibleChild::getAccessibleStateSet(), and SvxPixelCtlAccessible::NotifyChild().
|
inline |
Definition at line 186 of file dlgctrl.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 869 of file dlgctrl.cxx.
References aFocusPosition, GetFocusPosIndex(), implCalFocusRect(), weld::CustomWidgetController::Invalidate(), and m_xAccess.
| tools::Long SvxPixelCtl::GetFocusPosIndex | ( | ) | const |
Definition at line 614 of file dlgctrl.cxx.
References aFocusPosition, Point::getX(), Point::getY(), and nLines.
Referenced by SvxPixelCtlAccessibleChild::getAccessibleStateSet(), GetFocus(), SvxPixelCtlAccessible::implIsSelected(), KeyInput(), and ShowPosition().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 700 of file dlgctrl.cxx.
References aFocusPosition, weld::CustomWidgetController::HasFocus(), and implCalFocusRect().
|
inline |
Definition at line 197 of file dlgctrl.hxx.
References Size::getHeight().
Referenced by SvxPixelCtlAccessible::CreateChild().
|
inlinestatic |
Definition at line 183 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::CreateChild(), and SvxPixelCtlAccessibleChild::GetName().
|
inlinestatic |
Definition at line 195 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::getAccessibleChildCount().
|
inline |
Definition at line 196 of file dlgctrl.hxx.
References Size::getWidth().
Referenced by SvxPixelCtlAccessible::CreateChild().
|
private |
Definition at line 766 of file dlgctrl.cxx.
References aRectSize, Size::Height(), i, nLines, Size::Width(), Point::X(), and Point::Y().
Referenced by GetFocus(), GetFocusRect(), and KeyInput().
| Point SvxPixelCtl::IndexToPoint | ( | tools::Long | nIndex | ) | const |
Definition at line 600 of file dlgctrl.cxx.
References aRectSize, DBG_ASSERT, Size::Height(), nIndex, nLines, nSquares, Point::setX(), Point::setY(), and Size::Width().
Referenced by SvxPixelCtlAccessible::getAccessibleAtPoint(), SvxPixelCtlAccessible::getAccessibleChild(), SvxPixelCtlAccessible::implSelect(), and SvxPixelCtlAccessible::NotifyChild().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 780 of file dlgctrl.cxx.
References aFocusPosition, aRectSize, ChangePixel(), vcl::KeyCode::GetCode(), GetFocusPosIndex(), KeyEvent::GetKeyCode(), Point::getX(), Point::getY(), Size::Height(), implCalFocusRect(), weld::CustomWidgetController::Invalidate(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_SPACE, KEY_UP, m_xAccess, nIndex, nLines, Point::setX(), Point::setY(), and Size::Width().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 881 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 675 of file dlgctrl.cxx.
References aRectSize, MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), weld::CustomWidgetController::HasFocus(), Size::Height(), m_xAccess, nIndex, ShowPosition(), and Size::Width().
|
privatedelete |
References MouseButtonDown, Paint, and Resize.
|
privatedelete |
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 710 of file dlgctrl.cxx.
References aBackgroundColor, aPixelColor, aRectSize, bPaintable, COL_LIGHTGRAY(), COL_LIGHTRED(), OutputDevice::DrawLine(), OutputDevice::DrawRect(), Size::Height(), i, maPixelData, nLines, OutputDevice::SetBackground(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), Point::setX(), Point::setY(), and Size::Width().
| tools::Long SvxPixelCtl::PointToIndex | ( | const Point & | pt | ) | const |
Definition at line 592 of file dlgctrl.cxx.
References aRectSize, Size::Height(), nLines, Size::Width(), Point::X(), and Point::Y().
Referenced by SvxPixelCtlAccessible::getAccessibleAtPoint().
| void SvxPixelCtl::Reset | ( | void | ) |
Definition at line 907 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and maPixelData.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 646 of file dlgctrl.cxx.
References aRectSize, and weld::CustomWidgetController::GetOutputSizePixel().
|
inline |
Definition at line 181 of file dlgctrl.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 652 of file dlgctrl.cxx.
References weld::Widget::get_approximate_digit_width(), weld::Widget::get_text_height(), and weld::Widget::set_size_request().
|
inline |
Definition at line 188 of file dlgctrl.hxx.
|
inline |
Definition at line 180 of file dlgctrl.hxx.
| void SvxPixelCtl::SetXBitmap | ( | const BitmapEx & | rBitmapEx | ) |
Definition at line 886 of file dlgctrl.cxx.
References aBackgroundColor, aPixelColor, BitmapEx::GetPixelColor(), i, vcl::bitmap::isHistorical8x8(), maPixelData, and nSquares.
| tools::Long SvxPixelCtl::ShowPosition | ( | const Point & | pt | ) |
Definition at line 619 of file dlgctrl.cxx.
References aFocusPosition, aRectSize, ChangePixel(), weld::CustomWidgetController::GetDrawingArea(), GetFocusPosIndex(), Size::Height(), weld::CustomWidgetController::Invalidate(), m_pPage, MM, nLines, SvxTabPage::PointChanged(), Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by SvxPixelCtlAccessible::implSelect(), and MouseButtonDown().
|
private |
Definition at line 151 of file dlgctrl.hxx.
Referenced by Paint(), and SetXBitmap().
|
private |
Definition at line 156 of file dlgctrl.hxx.
Referenced by GetFocus(), GetFocusPosIndex(), GetFocusRect(), KeyInput(), and ShowPosition().
|
private |
Definition at line 150 of file dlgctrl.hxx.
Referenced by Paint(), and SetXBitmap().
|
private |
Definition at line 152 of file dlgctrl.hxx.
Referenced by implCalFocusRect(), IndexToPoint(), KeyInput(), MouseButtonDown(), Paint(), PointToIndex(), Resize(), and ShowPosition().
|
private |
Definition at line 154 of file dlgctrl.hxx.
Referenced by Paint().
|
private |
Definition at line 148 of file dlgctrl.hxx.
Referenced by ShowPosition().
|
private |
Definition at line 157 of file dlgctrl.hxx.
Referenced by CreateAccessible(), GetFocus(), KeyInput(), and MouseButtonDown().
Definition at line 153 of file dlgctrl.hxx.
Referenced by ChangePixel(), GetBitmapPixel(), Paint(), Reset(), SetXBitmap(), and SvxPixelCtl().
|
staticconstexprprivate |
Definition at line 145 of file dlgctrl.hxx.
Referenced by GetFocusPosIndex(), implCalFocusRect(), IndexToPoint(), KeyInput(), Paint(), PointToIndex(), and ShowPosition().
Definition at line 146 of file dlgctrl.hxx.
Referenced by IndexToPoint(), and SetXBitmap().