LibreOffice Module vcl (master) 1
|
#include <FileDefinitionWidgetDraw.hxx>
Public Member Functions | |
FileDefinitionWidgetDraw (SalGraphics &rGraphics) | |
bool | isActive () const |
bool | isNativeControlSupported (ControlType eType, ControlPart ePart) override |
Query the platform layer for native control support. More... | |
bool | hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) override |
Query if a position is inside the native widget part. More... | |
bool | drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor) override |
Draw the requested control. More... | |
bool | getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override |
Get the native control regions for the control part. More... | |
bool | updateSettings (AllSettings &rSettings) override |
Public Member Functions inherited from vcl::WidgetDrawInterface | |
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
virtual bool | isNativeControlSupported (ControlType eType, ControlPart ePart) |
Query the platform layer for native control support. More... | |
virtual bool | hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) |
Query if a position is inside the native widget part. More... | |
virtual bool | drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor) |
Draw the requested control. More... | |
virtual bool | getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) |
Get the native control regions for the control part. More... | |
virtual bool | updateSettings (AllSettings &rSettings) |
Static Public Member Functions | |
static void | drawPolyPolygon (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency) |
static void | drawPolyLine (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline) |
static void | drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) |
static void | drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap) |
static void | implDrawGradient (SalGraphics &rGraphics, const basegfx::B2DPolyPolygon &rPolyPolygon, const SalGradient &rGradient) |
Private Member Functions | |
bool | resolveDefinition (ControlType eType, ControlPart ePart, ControlState eState, const ImplControlValue &rValue, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) |
Private Attributes | |
SalGraphics & | m_rGraphics |
bool | m_bIsActive |
std::shared_ptr< WidgetDefinition > | m_pWidgetDefinition |
Definition at line 20 of file FileDefinitionWidgetDraw.hxx.
vcl::FileDefinitionWidgetDraw::FileDefinitionWidgetDraw | ( | SalGraphics & | rGraphics | ) |
Definition at line 114 of file FileDefinitionWidgetDraw.cxx.
References ImplGetSVData(), m_bIsActive, m_pWidgetDefinition, ImplSVData::maNWFData, ImplSVNWFData::mbCanDrawWidgetAnySize, ImplSVNWFData::mbCenteredTabs, ImplSVNWFData::mbNoActiveTabTextRaise, ImplSVNWFData::mbNoFocusRects, ImplSVNWFData::mbNoFocusRectsForFlatButtons, ImplSVNWFData::mbProgressNeedsErase, ImplSVNWFData::mnListBoxEntryMargin, ImplSVNWFData::mnStatusBarLowerRightOffset, and u.
|
static |
Definition at line 232 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawBitmap().
|
static |
Definition at line 238 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawBitmap().
|
overridevirtual |
Draw the requested control.
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
[in] | rBoundingControlRegion | The bounding rectangle of the complete control in VCL frame coordinates. |
[in] | eState | The general state of the control (enabled, focused, etc.). |
[in] | aValue | Addition control specific information. |
[in] | aCaption | A caption or title string (like button text etc.). |
[in] | rBackgroundColor | Background color for the control (may be COL_AUTO) |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 587 of file FileDefinitionWidgetDraw.cxx.
References Button, Checkbox, Combobox, Editbox, EditboxNoBorder, eType, Fixedline, Frame, SalGraphics::getAntiAlias(), tools::Rectangle::GetHeight(), ImplControlValue::getType(), tools::Rectangle::GetWidth(), IntroProgress, tools::Rectangle::Left(), Listbox, ListHeader, ListNet, ListNode, m_rGraphics, SpinbuttonValue::maLowerRect, SliderValue::maThumbRect, SpinbuttonValue::maUpperRect, Menubar, MenuPopup, SpinbuttonValue::mnLowerPart, SpinbuttonValue::mnLowerState, SliderValue::mnThumbState, SpinbuttonValue::mnUpperPart, SpinbuttonValue::mnUpperState, MultilineEditbox, Progress, Pushbutton, Radiobutton, resolveDefinition(), Scrollbar, SalGraphics::setAntiAlias(), Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, tools::Rectangle::Top(), TrackHorzArea, TrackHorzLeft, TrackHorzRight, TrackVertArea, TrackVertLower, TrackVertUpper, and WindowBackground.
|
static |
Definition at line 222 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawPolyLine().
|
static |
Definition at line 214 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawPolyPolygon().
|
overridevirtual |
Get the native control regions for the control part.
If the return value is true, rNativeBoundingRegion contains the true bounding region covered by the control including any adornment, while rNativeContentRegion contains the area within the control that can be safely drawn into without drawing over the borders of the control.
[in] | eType | Type of the widget. |
[in] | ePart | Specification of the widget's part if it consists of more than one. |
[in] | rBoundingControlRegion | The bounding region of the control in VCL frame coordinates. |
[in] | eState | The general state of the control (enabled, focused, etc.). |
[in] | aValue | Addition control specific information. |
[in] | aCaption | A caption or title string (like button text etc.). |
[out] | rNativeBoundingRegion | The region covered by the control including any adornment. |
[out] | rNativeContentRegion | The region within the control that can be safely drawn into. |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 786 of file FileDefinitionWidgetDraw.cxx.
References ButtonDown, ButtonLeft, ButtonRight, ButtonUp, Checkbox, Combobox, Editbox, EditboxNoBorder, Entire, eType, tools::Rectangle::expand(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), Listbox, m_pWidgetDefinition, MultilineEditbox, Radiobutton, Scrollbar, Slider, Spinbox, SubEdit, TabItem, ThumbHorz, ThumbVert, tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
|
overridevirtual |
Query if a position is inside the native widget part.
Mainly used for scrollbars.
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
[in] | rBoundingControlRegion | The bounding Rectangle of the complete control in VCL frame coordinates. |
[in] | aPos | The position to check the hit. |
[out] | rIsInside | true, if aPos was inside the native widget. |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 207 of file FileDefinitionWidgetDraw.cxx.
|
static |
Definition at line 245 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::implDrawGradient().
|
inline |
Definition at line 35 of file FileDefinitionWidgetDraw.hxx.
References m_bIsActive.
|
overridevirtual |
Query the platform layer for native control support.
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 146 of file FileDefinitionWidgetDraw.cxx.
References AllButtons, Checkbox, Combobox, DrawBackgroundHorz, DrawBackgroundVert, Editbox, EditboxNoBorder, eType, Fixedline, Frame, Generic, HasBackgroundTexture, IntroProgress, Listbox, ListHeader, ListNet, ListNode, Menubar, MenuPopup, MultilineEditbox, Progress, Pushbutton, Radiobutton, Scrollbar, Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, and WindowBackground.
|
private |
Definition at line 562 of file FileDefinitionWidgetDraw.cxx.
References eType, m_pWidgetDefinition, and m_rGraphics.
Referenced by drawNativeControl().
|
overridevirtual |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 1012 of file FileDefinitionWidgetDraw.cxx.
References FAMILY_SWISS, StyleSettings::GetFloatTitleHeight(), AllSettings::GetStyleSettings(), StyleSettings::GetTitleHeight(), m_pWidgetDefinition, StyleSettings::SetActionButtonPressedRolloverTextColor(), StyleSettings::SetActionButtonRolloverTextColor(), StyleSettings::SetActionButtonTextColor(), StyleSettings::SetActiveBorderColor(), StyleSettings::SetActiveColor(), StyleSettings::SetActiveTabColor(), StyleSettings::SetActiveTextColor(), StyleSettings::SetAppFont(), StyleSettings::SetButtonPressedRolloverTextColor(), StyleSettings::SetButtonRolloverTextColor(), StyleSettings::SetButtonTextColor(), vcl::Font::SetCharSet(), StyleSettings::SetCheckedColor(), StyleSettings::SetDarkShadowColor(), StyleSettings::SetDeactiveBorderColor(), StyleSettings::SetDeactiveColor(), StyleSettings::SetDeactiveTextColor(), StyleSettings::SetDefaultActionButtonPressedRolloverTextColor(), StyleSettings::SetDefaultActionButtonRolloverTextColor(), StyleSettings::SetDefaultActionButtonTextColor(), StyleSettings::SetDefaultButtonPressedRolloverTextColor(), StyleSettings::SetDefaultButtonRolloverTextColor(), StyleSettings::SetDefaultButtonTextColor(), StyleSettings::SetDialogColor(), StyleSettings::SetDialogTextColor(), StyleSettings::SetDisableColor(), StyleSettings::SetFaceColor(), vcl::Font::SetFamilyName(), StyleSettings::SetFieldColor(), StyleSettings::SetFieldFont(), StyleSettings::SetFieldRolloverTextColor(), StyleSettings::SetFieldTextColor(), StyleSettings::SetFlatButtonPressedRolloverTextColor(), StyleSettings::SetFlatButtonRolloverTextColor(), StyleSettings::SetFlatButtonTextColor(), StyleSettings::SetFloatTitleFont(), StyleSettings::SetFloatTitleHeight(), StyleSettings::SetGroupFont(), StyleSettings::SetGroupTextColor(), StyleSettings::SetHelpColor(), StyleSettings::SetHelpFont(), StyleSettings::SetHelpTextColor(), StyleSettings::SetHighlightColor(), StyleSettings::SetHighlightTextColor(), StyleSettings::SetIconFont(), StyleSettings::SetInactiveTabColor(), StyleSettings::SetLabelFont(), StyleSettings::SetLabelTextColor(), StyleSettings::SetLightBorderColor(), StyleSettings::SetLightColor(), StyleSettings::SetLinkColor(), StyleSettings::SetListBoxPreviewDefaultLogicSize(), StyleSettings::SetMenuBarColor(), StyleSettings::SetMenuBarHighlightTextColor(), StyleSettings::SetMenuBarRolloverColor(), StyleSettings::SetMenuBarRolloverTextColor(), StyleSettings::SetMenuBarTextColor(), StyleSettings::SetMenuBorderColor(), StyleSettings::SetMenuColor(), StyleSettings::SetMenuFont(), StyleSettings::SetMenuHighlightColor(), StyleSettings::SetMenuHighlightTextColor(), StyleSettings::SetMenuTextColor(), StyleSettings::SetMonoColor(), StyleSettings::SetPushButtonFont(), StyleSettings::SetRadioCheckFont(), StyleSettings::SetRadioCheckTextColor(), StyleSettings::SetShadowColor(), AllSettings::SetStyleSettings(), StyleSettings::SetTabFont(), StyleSettings::SetTabHighlightTextColor(), StyleSettings::SetTabRolloverTextColor(), StyleSettings::SetTabTextColor(), StyleSettings::SetTitleFont(), StyleSettings::SetTitleHeight(), StyleSettings::SetToolFont(), StyleSettings::SetToolTextColor(), StyleSettings::SetVisitedLinkColor(), vcl::Font::SetWeight(), StyleSettings::SetWindowColor(), StyleSettings::SetWindowTextColor(), StyleSettings::SetWorkspaceColor(), WEIGHT_BOLD, and WEIGHT_NORMAL.
|
private |
Definition at line 24 of file FileDefinitionWidgetDraw.hxx.
Referenced by FileDefinitionWidgetDraw(), and isActive().
|
private |
Definition at line 26 of file FileDefinitionWidgetDraw.hxx.
Referenced by FileDefinitionWidgetDraw(), getNativeControlRegion(), resolveDefinition(), and updateSettings().
|
private |
Definition at line 23 of file FileDefinitionWidgetDraw.hxx.
Referenced by drawNativeControl(), and resolveDefinition().