LibreOffice Module svx (master) 1
selectioncontroller.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#ifndef INCLUDED_SVX_SELECTIONCONTROLLER_HXX
21#define INCLUDED_SVX_SELECTIONCONTROLLER_HXX
22
23#include <svx/svxdllapi.h>
24#include <cppuhelper/weak.hxx>
25#include <rtl/ref.hxx>
26
27class KeyEvent;
28class MouseEvent;
29namespace vcl { class Window; }
30class SfxItemSet;
31class SfxRequest;
32class SfxStyleSheet;
33class SdrModel;
34class Point;
35class FontList;
36class SdrObject;
37
38namespace sdr
39{
40
41namespace table { struct CellPos; }
42
44{
45public:
46 virtual bool onKeyInput(const KeyEvent& rKEvt, vcl::Window* pWin);
47 virtual bool onMouseButtonDown(const MouseEvent& rMEvt, vcl::Window* pWin);
48 virtual bool onMouseButtonUp(const MouseEvent& rMEvt, vcl::Window* pWin);
49 virtual bool onMouseMove(const MouseEvent& rMEvt, vcl::Window* pWin);
50
51 virtual void onSelectionHasChanged();
52
53 virtual void onSelectAll();
54
55 virtual void GetState( SfxItemSet& rSet );
56 virtual void Execute( SfxRequest& rReq );
57
58 virtual bool DeleteMarked();
59
60 virtual bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
61 virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
62
63 virtual bool GetStyleSheet( SfxStyleSheet* &rpStyleSheet ) const;
64 virtual bool SetStyleSheet( SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr );
65
66 virtual rtl::Reference<SdrObject> GetMarkedSdrObjClone( SdrModel& rTargetModel );
67 virtual bool PasteObjModel( const SdrModel& rModel );
68
73 virtual bool ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNoCharacterFormats, bool bNoParagraphFormats );
75 virtual bool hasSelectedCells() const;
77 virtual bool setCursorLogicPosition(const Point& rPosition, bool bPoint);
79 virtual void getSelectedCells(table::CellPos& rFirstPos, table::CellPos& rLastPos);
81 virtual bool ChangeFontSize(bool bGrow, const FontList* pFontList);
82};
83
84}
85
86#endif // INCLUDED_SVX_SELECTIONCONTROLLER_HXX
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Abstract DrawObject.
Definition: svdobj.hxx:260
@ table
void GetState(const SdrMarkView *pSdrView, SfxItemSet &rSet)
static SfxItemSet & rSet
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35