Line data Source code
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 : #ifndef INCLUDED_SW_SOURCE_UI_INC_DRWTXTSH_HXX
20 : #define INCLUDED_SW_SOURCE_UI_INC_DRWTXTSH_HXX
21 :
22 : #include <sfx2/shell.hxx>
23 : #include "shellid.hxx"
24 : #include <unotools/caserotate.hxx>
25 :
26 : class SdrView;
27 : class SwView;
28 : class SwWrtShell;
29 :
30 : class SwDrawTextShell: public SfxShell
31 : {
32 : SwView &rView;
33 : RotateTransliteration m_aRotateCase;
34 :
35 : SdrView *pSdrView;
36 :
37 : void SetAttrToMarked(const SfxItemSet& rAttr);
38 : void InsertSymbol(SfxRequest& rReq);
39 : sal_Bool IsTextEdit();
40 : public:
41 0 : SFX_DECL_INTERFACE(SW_DRWTXTSHELL)
42 : TYPEINFO_OVERRIDE();
43 :
44 0 : SwView &GetView() { return rView; }
45 : SwWrtShell &GetShell();
46 :
47 : SwDrawTextShell(SwView &rView);
48 : virtual ~SwDrawTextShell();
49 :
50 : virtual ::svl::IUndoManager*
51 : GetUndoManager() SAL_OVERRIDE;
52 :
53 : void StateDisableItems(SfxItemSet &);
54 :
55 : void Execute(SfxRequest &);
56 : void ExecDraw(SfxRequest &);
57 : void GetStatePropPanelAttr(SfxItemSet &);
58 : void GetState(SfxItemSet &);
59 : void GetDrawTxtCtrlState(SfxItemSet&);
60 :
61 : void ExecFontWork(SfxRequest& rReq);
62 : void StateFontWork(SfxItemSet& rSet);
63 : void ExecFormText(SfxRequest& rReq);
64 : void GetFormTextState(SfxItemSet& rSet);
65 : void ExecDrawLingu(SfxRequest &rReq);
66 : void ExecUndo(SfxRequest &rReq);
67 : void StateUndo(SfxItemSet &rSet);
68 : void ExecClpbrd(SfxRequest &rReq);
69 : void StateClpbrd(SfxItemSet &rSet);
70 : void StateInsert(SfxItemSet &rSet);
71 : void ExecTransliteration(SfxRequest &);
72 : void ExecRotateTransliteration(SfxRequest &);
73 :
74 : void Init();
75 : void StateStatusline(SfxItemSet &rSet);
76 : };
77 :
78 : #endif
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|