2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2007-04-11 16:56:01 +00:00
|
|
|
|
2013-10-23 19:10:20 +02:00
|
|
|
#ifndef INCLUDED_VCL_GROUP_HXX
|
|
|
|
#define INCLUDED_VCL_GROUP_HXX
|
2007-04-11 16:56:01 +00:00
|
|
|
|
2012-06-10 19:26:30 +03:00
|
|
|
#include <tools/solar.h>
|
2007-04-11 16:56:01 +00:00
|
|
|
#include <vcl/dllapi.h>
|
|
|
|
#include <vcl/ctrl.hxx>
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 16:56:01 +00:00
|
|
|
class VCL_DLLPUBLIC GroupBox : public Control
|
|
|
|
{
|
|
|
|
private:
|
2009-10-13 09:49:33 +00:00
|
|
|
using Control::ImplInitSettings;
|
2007-04-11 16:56:01 +00:00
|
|
|
using Window::ImplInit;
|
2014-09-23 11:20:40 +02:00
|
|
|
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
|
2016-10-07 11:57:50 +02:00
|
|
|
SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle );
|
2017-04-24 12:54:28 +02:00
|
|
|
SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
|
2015-05-27 09:37:41 +02:00
|
|
|
SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
|
2007-04-11 16:56:01 +00:00
|
|
|
const Point& rPos, const Size& rSize, bool bLayout = false );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void FillLayoutData() const override;
|
2014-09-16 10:09:58 +02:00
|
|
|
virtual const vcl::Font&
|
2015-10-12 16:04:04 +02:00
|
|
|
GetCanonicalFont( const StyleSettings& _rStyle ) const override;
|
2009-09-14 12:09:22 +00:00
|
|
|
virtual const Color&
|
2015-10-12 16:04:04 +02:00
|
|
|
GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
|
2007-04-11 16:56:01 +00:00
|
|
|
|
|
|
|
public:
|
2016-09-14 12:26:36 +02:00
|
|
|
explicit GroupBox( vcl::Window* pParent, WinBits nStyle );
|
2007-04-11 16:56:01 +00:00
|
|
|
|
2017-03-30 20:27:55 +02:00
|
|
|
virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ) override;
|
|
|
|
virtual void Resize() override;
|
|
|
|
virtual void StateChanged( StateChangedType nType ) override;
|
|
|
|
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
|
2007-04-11 16:56:01 +00:00
|
|
|
};
|
|
|
|
|
2013-10-23 19:10:20 +02:00
|
|
|
#endif // INCLUDED_VCL_GROUP_HXX
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|