LibreOffice Module svx (master)
1
|
#include <dlgctrl.hxx>
Static Public Member Functions | |
static sal_uInt16 | GetLineCount () |
static tools::Long | GetSquares () |
![]() | |
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 144 of file dlgctrl.hxx.
|
privatedelete |
|
privatedelete |
SvxPixelCtl::SvxPixelCtl | ( | SvxTabPage * | pPage | ) |
Definition at line 626 of file dlgctrl.cxx.
References maPixelData.
|
overridevirtual |
Definition at line 647 of file dlgctrl.cxx.
|
private |
Definition at line 653 of file dlgctrl.cxx.
References maPixelData.
Referenced by KeyInput(), and ShowPosition().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 573 of file dlgctrl.cxx.
References m_xAccess.
|
inline |
Definition at line 195 of file dlgctrl.hxx.
References weld::DrawingArea::get_accessible_relation_set(), and weld::CustomWidgetController::GetDrawingArea().
Referenced by SvxPixelCtlAccessible::getAccessibleRelationSet().
|
inline |
Definition at line 193 of file dlgctrl.hxx.
References weld::DrawingArea::get_accessible_parent(), and weld::CustomWidgetController::GetDrawingArea().
Referenced by SvxPixelCtlAccessible::getAccessibleParent().
sal_uInt8 SvxPixelCtl::GetBitmapPixel | ( | const sal_uInt16 | nPixelNumber | ) | const |
Definition at line 878 of file dlgctrl.cxx.
References maPixelData.
Referenced by SvxPixelCtlAccessible::CreateChild(), SvxPixelCtlAccessibleChild::getAccessibleStateSet(), and SvxPixelCtlAccessible::NotifyChild().
|
inline |
Definition at line 188 of file dlgctrl.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 849 of file dlgctrl.cxx.
References aFocusPosition, GetFocusPosIndex(), implCalFocusRect(), weld::CustomWidgetController::Invalidate(), and m_xAccess.
tools::Long SvxPixelCtl::GetFocusPosIndex | ( | ) | const |
Definition at line 602 of file dlgctrl.cxx.
References aFocusPosition, and nLines.
Referenced by SvxPixelCtlAccessibleChild::getAccessibleStateSet(), GetFocus(), SvxPixelCtlAccessible::implIsSelected(), KeyInput(), and ShowPosition().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 684 of file dlgctrl.cxx.
References aFocusPosition, weld::CustomWidgetController::HasFocus(), and implCalFocusRect().
|
inline |
Definition at line 199 of file dlgctrl.hxx.
References Size::getHeight().
Referenced by SvxPixelCtlAccessible::CreateChild().
|
inlinestatic |
Definition at line 185 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::CreateChild(), and SvxPixelCtlAccessibleChild::GetName().
|
inlinestatic |
Definition at line 197 of file dlgctrl.hxx.
Referenced by SvxPixelCtlAccessible::getAccessibleChildCount().
|
inline |
Definition at line 198 of file dlgctrl.hxx.
References Size::getWidth().
Referenced by SvxPixelCtlAccessible::CreateChild().
|
private |
Definition at line 750 of file dlgctrl.cxx.
References aRectSize, Size::Height(), i, nLines, and Size::Width().
Referenced by GetFocus(), GetFocusRect(), and KeyInput().
Point SvxPixelCtl::IndexToPoint | ( | tools::Long | nIndex | ) | const |
Definition at line 588 of file dlgctrl.cxx.
References aRectSize, DBG_ASSERT, Size::Height(), nLines, nSquares, Point, and Size::Width().
Referenced by SvxPixelCtlAccessible::getAccessibleAtPoint(), SvxPixelCtlAccessible::getAccessibleChild(), SvxPixelCtlAccessible::implSelect(), and SvxPixelCtlAccessible::NotifyChild().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 764 of file dlgctrl.cxx.
References aFocusPosition, aRectSize, ChangePixel(), vcl::KeyCode::GetCode(), GetFocusPosIndex(), KeyEvent::GetKeyCode(), 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, nCode, nIndex, nLines, Point, and Size::Width().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 859 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 663 of file dlgctrl.cxx.
References aRectSize, MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), weld::CustomWidgetController::HasFocus(), Size::Height(), m_xAccess, nIndex, ShowPosition(), and Size::Width().
|
privatedelete |
|
privatedelete |
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 694 of file dlgctrl.cxx.
References aBackgroundColor, aPixelColor, aRectSize, bPaintable, COL_LIGHTGRAY(), COL_LIGHTRED, OutputDevice::DrawLine(), OutputDevice::DrawRect(), Size::Height(), i, maPixelData, nLines, Point, OutputDevice::SetBackground(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and Size::Width().
tools::Long SvxPixelCtl::PointToIndex | ( | const Point & | pt | ) | const |
Definition at line 580 of file dlgctrl.cxx.
References aRectSize, Size::Height(), nLines, and Size::Width().
Referenced by SvxPixelCtlAccessible::getAccessibleAtPoint().
Definition at line 885 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and maPixelData.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 634 of file dlgctrl.cxx.
References aRectSize, and weld::CustomWidgetController::GetOutputSizePixel().
Definition at line 183 of file dlgctrl.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 640 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 190 of file dlgctrl.hxx.
Definition at line 182 of file dlgctrl.hxx.
Definition at line 864 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 607 of file dlgctrl.cxx.
References aFocusPosition, aRectSize, ChangePixel(), weld::CustomWidgetController::GetDrawingArea(), GetFocusPosIndex(), Size::Height(), weld::CustomWidgetController::Invalidate(), m_pPage, MM, nLines, Point, SvxTabPage::PointChanged(), and Size::Width().
Referenced by SvxPixelCtlAccessible::implSelect(), and MouseButtonDown().
|
private |
Definition at line 153 of file dlgctrl.hxx.
Referenced by Paint(), and SetXBitmap().
|
private |
Definition at line 158 of file dlgctrl.hxx.
Referenced by GetFocus(), GetFocusPosIndex(), GetFocusRect(), KeyInput(), and ShowPosition().
|
private |
Definition at line 152 of file dlgctrl.hxx.
Referenced by Paint(), and SetXBitmap().
|
private |
Definition at line 154 of file dlgctrl.hxx.
Referenced by implCalFocusRect(), IndexToPoint(), KeyInput(), MouseButtonDown(), Paint(), PointToIndex(), Resize(), and ShowPosition().
|
private |
Definition at line 156 of file dlgctrl.hxx.
Referenced by Paint().
|
private |
Definition at line 150 of file dlgctrl.hxx.
Referenced by ShowPosition().
|
private |
Definition at line 159 of file dlgctrl.hxx.
Referenced by CreateAccessible(), GetFocus(), KeyInput(), and MouseButtonDown().
Definition at line 155 of file dlgctrl.hxx.
Referenced by ChangePixel(), GetBitmapPixel(), Paint(), Reset(), SetXBitmap(), and SvxPixelCtl().
|
staticprivate |
Definition at line 147 of file dlgctrl.hxx.
Referenced by GetFocusPosIndex(), implCalFocusRect(), IndexToPoint(), KeyInput(), Paint(), PointToIndex(), and ShowPosition().
Definition at line 148 of file dlgctrl.hxx.
Referenced by IndexToPoint(), and SetXBitmap().