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