2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* $RCSfile: basesh.hxx,v $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2007-09-27 10:53:48 +00:00
|
|
|
* $Revision: 1.12 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2007-09-27 10:53:48 +00:00
|
|
|
* last change: $Author: hr $ $Date: 2007-09-27 11:53:48 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 08:00:00 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SWBASESH_HXX
|
|
|
|
#define _SWBASESH_HXX
|
|
|
|
|
2000-12-22 11:07:52 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
#ifndef _SHELLID_HXX
|
|
|
|
#include <shellid.hxx>
|
|
|
|
#endif
|
|
|
|
|
2000-12-22 11:07:52 +00:00
|
|
|
#define _SVSTDARR_USHORTSSORT
|
|
|
|
#define _SVSTDARR_USHORTS
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#ifndef _LINK_HXX //autogen
|
|
|
|
#include <tools/link.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _SV_TIMER_HXX //autogen
|
|
|
|
#include <vcl/timer.hxx>
|
|
|
|
#endif
|
2000-12-22 11:07:52 +00:00
|
|
|
#ifndef _SFXMODULE_HXX //autogen
|
|
|
|
#include <sfx2/module.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _SFX_SHELL_HXX //autogen
|
|
|
|
#include <sfx2/shell.hxx>
|
|
|
|
#endif
|
|
|
|
#include <svtools/svstdarr.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-09-27 10:53:48 +00:00
|
|
|
#include <mdiexp.hxx>
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwWrtShell;
|
|
|
|
class SwCrsrShell;
|
|
|
|
class SwView;
|
|
|
|
class SfxItemSet;
|
|
|
|
class Graphic;
|
|
|
|
|
2001-10-16 10:12:00 +00:00
|
|
|
struct DBTextStruct_Impl;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwBaseShell: public SfxShell
|
|
|
|
{
|
|
|
|
SwView &rView;
|
|
|
|
|
|
|
|
// DragModus
|
2007-09-27 10:53:48 +00:00
|
|
|
static FlyMode eFrameMode;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
// Bug 75078 - if in GetState the asynch call of GetGraphic returns
|
|
|
|
// synch, the set the state directly into the itemset
|
|
|
|
SfxItemSet* pGetStateSet;
|
|
|
|
|
|
|
|
//Update-Timer fuer Graphic
|
2000-12-22 11:07:52 +00:00
|
|
|
SvUShortsSort aGrfUpdateSlots;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
DECL_LINK( GraphicArrivedHdl, SwCrsrShell* );
|
|
|
|
|
|
|
|
protected:
|
2004-06-01 06:45:49 +00:00
|
|
|
SwWrtShell& GetShell();
|
|
|
|
SwWrtShell* GetShellPtr();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-06-01 06:45:49 +00:00
|
|
|
inline SwView& GetView() { return rView; }
|
|
|
|
inline void SetGetStateSet( SfxItemSet* p ) { pGetStateSet = p; }
|
|
|
|
inline BOOL AddGrfUpdateSlot( USHORT nSlot ){ return aGrfUpdateSlots.Insert( nSlot ); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-06-01 06:45:49 +00:00
|
|
|
DECL_STATIC_LINK( SwBaseShell, InsertDBTextHdl, DBTextStruct_Impl* );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-06-01 06:45:49 +00:00
|
|
|
void InsertURLButton( const String& rURL, const String& rTarget, const String& rTxt );
|
|
|
|
void InsertTable( SfxRequest& _rRequest );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SwBaseShell(SwView &rShell);
|
|
|
|
virtual ~SwBaseShell();
|
2007-09-27 10:53:48 +00:00
|
|
|
|
|
|
|
SFX_DECL_INTERFACE(SW_BASESHELL)
|
2000-09-18 16:15:01 +00:00
|
|
|
TYPEINFO();
|
|
|
|
|
|
|
|
void ExecDelete(SfxRequest &);
|
|
|
|
|
|
|
|
void ExecClpbrd(SfxRequest &);
|
|
|
|
void StateClpbrd(SfxItemSet &);
|
|
|
|
|
|
|
|
void ExecUndo(SfxRequest &);
|
|
|
|
void StateUndo(SfxItemSet &);
|
|
|
|
|
|
|
|
void Execute(SfxRequest &);
|
|
|
|
void GetState(SfxItemSet &);
|
|
|
|
void StateStyle(SfxItemSet &);
|
|
|
|
|
|
|
|
void ExecuteGallery(SfxRequest&);
|
|
|
|
void GetGalleryState(SfxItemSet&);
|
|
|
|
|
|
|
|
void ExecDlg(SfxRequest &);
|
|
|
|
|
|
|
|
void StateStatusLine(SfxItemSet &rSet);
|
|
|
|
void ExecTxtCtrl(SfxRequest& rReq);
|
2000-11-13 11:32:43 +00:00
|
|
|
void GetTxtFontCtrlState(SfxItemSet& rSet);
|
2000-09-18 16:15:01 +00:00
|
|
|
void GetTxtCtrlState(SfxItemSet& rSet);
|
|
|
|
void GetBorderState(SfxItemSet &rSet);
|
|
|
|
void GetBckColState(SfxItemSet &rSet);
|
|
|
|
|
|
|
|
void ExecBckCol(SfxRequest& rReq);
|
|
|
|
void SetWrapMode( USHORT nSlot );
|
|
|
|
|
|
|
|
void StateDisableItems(SfxItemSet &);
|
|
|
|
|
|
|
|
void EditRegionDialog(SfxRequest& rReq);
|
|
|
|
void InsertRegionDialog(SfxRequest& rReq);
|
|
|
|
|
|
|
|
void ExecField(SfxRequest& rReq);
|
|
|
|
|
2007-09-27 10:53:48 +00:00
|
|
|
static void SetFrmMode( FlyMode eMode, SwWrtShell *pShell ); //Mit Update!
|
|
|
|
static void _SetFrmMode( FlyMode eMode ) { eFrameMode = eMode; }
|
|
|
|
static FlyMode GetFrmMode() { return eFrameMode; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|