bump product version to 6.4.0.3
[LibreOffice.git] / vcl / inc / FileDefinitionWidgetDraw.hxx
blob7e3d398fb0f8481d19d4b7ce6b73918da5b34a44
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #ifndef INCLUDED_VCL_INC_FILEDEFINITIONWIDGETDRAW_HXX
12 #define INCLUDED_VCL_INC_FILEDEFINITIONWIDGETDRAW_HXX
14 #include "widgetdraw/WidgetDefinition.hxx"
15 #include "salgdi.hxx"
16 #include "WidgetDrawInterface.hxx"
18 namespace vcl
20 class FileDefinitionWidgetDraw : public vcl::WidgetDrawInterface
22 private:
23 SalGraphics& m_rGraphics;
24 bool m_bIsActive;
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,
30 long nHeight);
32 public:
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
58 #endif
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */