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 |
![]() | |
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
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 113 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 231 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawBitmap().
|
static |
Definition at line 237 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 586 of file FileDefinitionWidgetDraw.cxx.
References Button, Checkbox, Combobox, Editbox, EditboxNoBorder, 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 221 of file FileDefinitionWidgetDraw.cxx.
References SalGraphics::drawPolyLine().
|
static |
Definition at line 213 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 785 of file FileDefinitionWidgetDraw.cxx.
References ButtonDown, ButtonLeft, ButtonRight, ButtonUp, Checkbox, Combobox, Editbox, EditboxNoBorder, Entire, tools::Rectangle::expand(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), Listbox, m_pWidgetDefinition, MultilineEditbox, Point, Radiobutton, Scrollbar, Slider, Spinbox, SubEdit, TabItem, ThumbHorz, ThumbVert, tools::Rectangle::TopLeft(), and Size::Width().
|
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 206 of file FileDefinitionWidgetDraw.cxx.
|
static |
Definition at line 244 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 145 of file FileDefinitionWidgetDraw.cxx.
References AllButtons, Checkbox, Combobox, DrawBackgroundHorz, DrawBackgroundVert, Editbox, EditboxNoBorder, 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 561 of file FileDefinitionWidgetDraw.cxx.
References m_pWidgetDefinition, and m_rGraphics.
Referenced by drawNativeControl().
|
overridevirtual |
Reimplemented from vcl::WidgetDrawInterface.
Definition at line 1011 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::SetFontColor(), 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().