fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svx / sidebar / ColorPopup.hxx
blobcdac568c7fd51234f57f8e30ca940d0ebebd7afa
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #ifndef _SVX_SIDEBAR_COLOR_POPUP_HXX_
19 #define _SVX_SIDEBAR_COLOR_POPUP_HXX_
21 #include "svx/sidebar/Popup.hxx"
23 #include <tools/color.hxx>
26 namespace svx { namespace sidebar {
28 /** Popup control that displays all named colors in a matrix.
29 The number of rows and columns of the matrix are computed from
30 the number of named colors so that both have roughly the same
31 value.
33 The ColorPopup uses ColorControl as control for its content.
35 class SVX_DLLPUBLIC ColorPopup
36 : public Popup
38 public :
39 ColorPopup (
40 Window* pParent,
41 const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator);
42 virtual ~ColorPopup (void);
44 void SetCurrentColor (
45 const Color aCurrentColor,
46 const bool bIsColorAvailable);
49 } } // end of namespace svx::sidebar
51 #endif