2011-09-20 15:22:02 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2011-09-20 15:22:02 +02:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* 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/.
|
2011-09-20 15:22:02 +02:00
|
|
|
*/
|
2014-06-03 10:01:18 +02:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_DASHEDLINE_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UIBASE_INC_DASHEDLINE_HXX
|
2011-09-20 15:22:02 +02:00
|
|
|
|
|
|
|
#include <basegfx/color/bcolor.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
|
|
|
|
/** Class for displaying a dashed line in the Writer GUI.
|
|
|
|
*/
|
|
|
|
class SwDashedLine : public FixedLine
|
|
|
|
{
|
2012-01-04 15:20:22 +01:00
|
|
|
Color& (*m_pColorFn)();
|
2011-09-20 15:22:02 +02:00
|
|
|
|
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
SwDashedLine( vcl::Window* pParent, Color& ( *pColorFn )() );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~SwDashedLine( );
|
2011-09-20 15:22:02 +02:00
|
|
|
|
2015-04-28 11:00:54 +09:00
|
|
|
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE;
|
2011-09-20 15:22:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|