fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / dialogs / res_BarGeometry.cxx
blobdd3db5ea65c621f1204475ec02550128f3f0f6f3
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 #include "res_BarGeometry.hxx"
22 namespace chart
25 BarGeometryResources::BarGeometryResources(VclBuilderContainer* pWindow)
27 pWindow->get(m_pFT_Geometry, "shapeft");
28 pWindow->get(m_pLB_Geometry, "shape");
31 void BarGeometryResources::SetSelectHdl( const Link<>& rLink )
33 m_pLB_Geometry->SetSelectHdl( rLink );
36 void BarGeometryResources::Show( bool bShow )
38 m_pFT_Geometry->Show( bShow );
39 m_pLB_Geometry->Show( bShow );
41 void BarGeometryResources::Enable( bool bEnable )
43 m_pFT_Geometry->Enable( bEnable );
44 m_pLB_Geometry->Enable( bEnable );
47 sal_Int32 BarGeometryResources::GetSelectEntryCount() const
49 return m_pLB_Geometry->GetSelectEntryCount();
52 sal_Int32 BarGeometryResources::GetSelectEntryPos() const
54 return m_pLB_Geometry->GetSelectEntryPos();
57 void BarGeometryResources::SelectEntryPos(sal_Int32 nPos)
59 if( nPos < m_pLB_Geometry->GetEntryCount() )
60 m_pLB_Geometry->SelectEntryPos( nPos );
63 } //namespace chart
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */