fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / tabbgcolordlg.hxx
blob122f112c068b1ba57259dba5d1fd87021a20ca2b
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 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_TABBGCOLORDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TABBGCOLORDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/button.hxx>
26 #include <svx/SvxColorValueSet.hxx>
28 class ScTabBgColorDlg : public ModalDialog
30 public:
31 ScTabBgColorDlg( vcl::Window* pParent,
32 const OUString& rTitle,
33 const OUString& rTabBgColorNoColorText,
34 const Color& rDefaultColor,
35 const OString& nHelpId );
36 virtual ~ScTabBgColorDlg();
37 virtual void dispose() SAL_OVERRIDE;
39 void GetSelectedColor( Color& rColor ) const;
41 class ScTabBgColorValueSet : public SvxColorValueSet
43 public:
44 ScTabBgColorValueSet(vcl::Window* pParent, WinBits nStyle);
45 virtual ~ScTabBgColorValueSet();
46 virtual void dispose() SAL_OVERRIDE;
48 void SetDialog(ScTabBgColorDlg* pTabBgColorDlg)
50 m_pTabBgColorDlg = pTabBgColorDlg;
53 virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
54 private:
55 VclPtr<ScTabBgColorDlg> m_pTabBgColorDlg;
58 private:
59 VclPtr<ScTabBgColorValueSet> m_pTabBgColorSet;
60 VclPtr<OKButton> m_pBtnOk;
61 Color m_aTabBgColor;
62 const OUString m_aTabBgColorNoColorText;
64 void FillColorValueSets_Impl();
66 DECL_LINK(TabBgColorDblClickHdl_Impl, void *);
67 DECL_LINK(TabBgColorOKHdl_Impl, void *);
70 #endif // INCLUDED_SC_SOURCE_UI_INC_TABBGCOLORDLG_HXX
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */