LibreOffice Module svx (master) 1
|
#include <dlgctrl.hxx>
Public Member Functions | |
SvxRectCtl (SvxTabPage *pPage) | |
void | SetControlSettings (RectPoint eRpt, sal_uInt16 nBorder) |
virtual | ~SvxRectCtl () override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override |
virtual void | Resize () override |
virtual bool | MouseButtonDown (const MouseEvent &) override |
virtual bool | KeyInput (const KeyEvent &) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual tools::Rectangle | GetFocusRect () override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual void | StyleUpdated () override |
void | Reset () |
RectPoint | GetActualRP () const |
void | SetActualRP (RectPoint eNewRP) |
void | SetState (CTL_STATE nState) |
tools::Rectangle | CalculateFocusRectangle () const |
tools::Rectangle | CalculateFocusRectangle (RectPoint eRectPoint) const |
css::uno::Reference< css::accessibility::XAccessible > | getAccessibleParent () const |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
a11yrelationset | get_accessible_relation_set () const |
RectPoint | GetApproxRPFromPixPt (const css::awt::Point &rPixelPoint) const |
bool | IsCompletelyDisabled () const |
void | DoCompletelyDisable (bool bNew) |
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 Attributes | |
static const sal_uInt8 | NO_CHILDREN = 9 |
Protected Member Functions | |
RectPoint | GetRPFromPoint (Point, bool bRTL=false) const |
const Point & | GetPointFromRP (RectPoint) const |
Point | SetActualRPWithoutInvalidate (RectPoint eNewRP) |
Point | GetApproxLogPtFromPixPt (const Point &rRoughPixelPoint) const |
Private Member Functions | |
SVX_DLLPRIVATE void | InitRectBitmap () |
SVX_DLLPRIVATE BitmapEx & | GetRectBitmap () |
SVX_DLLPRIVATE void | Resize_Impl (const Size &rSize) |
SvxRectCtl (const SvxRectCtl &)=delete | |
SvxRectCtl & | operator= (const SvxRectCtl &)=delete |
Static Private Member Functions | |
static SVX_DLLPRIVATE void | InitSettings (vcl::RenderContext &rRenderContext) |
Private Attributes | |
SvxTabPage * | m_pPage |
rtl::Reference< SvxRectCtlAccessibleContext > | pAccContext |
sal_uInt16 | nBorderWidth |
Point | aPtLT |
Point | aPtMT |
Point | aPtRT |
Point | aPtLM |
Point | aPtMM |
Point | aPtRM |
Point | aPtLB |
Point | aPtMB |
Point | aPtRB |
Point | aPtNew |
RectPoint | eRP |
RectPoint | eDefRP |
std::unique_ptr< BitmapEx > | pBitmap |
CTL_STATE | m_nState |
bool | mbCompleteDisable: 1 |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 73 of file dlgctrl.hxx.
|
privatedelete |
SvxRectCtl::SvxRectCtl | ( | SvxTabPage * | pPage | ) |
Definition at line 65 of file dlgctrl.cxx.
References Map100thMM, MM, nBorderWidth, NONE, and Width.
|
overridevirtual |
Definition at line 91 of file dlgctrl.cxx.
References pAccContext, and pBitmap.
tools::Rectangle SvxRectCtl::CalculateFocusRectangle | ( | ) | const |
Definition at line 535 of file dlgctrl.cxx.
References aPtNew, Size::Height(), and Size::Width().
Referenced by CalculateFocusRectangle(), SvxRectCtlAccessibleContext::getAccessibleChild(), and GetFocusRect().
tools::Rectangle SvxRectCtl::CalculateFocusRectangle | ( | RectPoint | eRectPoint | ) | const |
Definition at line 541 of file dlgctrl.cxx.
References CalculateFocusRectangle(), GetActualRP(), and SetActualRPWithoutInvalidate().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 561 of file dlgctrl.cxx.
References pAccContext.
void SvxRectCtl::DoCompletelyDisable | ( | bool | bNew | ) |
Definition at line 575 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and mbCompleteDisable.
|
inline |
Definition at line 130 of file dlgctrl.hxx.
Referenced by SvxRectCtlAccessibleContext::getAccessibleRelationSet().
|
inline |
Definition at line 128 of file dlgctrl.hxx.
Referenced by SvxRectCtlAccessibleContext::getAccessibleParent().
|
inline |
Definition at line 118 of file dlgctrl.hxx.
Referenced by CalculateFocusRectangle(), and GetFocus().
Definition at line 436 of file dlgctrl.cxx.
References aPtLT, aPtMM, aPtRB, weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), m_nState, NOHORZ, NOVERT, Size::Width(), x, Point::X(), y, and Point::Y().
Referenced by GetApproxRPFromPixPt(), and MouseButtonDown().
RectPoint SvxRectCtl::GetApproxRPFromPixPt | ( | const css::awt::Point & | rPixelPoint | ) | const |
Definition at line 569 of file dlgctrl.cxx.
References GetApproxLogPtFromPixPt(), and GetRPFromPoint().
Referenced by SvxRectCtlAccessibleContext::getAccessibleAtPoint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 418 of file dlgctrl.cxx.
References GetActualRP(), weld::CustomWidgetController::Invalidate(), and pAccContext.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 370 of file dlgctrl.cxx.
References CalculateFocusRectangle(), and weld::CustomWidgetController::HasFocus().
|
private |
Definition at line 57 of file dlgctrl.cxx.
References InitRectBitmap(), and pBitmap.
Referenced by Paint().
Definition at line 474 of file dlgctrl.cxx.
References aPtLB, aPtLM, aPtLT, aPtMB, aPtMT, aPtRB, aPtRM, aPtRT, LB, LM, LT, MB, MM, MT, RB, RM, and RT.
Referenced by GetApproxRPFromPixPt(), MouseButtonDown(), SetActualRPWithoutInvalidate(), and SetState().
|
private |
Definition at line 122 of file dlgctrl.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), StyleSettings::GetDarkShadowColor(), StyleSettings::GetDialogColor(), StyleSettings::GetLightColor(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), n, svtools::ColorConfigValue::nColor, and pBitmap.
Referenced by GetRectBitmap().
|
staticprivate |
Definition at line 175 of file dlgctrl.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), svtools::ColorConfigValue::nColor, OutputDevice::SetBackground(), and OutputDevice::SetTextColor().
Referenced by Paint().
|
inline |
Definition at line 134 of file dlgctrl.hxx.
Referenced by KeyInput(), MouseButtonDown(), and Paint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 201 of file dlgctrl.cxx.
References eRP, vcl::KeyCode::GetCode(), weld::CustomWidgetController::GetDrawingArea(), KeyEvent::GetKeyCode(), IsCompletelyDisabled(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, LB, LM, LT, m_nState, m_pPage, MB, MM, MT, NOHORZ, NOVERT, SvxTabPage::PointChanged(), RB, RM, RT, and SetActualRP().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 431 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 186 of file dlgctrl.cxx.
References aPtNew, eRP, GetApproxLogPtFromPixPt(), weld::CustomWidgetController::GetDrawingArea(), MouseEvent::GetPosPixel(), GetRPFromPoint(), IsCompletelyDisabled(), m_pPage, SvxTabPage::PointChanged(), and SetActualRP().
|
privatedelete |
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 285 of file dlgctrl.cxx.
References aPtLB, aPtLM, aPtLT, aPtMB, aPtMM, aPtMT, aPtNew, aPtRB, aPtRM, aPtRT, OutputDevice::DrawBitmapEx(), OutputDevice::DrawRect(), OutputDevice::GetBackground(), Wallpaper::GetColor(), StyleSettings::GetDialogColor(), StyleSettings::GetLabelTextColor(), StyleSettings::GetLightColor(), OutputDevice::GetLineColor(), OutputDevice::GetOutputSize(), GetRectBitmap(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), Size::Height(), InitSettings(), IsCompletelyDisabled(), weld::CustomWidgetController::IsEnabled(), m_nState, NOHORZ, NOVERT, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and Size::Width().
void SvxRectCtl::Reset | ( | void | ) |
Definition at line 492 of file dlgctrl.cxx.
References aPtNew, eDefRP, eRP, GetPointFromRP(), and weld::CustomWidgetController::Invalidate().
Referenced by Resize_Impl().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 99 of file dlgctrl.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), and Resize_Impl().
Referenced by SetControlSettings().
|
private |
Definition at line 104 of file dlgctrl.cxx.
References aPtLB, aPtLM, aPtLT, aPtMB, aPtMM, aPtMT, aPtRB, aPtRM, aPtRT, Size::Height(), nBorderWidth, Reset(), StyleUpdated(), and Size::Width().
Referenced by Resize(), and SetDrawingArea().
void SvxRectCtl::SetActualRP | ( | RectPoint | eNewRP | ) |
Definition at line 502 of file dlgctrl.cxx.
References weld::CustomWidgetController::Invalidate(), pAccContext, and SetActualRPWithoutInvalidate().
Referenced by SvxRectCtlAccessibleContext::implSelect(), KeyInput(), and MouseButtonDown().
Definition at line 397 of file dlgctrl.cxx.
References aPtMM, aPtNew, eDefRP, eRP, AllSettings::GetLayoutRTL(), GetPointFromRP(), GetRPFromPoint(), m_nState, NOHORZ, NOVERT, Point::setX(), Point::setY(), Point::X(), and Point::Y().
Referenced by CalculateFocusRectangle(), and SetActualRP().
void SvxRectCtl::SetControlSettings | ( | RectPoint | eRpt, |
sal_uInt16 | nBorder | ||
) |
Definition at line 84 of file dlgctrl.cxx.
References eDefRP, Application::GetDefaultDevice(), OutputDevice::LogicToPixel(), nBorder, nBorderWidth, and Resize().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 75 of file dlgctrl.cxx.
References weld::Widget::get_approximate_digit_width(), weld::Widget::get_text_height(), Size::Height(), Resize_Impl(), weld::Widget::set_size_request(), and Size::Width().
void SvxRectCtl::SetState | ( | CTL_STATE | nState | ) |
Definition at line 515 of file dlgctrl.cxx.
References aPtMM, eRP, weld::CustomWidgetController::GetDrawingArea(), GetPointFromRP(), GetRPFromPoint(), weld::CustomWidgetController::Invalidate(), m_nState, m_pPage, NOHORZ, NOVERT, nState, SvxTabPage::PointChanged(), Point::setX(), Point::setY(), Point::X(), and Point::Y().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 169 of file dlgctrl.cxx.
References pBitmap.
Referenced by Resize_Impl().
|
private |
Definition at line 81 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 80 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 79 of file dlgctrl.hxx.
Referenced by GetApproxLogPtFromPixPt(), GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 81 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 80 of file dlgctrl.hxx.
Referenced by GetApproxLogPtFromPixPt(), GetPointFromRP(), Paint(), Resize_Impl(), SetActualRPWithoutInvalidate(), and SetState().
|
private |
Definition at line 79 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 82 of file dlgctrl.hxx.
Referenced by CalculateFocusRectangle(), MouseButtonDown(), Paint(), Reset(), and SetActualRPWithoutInvalidate().
|
private |
Definition at line 81 of file dlgctrl.hxx.
Referenced by GetApproxLogPtFromPixPt(), GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 80 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 79 of file dlgctrl.hxx.
Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().
|
private |
Definition at line 83 of file dlgctrl.hxx.
Referenced by Reset(), SetActualRPWithoutInvalidate(), and SetControlSettings().
|
private |
Definition at line 83 of file dlgctrl.hxx.
Referenced by KeyInput(), MouseButtonDown(), Reset(), SetActualRPWithoutInvalidate(), and SetState().
|
private |
Definition at line 85 of file dlgctrl.hxx.
Referenced by GetApproxLogPtFromPixPt(), KeyInput(), Paint(), SetActualRPWithoutInvalidate(), and SetState().
|
private |
Definition at line 76 of file dlgctrl.hxx.
Referenced by KeyInput(), MouseButtonDown(), and SetState().
|
private |
Definition at line 86 of file dlgctrl.hxx.
Referenced by DoCompletelyDisable().
|
private |
Definition at line 78 of file dlgctrl.hxx.
Referenced by Resize_Impl(), and SetControlSettings().
|
static |
Definition at line 123 of file dlgctrl.hxx.
Referenced by SvxRectCtlAccessibleContext::getAccessibleChildCount().
|
private |
Definition at line 77 of file dlgctrl.hxx.
Referenced by CreateAccessible(), GetFocus(), SetActualRP(), and ~SvxRectCtl().
|
private |
Definition at line 84 of file dlgctrl.hxx.
Referenced by GetRectBitmap(), InitRectBitmap(), StyleUpdated(), and ~SvxRectCtl().