diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/menutogglebutton.hxx | 34 | ||||
-rw-r--r-- | vcl/source/app/salvtables.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/menubtn.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 1 |
4 files changed, 37 insertions, 1 deletions
diff --git a/vcl/inc/menutogglebutton.hxx b/vcl/inc/menutogglebutton.hxx new file mode 100644 index 000000000000..e297926822d6 --- /dev/null +++ b/vcl/inc/menutogglebutton.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 . + */ + +#pragma once + +#include <vcl/menubtn.hxx> + +class MenuToggleButton final : public MenuButton +{ +public: + explicit MenuToggleButton(vcl::Window* pParent, WinBits nStyle); + virtual ~MenuToggleButton() override; + + void SetActive(bool bSel); + bool GetActive() const; +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 4ebf0bda3b55..26e382af0536 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -71,7 +71,7 @@ #include <vcl/virdev.hxx> #include <bitmaps.hlst> #include <calendar.hxx> -#include <vcl/menubtn.hxx> +#include <menutogglebutton.hxx> #include <verticaltabctrl.hxx> #include <window.h> #include <wizdlg.hxx> diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx index 643cf048b84b..a3c1cda1ce8b 100644 --- a/vcl/source/control/menubtn.cxx +++ b/vcl/source/control/menubtn.cxx @@ -27,6 +27,7 @@ #include <vcl/uitest/uiobject.hxx> #include <vcl/uitest/logger.hxx> #include <vcl/uitest/eventdescription.hxx> +#include <menutogglebutton.hxx> namespace { diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index bea4f8f42390..b708eba955b8 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -62,6 +62,7 @@ #include <xmlreader/xmlreader.hxx> #include <desktop/crashreport.hxx> #include <calendar.hxx> +#include <menutogglebutton.hxx> #include <salinst.hxx> #include <strings.hrc> #include <treeglue.hxx> |