Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SWDRWTXTSH_HXX
29 : : #define _SWDRWTXTSH_HXX
30 : :
31 : : #include <sfx2/shell.hxx>
32 : : #include "shellid.hxx"
33 : : #include <unotools/caserotate.hxx>
34 : :
35 : : class SdrView;
36 : : class SwView;
37 : : class SwWrtShell;
38 : :
39 : : class SwDrawTextShell: public SfxShell
40 : : {
41 : : SwView &rView;
42 : : RotateTransliteration m_aRotateCase;
43 : :
44 : : SdrView *pSdrView;
45 : :
46 : : sal_Bool bRotate : 1;
47 : : sal_Bool bSelMove: 1;
48 : :
49 : : void SetAttrToMarked(const SfxItemSet& rAttr);
50 : : void InsertSymbol(SfxRequest& rReq);
51 : : sal_Bool IsTextEdit();
52 : : public:
53 : 73 : SFX_DECL_INTERFACE(SW_DRWTXTSHELL)
54 : : TYPEINFO();
55 : :
56 : 0 : SwView &GetView() { return rView; }
57 : : SwWrtShell &GetShell();
58 : :
59 : : SwDrawTextShell(SwView &rView);
60 : : virtual ~SwDrawTextShell();
61 : :
62 : : virtual ::svl::IUndoManager*
63 : : GetUndoManager();
64 : :
65 : : void StateDisableItems(SfxItemSet &);
66 : :
67 : : void Execute(SfxRequest &);
68 : : void ExecDraw(SfxRequest &);
69 : : void GetState(SfxItemSet &);
70 : : void GetDrawTxtCtrlState(SfxItemSet&);
71 : :
72 : : void ExecFontWork(SfxRequest& rReq);
73 : : void StateFontWork(SfxItemSet& rSet);
74 : : void ExecFormText(SfxRequest& rReq);
75 : : void GetFormTextState(SfxItemSet& rSet);
76 : : void ExecDrawLingu(SfxRequest &rReq);
77 : : void ExecUndo(SfxRequest &rReq);
78 : : void StateUndo(SfxItemSet &rSet);
79 : : void ExecClpbrd(SfxRequest &rReq);
80 : : void StateClpbrd(SfxItemSet &rSet);
81 : : void StateInsert(SfxItemSet &rSet);
82 : : void ExecTransliteration(SfxRequest &);
83 : : void ExecRotateTransliteration(SfxRequest &);
84 : :
85 : : void Init();
86 : : void StateStatusline(SfxItemSet &rSet);
87 : : };
88 : :
89 : : #endif
90 : :
91 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|