1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEAPPEARANCE_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEAPPEARANCE_HXX
22 #include <vcl/tabpage.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <com/sun/star/drawing/ShadeMode.hpp>
27 #include <com/sun/star/frame/XModel.hpp>
29 #include "ControllerLockGuard.hxx"
34 class ThreeD_SceneAppearance_TabPage
: public TabPage
37 ThreeD_SceneAppearance_TabPage(
39 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> & xChartModel
,
40 ControllerLockHelper
& rControllerLockHelper
);
41 virtual ~ThreeD_SceneAppearance_TabPage();
42 virtual void dispose() SAL_OVERRIDE
;
44 virtual void ActivatePage() SAL_OVERRIDE
;
47 DECL_LINK( SelectSchemeHdl
, void* );
48 DECL_LINK( SelectShading
, void* );
49 DECL_LINK( SelectRoundedEdgeOrObjectLines
, CheckBox
* );
51 void initControlsFromModel();
52 void applyShadeModeToModel();
53 void applyRoundedEdgeAndObjectLinesToModel();
57 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>
60 VclPtr
<ListBox
> m_pLB_Scheme
;
62 VclPtr
<CheckBox
> m_pCB_Shading
;
63 VclPtr
<CheckBox
> m_pCB_ObjectLines
;
64 VclPtr
<CheckBox
> m_pCB_RoundedEdge
;
66 bool m_bUpdateOtherControls
;
67 bool m_bCommitToModel
;
70 ControllerLockHelper
& m_rControllerLockHelper
;
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */