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 #ifndef SC_VIEWFUNC_HXX 28*cdf0e10cSrcweir #define SC_VIEWFUNC_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include "tabview.hxx" 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include "tabbgcolor.hxx" 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir #ifndef _SVSTDARR_SHORTS 35*cdf0e10cSrcweir #define _SVSTDARR_SHORTS 36*cdf0e10cSrcweir #include <svl/svstdarr.hxx> 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir #endif 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir #ifndef _SVSTDARR_STRINGS 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir #define _SVSTDARR_STRINGS 43*cdf0e10cSrcweir #include <svl/svstdarr.hxx> 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir #endif 46*cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp> 47*cdf0e10cSrcweir #include <com/sun/star/embed/Aspects.hpp> 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir class ScPatternAttr; 50*cdf0e10cSrcweir class ScAutoFormatData; 51*cdf0e10cSrcweir class SvxSearchItem; 52*cdf0e10cSrcweir class SfxItemSet; 53*cdf0e10cSrcweir class SvxBorderLine; 54*cdf0e10cSrcweir class SvxBoxItem; 55*cdf0e10cSrcweir class SvxBoxInfoItem; 56*cdf0e10cSrcweir class SfxStyleSheetBase; 57*cdf0e10cSrcweir class SfxStyleSheet; 58*cdf0e10cSrcweir class SfxPoolItem; 59*cdf0e10cSrcweir class EditTextObject; 60*cdf0e10cSrcweir struct ScSolveParam; 61*cdf0e10cSrcweir struct ScTabOpParam; 62*cdf0e10cSrcweir class ScPostIt; 63*cdf0e10cSrcweir class ScConditionalFormat; 64*cdf0e10cSrcweir class ScValidationData; 65*cdf0e10cSrcweir class ScConversionParam; 66*cdf0e10cSrcweir class SdrModel; 67*cdf0e10cSrcweir class Graphic; 68*cdf0e10cSrcweir class Exchange; 69*cdf0e10cSrcweir class ScRangeList; 70*cdf0e10cSrcweir class SvxHyperlinkItem; 71*cdf0e10cSrcweir class ScTransferObj; 72*cdf0e10cSrcweir class ScTableProtection; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } } 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir //================================================================== 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir class ScViewFunc : public ScTabView 79*cdf0e10cSrcweir { 80*cdf0e10cSrcweir private: 81*cdf0e10cSrcweir ScAddress aFormatSource; // fuer automatisches Erweitern von Formatierung 82*cdf0e10cSrcweir ScRange aFormatArea; 83*cdf0e10cSrcweir sal_Bool bFormatValid; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir public: 86*cdf0e10cSrcweir ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); 87*cdf0e10cSrcweir //UNUSED2008-05 ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ); 88*cdf0e10cSrcweir ~ScViewFunc(); 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir const ScPatternAttr* GetSelectionPattern (); 91*cdf0e10cSrcweir void GetSelectionFrame ( SvxBoxItem& rLineOuter, 92*cdf0e10cSrcweir SvxBoxInfoItem& rLineInner ); 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir sal_uInt8 GetSelectionScriptType(); 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir sal_Bool GetAutoSumArea(ScRangeList& rRangeList); 97*cdf0e10cSrcweir void EnterAutoSum(const ScRangeList& rRangeList, sal_Bool bSubTotal); 98*cdf0e10cSrcweir bool AutoSum( const ScRange& rRange, bool bSubTotal, bool bSetCursor, bool bContinue ); 99*cdf0e10cSrcweir String GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTotal ); 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const String& rString, 102*cdf0e10cSrcweir sal_Bool bRecord = sal_True, const EditTextObject* pData = NULL ); 103*cdf0e10cSrcweir void EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rValue ); 104*cdf0e10cSrcweir void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject* pData, 105*cdf0e10cSrcweir sal_Bool bRecord = sal_True, sal_Bool bTestSimple = sal_False ); 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir void EnterMatrix( const String& rString ); 108*cdf0e10cSrcweir void EnterBlock( const String& rString, const EditTextObject* pData ); 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir void EnterDataAtCursor( const String& rString ); //! nicht benutzt ? 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir SC_DLLPUBLIC void CutToClip( ScDocument* pClipDoc = NULL, sal_Bool bIncludeObjects = sal_False ); 113*cdf0e10cSrcweir SC_DLLPUBLIC sal_Bool CopyToClip( ScDocument* pClipDoc = NULL, sal_Bool bCut = sal_False, sal_Bool bApi = sal_False, 114*cdf0e10cSrcweir sal_Bool bIncludeObjects = sal_False, sal_Bool bStopEdit = sal_True ); 115*cdf0e10cSrcweir ScTransferObj* CopyToTransferable(); 116*cdf0e10cSrcweir SC_DLLPUBLIC sal_Bool PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, 117*cdf0e10cSrcweir sal_uInt16 nFunction = PASTE_NOFUNC, sal_Bool bSkipEmpty = sal_False, 118*cdf0e10cSrcweir sal_Bool bTranspose = sal_False, sal_Bool bAsLink = sal_False, 119*cdf0e10cSrcweir InsCellCmd eMoveMode = INS_NONE, 120*cdf0e10cSrcweir sal_uInt16 nUndoExtraFlags = IDF_NONE, 121*cdf0e10cSrcweir sal_Bool bAllowDialogs = sal_False ); 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir void FillTab( sal_uInt16 nFlags, sal_uInt16 nFunction, sal_Bool bSkipEmpty, sal_Bool bAsLink ); 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir SC_DLLPUBLIC void PasteFromSystem(); 126*cdf0e10cSrcweir SC_DLLPUBLIC sal_Bool PasteFromSystem( sal_uLong nFormatId, sal_Bool bApi = sal_False ); 127*cdf0e10cSrcweir void PasteFromTransferable( const ::com::sun::star::uno::Reference< 128*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir void PasteDraw(); 131*cdf0e10cSrcweir void PasteDraw( const Point& rLogicPos, SdrModel* pModel, 132*cdf0e10cSrcweir sal_Bool bGroup = sal_False, sal_Bool bSameDocClipboard = sal_False ); 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir sal_Bool PasteOnDrawObject( const ::com::sun::star::uno::Reference< 135*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable, 136*cdf0e10cSrcweir SdrObject* pHitObj, sal_Bool bLink ); 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir sal_Bool PasteDataFormat( sal_uLong nFormatId, 139*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 140*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable, 141*cdf0e10cSrcweir SCCOL nPosX, SCROW nPosY, Point* pLogicPos = NULL, 142*cdf0e10cSrcweir sal_Bool bLink = sal_False, sal_Bool bAllowDialogs = sal_False ); 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir sal_Bool PasteFile( const Point&, const String&, sal_Bool bLink=sal_False ); 145*cdf0e10cSrcweir sal_Bool PasteObject( const Point&, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >&, const Size* = NULL, const Graphic* = NULL, const ::rtl::OUString& = ::rtl::OUString(), sal_Int64 nAspect = ::com::sun::star::embed::Aspects::MSOLE_CONTENT ); 146*cdf0e10cSrcweir sal_Bool PasteBitmap( const Point&, const Bitmap& ); 147*cdf0e10cSrcweir sal_Bool PasteMetaFile( const Point&, const GDIMetaFile& ); 148*cdf0e10cSrcweir sal_Bool PasteGraphic( const Point& rPos, const Graphic& rGraphic, 149*cdf0e10cSrcweir const String& rFile, const String& rFilter ); 150*cdf0e10cSrcweir sal_Bool PasteBookmark( sal_uLong nFormatId, 151*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 152*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable, 153*cdf0e10cSrcweir SCCOL nPosX, SCROW nPosY ); 154*cdf0e10cSrcweir sal_Bool PasteDDE( const ::com::sun::star::uno::Reference< 155*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir sal_Bool ApplyGraphicToObject( SdrObject* pObject, const Graphic& rGraphic ); 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir void InsertBookmark( const String& rDescription, const String& rURL, 160*cdf0e10cSrcweir SCCOL nPosX, SCROW nPosY, const String* pTarget = NULL, 161*cdf0e10cSrcweir sal_Bool bTryReplace = sal_False ); 162*cdf0e10cSrcweir sal_Bool HasBookmarkAtCursor( SvxHyperlinkItem* pContent ); 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir long DropRequestHdl( Exchange* pExchange ); 165*cdf0e10cSrcweir sal_Bool MoveBlockTo( const ScRange& rSource, const ScAddress& rDestPos, 166*cdf0e10cSrcweir sal_Bool bCut, sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi ); 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir sal_Bool LinkBlock( const ScRange& rSource, const ScAddress& rDestPos, sal_Bool bApi ); 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir void CreateNames( sal_uInt16 nFlags ); 171*cdf0e10cSrcweir sal_uInt16 GetCreateNameFlags(); 172*cdf0e10cSrcweir void InsertNameList(); 173*cdf0e10cSrcweir sal_Bool InsertName( const String& rName, const String& rSymbol, 174*cdf0e10cSrcweir const String& rType ); 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet, 177*cdf0e10cSrcweir sal_Bool bRecord = sal_True ); 178*cdf0e10cSrcweir void ApplyAttr( const SfxPoolItem& rAttrItem ); 179*cdf0e10cSrcweir void ApplySelectionPattern( const ScPatternAttr& rAttr, 180*cdf0e10cSrcweir sal_Bool bRecord = sal_True, 181*cdf0e10cSrcweir sal_Bool bCursorOnly = sal_False ); 182*cdf0e10cSrcweir void ApplyPatternLines( const ScPatternAttr& rAttr, 183*cdf0e10cSrcweir const SvxBoxItem* pNewOuter, 184*cdf0e10cSrcweir const SvxBoxInfoItem* pNewInner, sal_Bool bRecord = sal_True ); 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir void ApplyUserItemSet( const SfxItemSet& rItemSet ); 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir const SfxStyleSheet* GetStyleSheetFromMarked(); 189*cdf0e10cSrcweir void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet, 190*cdf0e10cSrcweir sal_Bool bRecord = sal_True ); 191*cdf0e10cSrcweir void RemoveStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet ); 192*cdf0e10cSrcweir void UpdateStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet ); 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir void SetNumberFormat( short nFormatType, sal_uLong nAdd = 0 ); 195*cdf0e10cSrcweir void SetNumFmtByStr( const String& rCode ); 196*cdf0e10cSrcweir void ChangeNumFmtDecimals( sal_Bool bIncrement ); 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir void SetConditionalFormat( const ScConditionalFormat& rNew ); 199*cdf0e10cSrcweir void SetValidation( const ScValidationData& rNew ); 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir void ChangeIndent( sal_Bool bIncrement ); 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect ); 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir void Protect( SCTAB nTab, const String& rPassword ); 206*cdf0e10cSrcweir sal_Bool Unprotect( SCTAB nTab, const String& rPassword ); 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir void DeleteCells( DelCellCmd eCmd, sal_Bool bRecord = sal_True ); 209*cdf0e10cSrcweir sal_Bool InsertCells( InsCellCmd eCmd, sal_Bool bRecord = sal_True, sal_Bool bPartOfPaste = sal_False ); 210*cdf0e10cSrcweir void DeleteMulti( sal_Bool bRows, sal_Bool bRecord = sal_True ); 211*cdf0e10cSrcweir 212*cdf0e10cSrcweir void DeleteContents( sal_uInt16 nFlags, sal_Bool bRecord = sal_True ); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir void SetWidthOrHeight( sal_Bool bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, 215*cdf0e10cSrcweir ScSizeMode eMode, sal_uInt16 nSizeTwips, 216*cdf0e10cSrcweir sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True, 217*cdf0e10cSrcweir ScMarkData* pMarkData = NULL ); 218*cdf0e10cSrcweir void SetMarkedWidthOrHeight( sal_Bool bWidth, ScSizeMode eMode, sal_uInt16 nSizeTwips, 219*cdf0e10cSrcweir sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True ); 220*cdf0e10cSrcweir void ShowMarkedColumns( sal_Bool bShow, sal_Bool bRecord = sal_True ); 221*cdf0e10cSrcweir void ShowMarkedRows( sal_Bool bShow, sal_Bool bRecord = sal_True ); 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir sal_Bool AdjustBlockHeight( sal_Bool bPaint = sal_True, ScMarkData* pMarkData = NULL ); 224*cdf0e10cSrcweir sal_Bool AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, sal_Bool bPaint = sal_True ); 225*cdf0e10cSrcweir 226*cdf0e10cSrcweir void ModifyCellSize( ScDirection eDir, sal_Bool bOptimal ); 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir SC_DLLPUBLIC void InsertPageBreak( sal_Bool bColumn, sal_Bool bRecord = sal_True, 229*cdf0e10cSrcweir const ScAddress* pPos = NULL, 230*cdf0e10cSrcweir sal_Bool bSetModified = sal_True ); 231*cdf0e10cSrcweir SC_DLLPUBLIC void DeletePageBreak( sal_Bool bColumn, sal_Bool bRecord = sal_True, 232*cdf0e10cSrcweir const ScAddress* pPos = NULL, 233*cdf0e10cSrcweir sal_Bool bSetModified = sal_True ); 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir void RemoveManualBreaks(); 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir void SetPrintZoom(sal_uInt16 nScale, sal_uInt16 nPages); 238*cdf0e10cSrcweir void AdjustPrintZoom(); 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir sal_Bool TestMergeCells(); 241*cdf0e10cSrcweir sal_Bool TestRemoveMerge(); 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir sal_Bool MergeCells( sal_Bool bApi, sal_Bool& rDoContents, sal_Bool bRecord = sal_True ); 244*cdf0e10cSrcweir sal_Bool RemoveMerge( sal_Bool bRecord = sal_True ); 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir void FillSimple( FillDir eDir, sal_Bool bRecord = sal_True ); 247*cdf0e10cSrcweir void FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, 248*cdf0e10cSrcweir double fStart, double fStep, double fMax, sal_Bool bRecord = sal_True ); 249*cdf0e10cSrcweir void FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow, 250*cdf0e10cSrcweir SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount, sal_Bool bRecord = sal_True ); 251*cdf0e10cSrcweir void FillCrossDblClick(); 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir void TransliterateText( sal_Int32 nType ); 254*cdf0e10cSrcweir 255*cdf0e10cSrcweir ScAutoFormatData* CreateAutoFormatData(); 256*cdf0e10cSrcweir void AutoFormat( sal_uInt16 nFormatNo, sal_Bool bRecord = sal_True ); 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir void SearchAndReplace( const SvxSearchItem* pSearchItem, 259*cdf0e10cSrcweir sal_Bool bAddUndo, sal_Bool bIsApi ); 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir void Solve( const ScSolveParam& rParam ); 262*cdf0e10cSrcweir void TabOp( const ScTabOpParam& rParam, sal_Bool bRecord = sal_True ); 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir sal_Bool InsertTable( const String& rName, SCTAB nTabNr, sal_Bool bRecord = sal_True ); 265*cdf0e10cSrcweir sal_Bool InsertTables(SvStrings *pNames, SCTAB nTab, SCTAB nCount, sal_Bool bRecord = sal_True); 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir sal_Bool AppendTable( const String& rName, sal_Bool bRecord = sal_True ); 269*cdf0e10cSrcweir 270*cdf0e10cSrcweir sal_Bool DeleteTable( SCTAB nTabNr, sal_Bool bRecord = sal_True ); 271*cdf0e10cSrcweir sal_Bool DeleteTables(const SvShorts &TheTabs, sal_Bool bRecord = sal_True ); 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir sal_Bool RenameTable( const String& rName, SCTAB nTabNr ); 274*cdf0e10cSrcweir void MoveTable( sal_uInt16 nDestDocNo, SCTAB nDestTab, sal_Bool bCopy ); 275*cdf0e10cSrcweir void ImportTables( ScDocShell* pSrcShell, 276*cdf0e10cSrcweir SCTAB nCount, const SCTAB* pSrcTabs, 277*cdf0e10cSrcweir sal_Bool bLink,SCTAB nTab); 278*cdf0e10cSrcweir 279*cdf0e10cSrcweir bool SetTabBgColor( const Color& rColor, SCTAB nTabNr ); 280*cdf0e10cSrcweir bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoSetTabBgColorInfoList ); 281*cdf0e10cSrcweir 282*cdf0e10cSrcweir void InsertTableLink( const String& rFile, 283*cdf0e10cSrcweir const String& rFilter, const String& rOptions, 284*cdf0e10cSrcweir const String& rTabName ); 285*cdf0e10cSrcweir void InsertAreaLink( const String& rFile, 286*cdf0e10cSrcweir const String& rFilter, const String& rOptions, 287*cdf0e10cSrcweir const String& rSource, sal_uLong nRefresh ); 288*cdf0e10cSrcweir 289*cdf0e10cSrcweir void ShowTable( const String& rName ); 290*cdf0e10cSrcweir void HideTable( SCTAB nTabNr ); 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir void MakeScenario( const String& rName, const String& rComment, 293*cdf0e10cSrcweir const Color& rColor, sal_uInt16 nFlags ); 294*cdf0e10cSrcweir void ExtendScenario(); 295*cdf0e10cSrcweir void UseScenario( const String& rName ); 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir void InsertSpecialChar( const String& rStr, const Font& rFont ); 298*cdf0e10cSrcweir 299*cdf0e10cSrcweir void InsertDummyObject(); 300*cdf0e10cSrcweir void InsertOleObject(); 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir void InsertDraw(); 303*cdf0e10cSrcweir 304*cdf0e10cSrcweir void SetSelectionFrameLines( const SvxBorderLine* pLine, 305*cdf0e10cSrcweir sal_Bool bColorOnly ); 306*cdf0e10cSrcweir 307*cdf0e10cSrcweir void SetNoteText( const ScAddress& rPos, const String& rNoteText ); 308*cdf0e10cSrcweir void ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate ); 309*cdf0e10cSrcweir void DoRefConversion( sal_Bool bRecord = sal_True ); 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir //UNUSED2008-05 void DoSpellingChecker( sal_Bool bRecord = sal_True ); 312*cdf0e10cSrcweir void DoHangulHanjaConversion( sal_Bool bRecord = sal_True ); 313*cdf0e10cSrcweir void DoThesaurus( sal_Bool bRecord = sal_True ); 314*cdf0e10cSrcweir //UNUSED2008-05 DECL_LINK( SpellError, void * ); 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir /** Generic implementation of sheet conversion functions. */ 317*cdf0e10cSrcweir void DoSheetConversion( const ScConversionParam& rParam, sal_Bool bRecord = sal_True ); 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir void SetPrintRanges( sal_Bool bEntireSheet, 320*cdf0e10cSrcweir const String* pPrint, 321*cdf0e10cSrcweir const String* pRepCol, const String* pRepRow, 322*cdf0e10cSrcweir sal_Bool bAddPrint ); 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir void DetectiveAddPred(); 325*cdf0e10cSrcweir void DetectiveDelPred(); 326*cdf0e10cSrcweir void DetectiveAddSucc(); 327*cdf0e10cSrcweir void DetectiveDelSucc(); 328*cdf0e10cSrcweir void DetectiveAddError(); 329*cdf0e10cSrcweir void DetectiveMarkInvalid(); 330*cdf0e10cSrcweir void DetectiveDelAll(); 331*cdf0e10cSrcweir void DetectiveRefresh(); 332*cdf0e10cSrcweir 333*cdf0e10cSrcweir void ShowNote( bool bShow = true ); 334*cdf0e10cSrcweir inline void HideNote() { ShowNote( false ); } 335*cdf0e10cSrcweir void EditNote(); 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir void ForgetFormatArea() { bFormatValid = sal_False; } 338*cdf0e10cSrcweir sal_Bool SelectionEditable( sal_Bool* pOnlyNotBecauseOfMatrix = NULL ); 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir // interne Hilfsfunktionen 341*cdf0e10cSrcweir protected: 342*cdf0e10cSrcweir void UpdateLineAttrs( SvxBorderLine& rLine, 343*cdf0e10cSrcweir const SvxBorderLine* pDestLine, 344*cdf0e10cSrcweir const SvxBorderLine* pSrcLine, 345*cdf0e10cSrcweir sal_Bool bColor ); 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir //UNUSED2008-05 void PaintWidthHeight( sal_Bool bColumns, SCCOLROW nStart, SCCOLROW nEnd ); 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir 350*cdf0e10cSrcweir private: 351*cdf0e10cSrcweir void PasteRTF( SCCOL nCol, SCROW nStartRow, 352*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 353*cdf0e10cSrcweir ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); 354*cdf0e10cSrcweir bool PasteMultiRangesFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, sal_uInt16 nFunction, 355*cdf0e10cSrcweir bool bSkipEmpty, bool bTranspos, bool bAsLink, bool bAllowDialogs, 356*cdf0e10cSrcweir InsCellCmd eMoveMode, sal_uInt16 nCondFlags, sal_uInt16 nUndoFlags ); 357*cdf0e10cSrcweir void PostPasteFromClip(const ScRange& rPasteRange, const ScMarkData& rMark); 358*cdf0e10cSrcweir 359*cdf0e10cSrcweir sal_uInt16 GetOptimalColWidth( SCCOL nCol, SCTAB nTab, sal_Bool bFormula ); 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir void StartFormatArea(); 362*cdf0e10cSrcweir sal_Bool TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Bool bAttrChanged ); 363*cdf0e10cSrcweir void DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab, 364*cdf0e10cSrcweir sal_Bool bAttrChanged, sal_Bool bAddUndo ); 365*cdf0e10cSrcweir }; 366*cdf0e10cSrcweir 367*cdf0e10cSrcweir 368*cdf0e10cSrcweir 369*cdf0e10cSrcweir #endif 370*cdf0e10cSrcweir 371