summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-07 20:20:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-08 10:10:53 +0200
commit4d1d64ebd3ef8880459f1778d0a34a4ca15f87ca (patch)
tree3307903f9fe124d3ab99b6ad1ceed1a10b59fda5 /include
parentfe2bc1012932cbb6c902b9034d9d1497609e57a5 (diff)
split button.hxx into toolkit-only piece
Change-Id: I792efb417504a3b55043ff4fc3fd3597a9b953f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93678 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/button.hxx18
-rw-r--r--include/vcl/toolkit/button.hxx45
2 files changed, 45 insertions, 18 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index bfdb4d5323b3..35e98c52bba6 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -253,24 +253,6 @@ public:
explicit CloseButton(vcl::Window* pParent, WinBits nStyle = 0);
};
-class VCL_DLLPUBLIC HelpButton : public PushButton
-{
-protected:
- using PushButton::ImplInit;
-private:
- SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
-
- HelpButton( const HelpButton & ) = delete;
- HelpButton & operator= ( const HelpButton & ) = delete;
-
- virtual void StateChanged( StateChangedType nStateChange ) override;
-
-public:
- explicit HelpButton( vcl::Window* pParent, WinBits nStyle = 0 );
-
- virtual void Click() override;
-};
-
class VCL_DLLPUBLIC RadioButton : public Button
{
private:
diff --git a/include/vcl/toolkit/button.hxx b/include/vcl/toolkit/button.hxx
new file mode 100644
index 000000000000..d2ec4d2ceb0c
--- /dev/null
+++ b/include/vcl/toolkit/button.hxx
@@ -0,0 +1,45 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+#pragma once
+
+#if !defined(VCL_DLLIMPLEMENTATION) && !defined(TOOLKIT_DLLIMPLEMENTATION) && !defined(VCL_INTERNALS)
+#error "don't use this in new code"
+#endif
+
+#include <vcl/button.hxx>
+
+class VCL_DLLPUBLIC HelpButton : public PushButton
+{
+protected:
+ using PushButton::ImplInit;
+private:
+ SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
+
+ HelpButton( const HelpButton & ) = delete;
+ HelpButton & operator= ( const HelpButton & ) = delete;
+
+ virtual void StateChanged( StateChangedType nStateChange ) override;
+
+public:
+ explicit HelpButton( vcl::Window* pParent, WinBits nStyle = 0 );
+
+ virtual void Click() override;
+};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */