1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SC_DRTXTOB_HXX 25 #define SC_DRTXTOB_HXX 26 27 #ifndef _SFX_HXX 28 #endif 29 30 #include <sfx2/shell.hxx> 31 #include <sfx2/module.hxx> 32 #include <tools/link.hxx> 33 34 #include "shellids.hxx" 35 36 sal_uInt16 ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId() 37 38 class ScViewData; 39 class TransferableDataHelper; 40 class TransferableClipboardListener; 41 42 class ScDrawTextObjectBar : public SfxShell 43 { 44 ScViewData* pViewData; 45 TransferableClipboardListener* pClipEvtLstnr; 46 sal_Bool bPastePossible; 47 48 DECL_LINK( ClipboardChanged, TransferableDataHelper* ); 49 50 public: 51 TYPEINFO(); 52 SFX_DECL_INTERFACE(SCID_DRAW_TEXT_SHELL) 53 54 ScDrawTextObjectBar(ScViewData* pData); 55 ~ScDrawTextObjectBar(); 56 57 void StateDisableItems( SfxItemSet &rSet ); 58 59 void Execute( SfxRequest &rReq ); 60 void ExecuteTrans( SfxRequest& rReq ); 61 void GetState( SfxItemSet& rSet ); 62 void GetClipState( SfxItemSet& rSet ); 63 64 void ExecuteAttr( SfxRequest &rReq ); 65 void GetAttrState( SfxItemSet& rSet ); 66 void ExecuteToggle( SfxRequest &rReq ); 67 void GetStatePropPanelAttr(SfxItemSet &); 68 69 sal_Bool ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet , sal_uInt16 nSlot); 70 sal_Bool ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet ); 71 72 void ExecuteExtra( SfxRequest &rReq ); 73 void ExecFormText(SfxRequest& rReq); // StarFontWork 74 void GetFormTextState(SfxItemSet& rSet); 75 76 private: 77 void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte 78 void GetGlobalClipState( SfxItemSet& rSet ); 79 void ExecutePasteContents( SfxRequest &rReq ); 80 sal_Bool IsNoteEdit(); 81 }; 82 83 84 85 #endif 86 87