LibreOffice Module sd (master)
1
sd
source
ui
inc
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
24
namespace
sd
{
25
26
class
DrawViewShell;
27
28
class
FuFormatPaintBrush
final :
public
FuText
29
{
30
public
:
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
44
private
:
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
;
55
bool
mbPermanent
;
56
bool
mbOldIsQuickTextEditMode
;
57
};
58
59
}
// end of namespace sd
60
61
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
KeyEvent
MouseEvent
SdDrawDocument
Definition:
drawdoc.hxx:121
SfxItemSet
SfxRequest
rtl::Reference
sd::DrawViewShell
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
Definition:
DrawViewShell.hxx:72
sd::FuFormatPaintBrush
Definition:
fuformatpaintbrush.hxx:29
sd::FuFormatPaintBrush::GetMenuState
static void GetMenuState(DrawViewShell const &rDrawViewShell, SfxItemSet &rSet)
Definition:
fuformatpaintbrush.cxx:261
sd::FuFormatPaintBrush::implcancel
void implcancel()
Definition:
fuformatpaintbrush.cxx:71
sd::FuFormatPaintBrush::MouseButtonUp
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
Definition:
fuformatpaintbrush.cxx:164
sd::FuFormatPaintBrush::mbPermanent
bool mbPermanent
Definition:
fuformatpaintbrush.hxx:55
sd::FuFormatPaintBrush::Activate
virtual void Activate() override
activates the function
Definition:
fuformatpaintbrush.cxx:203
sd::FuFormatPaintBrush::MouseMove
virtual bool MouseMove(const MouseEvent &rMEvt) override
Definition:
fuformatpaintbrush.cxx:140
sd::FuFormatPaintBrush::DoExecute
void DoExecute(SfxRequest &rReq) override
Definition:
fuformatpaintbrush.cxx:57
sd::FuFormatPaintBrush::mxItemSet
std::shared_ptr< SfxItemSet > mxItemSet
Definition:
fuformatpaintbrush.hxx:54
sd::FuFormatPaintBrush::HasContentForThisType
bool HasContentForThisType(SdrInventor nObjectInventor, SdrObjKind nObjectIdentifier) const
Definition:
fuformatpaintbrush.cxx:222
sd::FuFormatPaintBrush::MouseButtonDown
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
Definition:
fuformatpaintbrush.cxx:87
sd::FuFormatPaintBrush::Create
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition:
fuformatpaintbrush.cxx:50
sd::FuFormatPaintBrush::Deactivate
virtual void Deactivate() override
deactivates the function
Definition:
fuformatpaintbrush.cxx:213
sd::FuFormatPaintBrush::mbOldIsQuickTextEditMode
bool mbOldIsQuickTextEditMode
Definition:
fuformatpaintbrush.hxx:56
sd::FuFormatPaintBrush::KeyInput
virtual bool KeyInput(const KeyEvent &rKEvt) override
handle keyboard events
Definition:
fuformatpaintbrush.cxx:193
sd::FuFormatPaintBrush::Paste
void Paste(bool, bool)
Definition:
fuformatpaintbrush.cxx:231
sd::FuFormatPaintBrush::FuFormatPaintBrush
FuFormatPaintBrush(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition:
fuformatpaintbrush.cxx:43
sd::FuText
Base class for text functions.
Definition:
futext.hxx:36
sd::ViewShell
Base class of the stacked shell hierarchy.
Definition:
ViewShell.hxx:92
sd::View
Definition:
View.hxx:96
sd::Window
An SdWindow contains the actual working area of ViewShell.
Definition:
Window.hxx:45
futext.hxx
sd
rSet
static SfxItemSet & rSet
SdrInventor
SdrInventor
SdrObjKind
SdrObjKind
Generated on Sun Jul 30 2023 04:27:19 for LibreOffice Module sd (master) by
1.9.3