LibreOffice Module sd (master) 1
fuformatpaintbrush.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "futext.hxx"
23
24namespace sd {
25
26class DrawViewShell;
27
28class FuFormatPaintBrush final : public FuText
29{
30public:
31
32 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
33
34 virtual bool MouseMove(const MouseEvent& rMEvt) override;
35 virtual bool MouseButtonUp(const MouseEvent& rMEvt) override;
36 virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
37 virtual bool KeyInput(const KeyEvent& rKEvt) override;
38
39 virtual void Activate() override;
40 virtual void Deactivate() override;
41
42 static void GetMenuState( DrawViewShell const & rDrawViewShell, SfxItemSet &rSet );
43
44private:
45 FuFormatPaintBrush ( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq);
46
47 void DoExecute( SfxRequest& rReq ) override;
48
49 bool HasContentForThisType( SdrInventor nObjectInventor, SdrObjKind nObjectIdentifier ) const;
50 void Paste( bool, bool );
51
52 void implcancel();
53
54 std::shared_ptr<SfxItemSet> mxItemSet;
57};
58
59} // end of namespace sd
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
static void GetMenuState(DrawViewShell const &rDrawViewShell, SfxItemSet &rSet)
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual void Activate() override
activates the function
virtual bool MouseMove(const MouseEvent &rMEvt) override
void DoExecute(SfxRequest &rReq) override
std::shared_ptr< SfxItemSet > mxItemSet
bool HasContentForThisType(SdrInventor nObjectInventor, SdrObjKind nObjectIdentifier) const
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual void Deactivate() override
deactivates the function
virtual bool KeyInput(const KeyEvent &rKEvt) override
handle keyboard events
FuFormatPaintBrush(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Base class for text functions.
Definition: futext.hxx:36
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45
static SfxItemSet & rSet
SdrInventor
SdrObjKind