1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SC_DRTXTOB_HXX 29 #define SC_DRTXTOB_HXX 30 31 #ifndef _SFX_HXX 32 #endif 33 34 #include <sfx2/shell.hxx> 35 #include <sfx2/module.hxx> 36 #include <tools/link.hxx> 37 38 #include "shellids.hxx" 39 40 sal_uInt16 ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId() 41 42 class ScViewData; 43 class TransferableDataHelper; 44 class TransferableClipboardListener; 45 46 class ScDrawTextObjectBar : public SfxShell 47 { 48 ScViewData* pViewData; 49 TransferableClipboardListener* pClipEvtLstnr; 50 sal_Bool bPastePossible; 51 52 DECL_LINK( ClipboardChanged, TransferableDataHelper* ); 53 54 public: 55 TYPEINFO(); 56 SFX_DECL_INTERFACE(SCID_DRAW_TEXT_SHELL) 57 58 ScDrawTextObjectBar(ScViewData* pData); 59 ~ScDrawTextObjectBar(); 60 61 void StateDisableItems( SfxItemSet &rSet ); 62 63 void Execute( SfxRequest &rReq ); 64 void ExecuteTrans( SfxRequest& rReq ); 65 void GetState( SfxItemSet& rSet ); 66 void GetClipState( SfxItemSet& rSet ); 67 68 void ExecuteAttr( SfxRequest &rReq ); 69 void GetAttrState( SfxItemSet& rSet ); 70 void ExecuteToggle( SfxRequest &rReq ); 71 72 sal_Bool ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet ); 73 sal_Bool ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet ); 74 75 void ExecuteExtra( SfxRequest &rReq ); 76 void ExecFormText(SfxRequest& rReq); // StarFontWork 77 void GetFormTextState(SfxItemSet& rSet); 78 79 private: 80 void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte 81 void GetGlobalClipState( SfxItemSet& rSet ); 82 void ExecutePasteContents( SfxRequest &rReq ); 83 sal_Bool IsNoteEdit(); 84 }; 85 86 87 88 #endif 89 90