diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-12-12 00:47:12 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-12-12 09:26:29 +0200 |
commit | aacf715527f73b3c3eda65e43a74975bc653586f (patch) | |
tree | 6f3355539e38aa4642f3871abc76039f8eb8fb3a /vcl | |
parent | d2df0adad4cad2098807803a21ced712ad21e918 (diff) |
<vcl/spin.h> can be private to vcl
Change-Id: If723dd72479ab8d072581e9ffbf7a1462c5fecda
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/spin.hxx | 34 | ||||
-rw-r--r-- | vcl/source/control/spinbtn.cxx | 3 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 2 |
4 files changed, 38 insertions, 3 deletions
diff --git a/vcl/inc/spin.hxx b/vcl/inc/spin.hxx new file mode 100644 index 000000000000..9b5c080b907e --- /dev/null +++ b/vcl/inc/spin.hxx @@ -0,0 +1,34 @@ +/* -*- 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 . + */ + +#ifndef INCLUDED_VCL_INC_SPIN_HXX +#define INCLUDED_VCL_INC_SPIN_HXX + +#include <vcl/window.hxx> + +class Rectangle; + +void ImplDrawSpinButton(vcl::RenderContext& rRenderContext, vcl::Window* pWindow, + const Rectangle& rUpperRect, const Rectangle& rLowerRect, + bool bUpperIn, bool bLowerIn, bool bUpperEnabled = true, bool bLowerEnabled = true, + bool bHorz = false, bool bMirrorHorz = false); + +#endif // INCLUDED_VCL_INC_SPIN_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index f720420a9546..3af10f0b4cd9 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -18,11 +18,12 @@ */ #include <tools/rcid.h> -#include <vcl/spin.h> #include <vcl/event.hxx> #include <vcl/spin.hxx> #include <vcl/settings.hxx> +#include "spin.hxx" + void SpinButton::ImplInit( vcl::Window* pParent, WinBits nStyle ) { mbUpperIn = false; diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 5f86629d5d17..c95bf29b1e2c 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -21,11 +21,11 @@ #include "vcl/event.hxx" #include "vcl/decoview.hxx" -#include "vcl/spin.h" #include "vcl/spinfld.hxx" #include "vcl/settings.hxx" #include "controldata.hxx" +#include "spin.hxx" #include "svdata.hxx" namespace { diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 671f320e9bea..3cd2cab483c6 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -23,7 +23,6 @@ #include <vcl/accel.hxx> #include <vcl/svapp.hxx> #include <vcl/help.hxx> -#include <vcl/spin.h> #include <vcl/bitmap.hxx> #include <vcl/mnemonic.hxx> #include <vcl/gradient.hxx> @@ -41,6 +40,7 @@ #include <window.h> #include <toolbox.h> #include <salframe.hxx> +#include <spin.hxx> #if defined WNT #include <svsys.h> #endif |