2010-10-27 13:11:31 +01: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 .
|
|
|
|
*/
|
2004-08-02 09:06:07 +00:00
|
|
|
|
2013-10-23 19:08:11 +02:00
|
|
|
#ifndef INCLUDED_SVX_FORMATPAINTBRUSHCTRL_HXX
|
|
|
|
#define INCLUDED_SVX_FORMATPAINTBRUSHCTRL_HXX
|
2004-08-02 09:06:07 +00:00
|
|
|
|
|
|
|
#include <sfx2/tbxctrl.hxx>
|
|
|
|
#include <vcl/timer.hxx>
|
2013-11-09 15:28:54 -06:00
|
|
|
#include <svx/svxdllapi.h>
|
2005-01-21 13:38:54 +00:00
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2004-08-02 09:06:07 +00:00
|
|
|
namespace svx
|
|
|
|
{
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2004-08-02 09:06:07 +00:00
|
|
|
/**
|
|
|
|
*/
|
|
|
|
|
2015-04-17 20:59:58 +01:00
|
|
|
class SVX_DLLPUBLIC SAL_WARN_UNUSED FormatPaintBrushToolBoxControl : public SfxToolBoxControl
|
2004-08-02 09:06:07 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
2011-01-10 16:11:35 +01:00
|
|
|
FormatPaintBrushToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~FormatPaintBrushToolBoxControl();
|
2004-08-02 09:06:07 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void DoubleClick() SAL_OVERRIDE;
|
|
|
|
virtual void Click() SAL_OVERRIDE;
|
2014-04-02 15:18:03 +02:00
|
|
|
virtual void Select(sal_uInt16 nSelectModifier) SAL_OVERRIDE;
|
2004-08-02 09:06:07 +00:00
|
|
|
|
2011-01-10 16:11:35 +01:00
|
|
|
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
|
2014-03-27 18:12:18 +01:00
|
|
|
const SfxPoolItem* pState ) SAL_OVERRIDE;
|
2004-08-02 09:06:07 +00:00
|
|
|
private:
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED( WaitDoubleClickHdl, Timer*, void );
|
2004-08-02 09:06:07 +00:00
|
|
|
void impl_executePaintBrush();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_bPersistentCopy;//indicates that the content of the format clipboard should not be erased after paste
|
|
|
|
Timer m_aDoubleClickTimer;
|
|
|
|
};
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2004-08-02 09:06:07 +00:00
|
|
|
} //namespace svx
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2004-08-02 09:06:07 +00:00
|
|
|
#endif
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|