1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #ifndef INCLUDED_VCL_INC_FILEDEFINITIONWIDGETDRAW_HXX
12 #define INCLUDED_VCL_INC_FILEDEFINITIONWIDGETDRAW_HXX
14 #include "widgetdraw/WidgetDefinition.hxx"
16 #include "WidgetDrawInterface.hxx"
20 class FileDefinitionWidgetDraw
: public vcl::WidgetDrawInterface
23 SalGraphics
& m_rGraphics
;
26 std::shared_ptr
<WidgetDefinition
> m_pWidgetDefinition
;
28 bool resolveDefinition(ControlType eType
, ControlPart ePart
, ControlState eState
,
29 const ImplControlValue
& rValue
, long nX
, long nY
, long nWidth
,
33 FileDefinitionWidgetDraw(SalGraphics
& rGraphics
);
35 bool isActive() const { return m_bIsActive
; }
37 bool isNativeControlSupported(ControlType eType
, ControlPart ePart
) override
;
39 bool hitTestNativeControl(ControlType eType
, ControlPart ePart
,
40 const tools::Rectangle
& rBoundingControlRegion
, const Point
& aPos
,
41 bool& rIsInside
) override
;
43 bool drawNativeControl(ControlType eType
, ControlPart ePart
,
44 const tools::Rectangle
& rBoundingControlRegion
, ControlState eState
,
45 const ImplControlValue
& aValue
, const OUString
& aCaptions
) override
;
47 bool getNativeControlRegion(ControlType eType
, ControlPart ePart
,
48 const tools::Rectangle
& rBoundingControlRegion
, ControlState eState
,
49 const ImplControlValue
& aValue
, const OUString
& aCaption
,
50 tools::Rectangle
& rNativeBoundingRegion
,
51 tools::Rectangle
& rNativeContentRegion
) override
;
53 bool updateSettings(AllSettings
& rSettings
) override
;
56 } // end vcl namespace
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */