1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef SC_TABVWSH_HXX 29*cdf0e10cSrcweir #define SC_TABVWSH_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <svtools/htmlcfg.hxx> 32*cdf0e10cSrcweir #include <sfx2/viewsh.hxx> 33*cdf0e10cSrcweir #include <sfx2/viewfac.hxx> 34*cdf0e10cSrcweir #include <editeng/svxenum.hxx> 35*cdf0e10cSrcweir #include "scdllapi.h" 36*cdf0e10cSrcweir #include "dbfunc.hxx" // -> tabview 37*cdf0e10cSrcweir #include "target.hxx" 38*cdf0e10cSrcweir #include "rangelst.hxx" // ScRangeListRef 39*cdf0e10cSrcweir #include "shellids.hxx" 40*cdf0e10cSrcweir #include "tabprotection.hxx" // for ScPasswordHash 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir class FmFormShell; 43*cdf0e10cSrcweir class SbxObject; 44*cdf0e10cSrcweir class SdrOle2Obj; 45*cdf0e10cSrcweir class SfxBindings; 46*cdf0e10cSrcweir class SfxChildWindow; 47*cdf0e10cSrcweir class SfxModelessDialog; 48*cdf0e10cSrcweir class SvxBorderLine; 49*cdf0e10cSrcweir class SvxBoxObjectRef; 50*cdf0e10cSrcweir class SvxNumberInfoItem; 51*cdf0e10cSrcweir struct SfxChildWinInfo; 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir class ScArea; 54*cdf0e10cSrcweir class ScAuditingShell; 55*cdf0e10cSrcweir class ScDrawShell; 56*cdf0e10cSrcweir class ScDrawTextObjectBar; 57*cdf0e10cSrcweir class ScEditShell; 58*cdf0e10cSrcweir class ScInputHandler; 59*cdf0e10cSrcweir class ScPivotShell; 60*cdf0e10cSrcweir class ScDrawFormShell; 61*cdf0e10cSrcweir class ScCellShell; 62*cdf0e10cSrcweir class ScOleObjectShell; 63*cdf0e10cSrcweir class ScGraphicShell; 64*cdf0e10cSrcweir class ScMediaShell; 65*cdf0e10cSrcweir class ScChartShell; 66*cdf0e10cSrcweir class ScPageBreakShell; 67*cdf0e10cSrcweir class ScDPObject; 68*cdf0e10cSrcweir class ScNavigatorSettings; 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir struct ScHeaderFieldData; 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace frame { 73*cdf0e10cSrcweir class XDispatchProviderInterceptor; 74*cdf0e10cSrcweir } } } } 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir namespace svx { 77*cdf0e10cSrcweir class ExtrusionBar; 78*cdf0e10cSrcweir class FontworkBar; 79*cdf0e10cSrcweir } 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir enum ObjectSelectionType 82*cdf0e10cSrcweir { 83*cdf0e10cSrcweir OST_NONE, 84*cdf0e10cSrcweir OST_Cell, 85*cdf0e10cSrcweir OST_Editing, 86*cdf0e10cSrcweir OST_DrawText, 87*cdf0e10cSrcweir OST_Drawing, 88*cdf0e10cSrcweir OST_DrawForm, 89*cdf0e10cSrcweir OST_Pivot, 90*cdf0e10cSrcweir OST_Auditing, 91*cdf0e10cSrcweir OST_OleObject, 92*cdf0e10cSrcweir OST_Chart, 93*cdf0e10cSrcweir OST_Graphic, 94*cdf0e10cSrcweir OST_Media 95*cdf0e10cSrcweir }; 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir //================================================================== 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir class ScTabViewShell: public SfxViewShell, public ScDBFunc 101*cdf0e10cSrcweir { 102*cdf0e10cSrcweir private: 103*cdf0e10cSrcweir static sal_uInt16 nInsertCtrlState; 104*cdf0e10cSrcweir static sal_uInt16 nInsCellsCtrlState; 105*cdf0e10cSrcweir static sal_uInt16 nInsObjCtrlState; 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir SvxHtmlOptions aHTMLOpt; 108*cdf0e10cSrcweir ObjectSelectionType eCurOST; 109*cdf0e10cSrcweir sal_uInt16 nDrawSfxId; 110*cdf0e10cSrcweir sal_uInt16 nCtrlSfxId; 111*cdf0e10cSrcweir sal_uInt16 nFormSfxId; 112*cdf0e10cSrcweir String sDrawCustom; // current custom shape type 113*cdf0e10cSrcweir ScDrawShell* pDrawShell; 114*cdf0e10cSrcweir ScDrawTextObjectBar* pDrawTextShell; 115*cdf0e10cSrcweir ScEditShell* pEditShell; 116*cdf0e10cSrcweir ScPivotShell* pPivotShell; 117*cdf0e10cSrcweir ScAuditingShell* pAuditingShell; 118*cdf0e10cSrcweir ScDrawFormShell* pDrawFormShell; 119*cdf0e10cSrcweir ScCellShell* pCellShell; 120*cdf0e10cSrcweir ScOleObjectShell* pOleObjectShell; 121*cdf0e10cSrcweir ScChartShell* pChartShell; 122*cdf0e10cSrcweir ScGraphicShell* pGraphicShell; 123*cdf0e10cSrcweir ScMediaShell* pMediaShell; 124*cdf0e10cSrcweir ScPageBreakShell* pPageBreakShell; 125*cdf0e10cSrcweir svx::ExtrusionBar* pExtrusionBarShell; 126*cdf0e10cSrcweir svx::FontworkBar* pFontworkBarShell; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir FmFormShell* pFormShell; 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir ScInputHandler* pInputHandler; // fuer OLE-Eingabezeile 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir SvxBorderLine* pCurFrameLine; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir ::com::sun::star::uno::Reference< 135*cdf0e10cSrcweir ::com::sun::star::frame::XDispatchProviderInterceptor > 136*cdf0e10cSrcweir xDisProvInterceptor; 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir Point aWinPos; 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir ScTabViewTarget aTarget; 141*cdf0e10cSrcweir ScArea* pPivotSource; 142*cdf0e10cSrcweir ScDPObject* pDialogDPObject; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir ScNavigatorSettings* pNavSettings; 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir // used in first Activate 147*cdf0e10cSrcweir sal_Bool bFirstActivate; 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir sal_Bool bActiveDrawSh; 150*cdf0e10cSrcweir sal_Bool bActiveDrawTextSh; 151*cdf0e10cSrcweir sal_Bool bActivePivotSh; 152*cdf0e10cSrcweir sal_Bool bActiveAuditingSh; 153*cdf0e10cSrcweir sal_Bool bActiveDrawFormSh; 154*cdf0e10cSrcweir sal_Bool bActiveOleObjectSh; 155*cdf0e10cSrcweir sal_Bool bActiveChartSh; 156*cdf0e10cSrcweir sal_Bool bActiveGraphicSh; 157*cdf0e10cSrcweir sal_Bool bActiveMediaSh; 158*cdf0e10cSrcweir sal_Bool bActiveEditSh; 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir sal_Bool bFormShellAtTop; // does the FormShell need to be on top? 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir sal_Bool bDontSwitch; // EditShell nicht abschalten 164*cdf0e10cSrcweir sal_Bool bInFormatDialog; // fuer GetSelectionText 165*cdf0e10cSrcweir sal_Bool bPrintSelected; // for result of SvxPrtQryBox 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir sal_Bool bReadOnly; // um Status-Aenderungen zu erkennen 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir SbxObject* pScSbxObject; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir //UNUSED2008-05 sal_Bool bChartDlgIsEdit; // Datenbereich aendern 172*cdf0e10cSrcweir sal_Bool bChartAreaValid; // wenn Chart aufgezogen wird 173*cdf0e10cSrcweir String aEditChartName; 174*cdf0e10cSrcweir ScRangeListRef aChartSource; 175*cdf0e10cSrcweir Rectangle aChartPos; 176*cdf0e10cSrcweir SCTAB nChartDestTab; 177*cdf0e10cSrcweir sal_uInt16 nCurRefDlgId; 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir SfxBroadcaster* pAccessibilityBroadcaster; 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir static const int MASTERENUMCOMMANDS = 6; 182*cdf0e10cSrcweir String aCurrShapeEnumCommand[ MASTERENUMCOMMANDS ]; 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir private: 185*cdf0e10cSrcweir void Construct( sal_uInt8 nForceDesignMode = SC_FORCEMODE_NONE ); 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir //UNUSED2008-05 void SetMySubShell( SfxShell* pShell ); 188*cdf0e10cSrcweir SfxShell* GetMySubShell() const; 189*cdf0e10cSrcweir 190*cdf0e10cSrcweir void DoReadUserData( const String& rData ); 191*cdf0e10cSrcweir void DoReadUserDataSequence( const ::com::sun::star::uno::Sequence< 192*cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& rSettings ); 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir DECL_LINK( SimpleRefClose, String* ); 195*cdf0e10cSrcweir DECL_LINK( SimpleRefDone, String* ); 196*cdf0e10cSrcweir DECL_LINK( SimpleRefAborted, String* ); 197*cdf0e10cSrcweir DECL_LINK( SimpleRefChange, String* ); 198*cdf0e10cSrcweir DECL_LINK( FormControlActivated, FmFormShell* ); 199*cdf0e10cSrcweir DECL_LINK( HtmlOptionsHdl, void * ); 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir protected: 202*cdf0e10cSrcweir virtual void Activate(sal_Bool bMDI); 203*cdf0e10cSrcweir virtual void Deactivate(sal_Bool bMDI); 204*cdf0e10cSrcweir virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False ); 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir virtual void ShowCursor(FASTBOOL bOn); 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir virtual void Move(); // Benachrichtigung 209*cdf0e10cSrcweir 210*cdf0e10cSrcweir virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize ); // alt 211*cdf0e10cSrcweir 212*cdf0e10cSrcweir virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); // neu 213*cdf0e10cSrcweir virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); 214*cdf0e10cSrcweir virtual void SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY ); 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir virtual void QueryObjAreaPixel( Rectangle& rRect ) const; 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir virtual Size GetOptimalSizePixel() const; 219*cdf0e10cSrcweir 220*cdf0e10cSrcweir virtual String GetSelectionText( sal_Bool bWholeWord ); 221*cdf0e10cSrcweir virtual sal_Bool HasSelection( sal_Bool bText ) const; 222*cdf0e10cSrcweir virtual String GetDescription() const; 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir virtual void WriteUserData(String &, sal_Bool bBrowse = sal_False); 225*cdf0e10cSrcweir virtual void ReadUserData(const String &, sal_Bool bBrowse = sal_False); 226*cdf0e10cSrcweir virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); 227*cdf0e10cSrcweir virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir virtual void UIDeactivated( SfxInPlaceClient* pClient ); 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir virtual FASTBOOL KeyInput( const KeyEvent &rKeyEvent ); 232*cdf0e10cSrcweir virtual SdrView* GetDrawView() const; 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir public: 235*cdf0e10cSrcweir TYPEINFO_VISIBILITY(SC_DLLPUBLIC); 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir SFX_DECL_INTERFACE(SCID_TABVIEW_SHELL) 238*cdf0e10cSrcweir SFX_DECL_VIEWFACTORY(ScTabViewShell); 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir 241*cdf0e10cSrcweir // -> Clone-Methode fuer Factory 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir //UNUSED2008-05 ScTabViewShell( SfxViewFrame* pViewFrame, 244*cdf0e10cSrcweir //UNUSED2008-05 const ScTabViewShell& rWin ); 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir // aus einer allgemeinen Shell konstruieren und 247*cdf0e10cSrcweir // soviel wie moeglich uebernehmen (SliderPos etc.): 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir ScTabViewShell( SfxViewFrame* pViewFrame, 250*cdf0e10cSrcweir SfxViewShell* pOldSh ); 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir virtual ~ScTabViewShell(); 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir Window* GetDialogParent(); 255*cdf0e10cSrcweir 256*cdf0e10cSrcweir bool IsRefInputMode() const; 257*cdf0e10cSrcweir void ExecuteInputDirect(); 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir ScInputHandler* GetInputHandler() const; 260*cdf0e10cSrcweir void UpdateInputHandler( sal_Bool bForce = sal_False, sal_Bool bStopEditing = sal_True ); 261*cdf0e10cSrcweir void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust ); 262*cdf0e10cSrcweir sal_Bool TabKeyInput(const KeyEvent& rKEvt); 263*cdf0e10cSrcweir sal_Bool SfxKeyInput(const KeyEvent& rKEvt); 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir void SetActive(); 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } 268*cdf0e10cSrcweir void SetDefaultFrameLine(const SvxBorderLine* pLine ); 269*cdf0e10cSrcweir 270*cdf0e10cSrcweir //UNUSED2008-05 void ExecuteShowNIY( SfxRequest& rReq ); 271*cdf0e10cSrcweir //UNUSED2008-05 void StateDisabled( SfxItemSet& rSet ); 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir SC_DLLPUBLIC void Execute( SfxRequest& rReq ); 274*cdf0e10cSrcweir SC_DLLPUBLIC void GetState( SfxItemSet& rSet ); 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir void ExecuteTable( SfxRequest& rReq ); 277*cdf0e10cSrcweir void GetStateTable( SfxItemSet& rSet ); 278*cdf0e10cSrcweir 279*cdf0e10cSrcweir void WindowChanged(); 280*cdf0e10cSrcweir void ExecDraw(SfxRequest&); 281*cdf0e10cSrcweir void ExecDrawIns(SfxRequest& rReq); 282*cdf0e10cSrcweir void GetDrawState(SfxItemSet &rSet); 283*cdf0e10cSrcweir void GetDrawInsState(SfxItemSet &rSet); 284*cdf0e10cSrcweir void ExecGallery(SfxRequest& rReq); // StarGallery 285*cdf0e10cSrcweir void GetGalleryState(SfxItemSet& rSet); 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir void ExecChildWin(SfxRequest& rReq); 288*cdf0e10cSrcweir void GetChildWinState( SfxItemSet& rSet ); 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir void ExecImageMap( SfxRequest& rReq ); 291*cdf0e10cSrcweir void GetImageMapState( SfxItemSet& rSet ); 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir void ExecTbx( SfxRequest& rReq ); 294*cdf0e10cSrcweir void GetTbxState( SfxItemSet& rSet ); 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir void ExecuteSave( SfxRequest& rReq ); 297*cdf0e10cSrcweir void GetSaveState( SfxItemSet& rSet ); 298*cdf0e10cSrcweir void ExecSearch( SfxRequest& rReq ); 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir void ExecuteUndo(SfxRequest& rReq); 301*cdf0e10cSrcweir void GetUndoState(SfxItemSet &rSet); 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir void ExecuteSbx( SfxRequest& rReq ); 304*cdf0e10cSrcweir void GetSbxState( SfxItemSet& rSet ); 305*cdf0e10cSrcweir 306*cdf0e10cSrcweir void ExecuteObject(SfxRequest& rReq); 307*cdf0e10cSrcweir void GetObjectState(SfxItemSet &rSet); 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir void ExecDrawOpt(SfxRequest& rReq); 310*cdf0e10cSrcweir void GetDrawOptState(SfxItemSet &rSet); 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir void UpdateDrawShell(); 313*cdf0e10cSrcweir void SetDrawShell( sal_Bool bActive ); 314*cdf0e10cSrcweir void SetDrawTextShell( sal_Bool bActive ); 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir void SetPivotShell( sal_Bool bActive ); 317*cdf0e10cSrcweir ScArea* GetPivotSource(){return pPivotSource;} 318*cdf0e10cSrcweir void SetPivotSource(ScArea* pSrc){pPivotSource=pSrc;} 319*cdf0e10cSrcweir void SetDialogDPObject( const ScDPObject* pObj ); 320*cdf0e10cSrcweir const ScDPObject* GetDialogDPObject() const { return pDialogDPObject; } 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir sal_Bool GetDontSwitch(){return bDontSwitch;} 323*cdf0e10cSrcweir void SetDontSwitch(sal_Bool bFlag){bDontSwitch=bFlag;} 324*cdf0e10cSrcweir 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir void SetAuditShell( sal_Bool bActive ); 327*cdf0e10cSrcweir void SetDrawFormShell( sal_Bool bActive ); 328*cdf0e10cSrcweir void SetEditShell(EditView* pView, sal_Bool bActive ); 329*cdf0e10cSrcweir void SetOleObjectShell( sal_Bool bActive ); 330*cdf0e10cSrcweir void SetChartShell( sal_Bool bActive ); 331*cdf0e10cSrcweir void SetGraphicShell( sal_Bool bActive ); 332*cdf0e10cSrcweir void SetMediaShell( sal_Bool bActive ); 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir void SetDrawShellOrSub(); 336*cdf0e10cSrcweir void SetCurSubShell( ObjectSelectionType eOST, sal_Bool bForce = sal_False ); 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir void SetFormShellAtTop( sal_Bool bSet ); 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir ObjectSelectionType GetCurObjectSelectionType(); 341*cdf0e10cSrcweir 342*cdf0e10cSrcweir virtual ErrCode DoVerb(long nVerb); 343*cdf0e10cSrcweir 344*cdf0e10cSrcweir 345*cdf0e10cSrcweir void StopEditShell(); 346*cdf0e10cSrcweir sal_Bool IsDrawTextShell() const; 347*cdf0e10cSrcweir sal_Bool IsAuditShell() const; 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir void SetDrawTextUndo( ::svl::IUndoManager* pUndoMgr ); 350*cdf0e10cSrcweir 351*cdf0e10cSrcweir void FillFieldData( ScHeaderFieldData& rData ); 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir //UNUSED2008-05 void ResetChartArea(); 354*cdf0e10cSrcweir void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest ); 355*cdf0e10cSrcweir sal_Bool GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const; 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir //UNUSED2008-05 sal_Bool IsChartDlgEdit() const; 358*cdf0e10cSrcweir //UNUSED2008-05 void SetChartDlgEdit(sal_Bool bFlag){bChartDlgIsEdit=bFlag;} 359*cdf0e10cSrcweir 360*cdf0e10cSrcweir void SetEditChartName(const String& aStr){aEditChartName=aStr;} 361*cdf0e10cSrcweir //UNUSED2008-05 const String& GetEditChartName() const; 362*cdf0e10cSrcweir 363*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 364*cdf0e10cSrcweir 365*cdf0e10cSrcweir ScNavigatorSettings* GetNavigatorSettings(); 366*cdf0e10cSrcweir 367*cdf0e10cSrcweir // Drucken: 368*cdf0e10cSrcweir virtual SfxPrinter* GetPrinter( sal_Bool bCreate = sal_False ); 369*cdf0e10cSrcweir virtual sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, 370*cdf0e10cSrcweir sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsApi=false ); 371*cdf0e10cSrcweir 372*cdf0e10cSrcweir virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions ); 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir void ConnectObject( SdrOle2Obj* pObj ); 375*cdf0e10cSrcweir sal_Bool ActivateObject( SdrOle2Obj* pObj, long nVerb ); 376*cdf0e10cSrcweir 377*cdf0e10cSrcweir void DeactivateOle(); 378*cdf0e10cSrcweir 379*cdf0e10cSrcweir SC_DLLPUBLIC static ScTabViewShell* GetActiveViewShell(); 380*cdf0e10cSrcweir SfxModelessDialog* CreateRefDialog( SfxBindings* pB, SfxChildWindow* pCW, 381*cdf0e10cSrcweir SfxChildWinInfo* pInfo, 382*cdf0e10cSrcweir Window* pParent, sal_uInt16 nSlotId ); 383*cdf0e10cSrcweir 384*cdf0e10cSrcweir void UpdateOleZoom(); 385*cdf0e10cSrcweir inline SbxObject* GetScSbxObject() const 386*cdf0e10cSrcweir { return pScSbxObject; } 387*cdf0e10cSrcweir inline void SetScSbxObject( SbxObject* pOb ) 388*cdf0e10cSrcweir { pScSbxObject = pOb; } 389*cdf0e10cSrcweir 390*cdf0e10cSrcweir FmFormShell* GetFormShell() const { return pFormShell; } 391*cdf0e10cSrcweir 392*cdf0e10cSrcweir void InsertURL( const String& rName, const String& rURL, const String& rTarget, 393*cdf0e10cSrcweir sal_uInt16 nMode ); 394*cdf0e10cSrcweir void InsertURLButton( const String& rName, const String& rURL, const String& rTarget, 395*cdf0e10cSrcweir const Point* pInsPos = NULL ); 396*cdf0e10cSrcweir void InsertURLField( const String& rName, const String& rURL, const String& rTarget ); 397*cdf0e10cSrcweir 398*cdf0e10cSrcweir sal_Bool SelectObject( const String& rName ); 399*cdf0e10cSrcweir 400*cdf0e10cSrcweir void SetInFormatDialog(sal_Bool bFlag) {bInFormatDialog=bFlag;} 401*cdf0e10cSrcweir sal_Bool IsInFormatDialog() {return bInFormatDialog;} 402*cdf0e10cSrcweir 403*cdf0e10cSrcweir void ForceMove() { Move(); } 404*cdf0e10cSrcweir 405*cdf0e10cSrcweir void MakeNumberInfoItem ( ScDocument* pDoc, 406*cdf0e10cSrcweir ScViewData* pViewData, 407*cdf0e10cSrcweir SvxNumberInfoItem** ppItem ); 408*cdf0e10cSrcweir 409*cdf0e10cSrcweir void UpdateNumberFormatter ( ScDocument* pDoc, 410*cdf0e10cSrcweir const SvxNumberInfoItem& rInfoItem ); 411*cdf0e10cSrcweir 412*cdf0e10cSrcweir void ExecuteCellFormatDlg ( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff ); 413*cdf0e10cSrcweir 414*cdf0e10cSrcweir sal_Bool GetFunction( String& rFuncStr, sal_uInt16 nErrCode = 0 ); 415*cdf0e10cSrcweir 416*cdf0e10cSrcweir void StartSimpleRefDialog( const String& rTitle, const String& rInitVal, 417*cdf0e10cSrcweir sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection ); 418*cdf0e10cSrcweir void StopSimpleRefDialog(); 419*cdf0e10cSrcweir 420*cdf0e10cSrcweir void SetCurRefDlgId( sal_uInt16 nNew ); 421*cdf0e10cSrcweir 422*cdf0e10cSrcweir void AddAccessibilityObject( SfxListener& rObject ); 423*cdf0e10cSrcweir void RemoveAccessibilityObject( SfxListener& rObject ); 424*cdf0e10cSrcweir void BroadcastAccessibility( const SfxHint &rHint ); 425*cdf0e10cSrcweir sal_Bool HasAccessibilityObjects(); 426*cdf0e10cSrcweir 427*cdf0e10cSrcweir bool ExecuteRetypePassDlg(ScPasswordHash eDesiredHash); 428*cdf0e10cSrcweir 429*cdf0e10cSrcweir using ScTabView::ShowCursor; 430*cdf0e10cSrcweir }; 431*cdf0e10cSrcweir 432*cdf0e10cSrcweir //================================================================== 433*cdf0e10cSrcweir 434*cdf0e10cSrcweir 435*cdf0e10cSrcweir #endif 436*cdf0e10cSrcweir 437