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 _SWTEXTSH_HXX 29 #define _SWTEXTSH_HXX 30 31 #include <basesh.hxx> 32 33 class AbstractSvxPostItDialog; 34 class SwFldMgr; 35 class SvxHyperlinkItem; 36 37 class SwTextShell: public SwBaseShell 38 { 39 SwFldMgr* pPostItFldMgr; 40 41 void InsertSymbol( SfxRequest& ); 42 void InsertHyperlink(const SvxHyperlinkItem& rHlnkItem); 43 bool InsertMediaDlg( SfxRequest& ); 44 void ChangeHeaderOrFooter(const String& rStyleName, sal_Bool bHeader, sal_Bool bOn, sal_Bool bShowWarning); 45 46 public: 47 SFX_DECL_INTERFACE(SW_TEXTSHELL) 48 TYPEINFO(); 49 50 //CHINA001 DECL_LINK( PostItNextHdl, Button * ); 51 //CHINA001 DECL_LINK( PostItPrevHdl, Button * ); 52 //CHINA001 DECL_LINK( RedlineNextHdl, Button * ); 53 //CHINA001 DECL_LINK( RedlinePrevHdl, Button * ); 54 DECL_LINK( RedlineNextHdl, AbstractSvxPostItDialog * ); 55 DECL_LINK( RedlinePrevHdl, AbstractSvxPostItDialog * ); 56 57 void Execute(SfxRequest &); 58 void GetState(SfxItemSet &); 59 60 void ExecInsert(SfxRequest &); 61 void StateInsert(SfxItemSet&); 62 void ExecDelete(SfxRequest &); 63 void ExecEnterNum(SfxRequest &); 64 void ExecBasicMove(SfxRequest &); 65 void ExecMove(SfxRequest &); 66 void ExecMovePage(SfxRequest &); 67 void ExecMoveCol(SfxRequest &); 68 void ExecMoveLingu(SfxRequest &); 69 void ExecMoveMisc(SfxRequest &); 70 void ExecField(SfxRequest &rReq); 71 void StateField(SfxItemSet &); 72 void ExecIdx(SfxRequest &); 73 void GetIdxState(SfxItemSet &); 74 void ExecGlossary(SfxRequest &); 75 76 void ExecCharAttr(SfxRequest &); 77 void ExecCharAttrArgs(SfxRequest &); 78 void ExecParaAttr(SfxRequest &); 79 void ExecParaAttrArgs(SfxRequest &); 80 void ExecAttr(SfxRequest &); 81 void ExecDB(SfxRequest &); 82 void ExecTransliteration(SfxRequest &); 83 84 void GetAttrState(SfxItemSet &); 85 86 SwTextShell(SwView &rView); 87 virtual ~SwTextShell(); 88 }; 89 90 #endif 91