Update ooo320-m1
[ooovba.git] / sc / source / ui / inc / drtxtob.hxx
blobe8e1b903c3d13a5495703b8a5df0c0c5e7c624c0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: drtxtob.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_DRTXTOB_HXX
32 #define SC_DRTXTOB_HXX
34 #ifndef _SFX_HXX
35 #endif
37 #include <sfx2/shell.hxx>
38 #include <sfx2/module.hxx>
39 #include <tools/link.hxx>
41 #include "shellids.hxx"
43 USHORT ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId()
45 class ScViewData;
46 class TransferableDataHelper;
47 class TransferableClipboardListener;
49 class ScDrawTextObjectBar : public SfxShell
51 ScViewData* pViewData;
52 TransferableClipboardListener* pClipEvtLstnr;
53 BOOL bPastePossible;
55 DECL_LINK( ClipboardChanged, TransferableDataHelper* );
57 public:
58 TYPEINFO();
59 SFX_DECL_INTERFACE(SCID_DRAW_TEXT_SHELL)
61 ScDrawTextObjectBar(ScViewData* pData);
62 ~ScDrawTextObjectBar();
64 void StateDisableItems( SfxItemSet &rSet );
66 void Execute( SfxRequest &rReq );
67 void ExecuteTrans( SfxRequest& rReq );
68 void GetState( SfxItemSet& rSet );
69 void GetClipState( SfxItemSet& rSet );
71 void ExecuteAttr( SfxRequest &rReq );
72 void GetAttrState( SfxItemSet& rSet );
73 void ExecuteToggle( SfxRequest &rReq );
75 BOOL ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
76 BOOL ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
78 void ExecuteExtra( SfxRequest &rReq );
79 void ExecFormText(SfxRequest& rReq); // StarFontWork
80 void GetFormTextState(SfxItemSet& rSet);
82 private:
83 void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte
84 void GetGlobalClipState( SfxItemSet& rSet );
85 void ExecutePasteContents( SfxRequest &rReq );
86 BOOL IsNoteEdit();
91 #endif