LibreOffice Module sc (master) 1
Public Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScViewFunc Class Reference

#include <viewfunc.hxx>

Inheritance diagram for ScViewFunc:
[legend]
Collaboration diagram for ScViewFunc:
[legend]

Public Member Functions

 ScViewFunc (vcl::Window *pParent, ScDocShell &rDocSh, ScTabViewShell *pViewShell)
 
 ~ScViewFunc ()
 
SC_DLLPUBLIC const ScPatternAttrGetSelectionPattern ()
 
void GetSelectionFrame (std::shared_ptr< SvxBoxItem > &rLineOuter, std::shared_ptr< SvxBoxInfoItem > &rLineInner)
 
SvtScriptType GetSelectionScriptType ()
 
bool GetAutoSumArea (ScRangeList &rRangeList)
 
void EnterAutoSum (const ScRangeList &rRangeList, bool bSubTotal, const ScAddress &rAddr, const OpCode eCode)
 
bool AutoSum (const ScRange &rRange, bool bSubTotal, bool bSetCursor, bool bContinue, const OpCode eCode)
 
OUString GetAutoSumFormula (const ScRangeList &rRangeList, bool bSubTotal, const ScAddress &rAddr, const OpCode eCode)
 
void EnterData (SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString &rString, const EditTextObject *pData=nullptr, bool bMatrixExpand=false)
 
void EnterData (SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject &rData, bool bTestSimple=false)
 
void EnterValue (SCCOL nCol, SCROW nRow, SCTAB nTab, const double &rValue)
 
void EnterMatrix (const OUString &rString, ::formula::FormulaGrammar::Grammar eGram)
 
void EnterBlock (const OUString &rString, const EditTextObject *pData)
 
void EnterDataAtCursor (const OUString &rString)
 
SC_DLLPUBLIC void CutToClip ()
 
SC_DLLPUBLIC bool CopyToClip (ScDocument *pClipDoc, bool bCut, bool bApi=false, bool bIncludeObjects=false, bool bStopEdit=true)
 
SC_DLLPUBLIC bool CopyToClip (ScDocument *pClipDoc, const ScRangeList &rRange, bool bCut, bool bApi=false, bool bIncludeObjects=false, bool bStopEdit=true)
 
bool CopyToClipSingleRange (ScDocument *pClipDoc, const ScRangeList &rRanges, bool bCut, bool bIncludeObjects)
 
bool CopyToClipMultiRange (const ScDocument *pClipDoc, const ScRangeList &rRanges, bool bCut, bool bApi, bool bIncludeObjects)
 
rtl::Reference< ScTransferObjCopyToTransferable ()
 
SC_DLLPUBLIC bool PasteFromClip (InsertDeleteFlags nFlags, ScDocument *pClipDoc, ScPasteFunc nFunction=ScPasteFunc::NONE, bool bSkipEmptyCells=false, bool bTranspose=false, bool bAsLink=false, InsCellCmd eMoveMode=INS_NONE, InsertDeleteFlags nUndoExtraFlags=InsertDeleteFlags::NONE, bool bAllowDialogs=false)
 
void FillTab (InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool bAsLink)
 
SC_DLLPUBLIC void PasteFromSystem ()
 
SC_DLLPUBLIC bool PasteFromSystem (SotClipboardFormatId nFormatId, bool bApi=false)
 
void PasteFromTransferable (const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable)
 
void PasteDraw ()
 
void PasteDraw (const Point &rLogicPos, SdrModel *pModel, bool bGroup, std::u16string_view rSrcShellID, std::u16string_view rDestShellID)
 
bool PasteOnDrawObjectLinked (const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable, SdrObject &rHitObj)
 
bool PasteDataFormat (SotClipboardFormatId nFormatId, const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable, SCCOL nPosX, SCROW nPosY, const Point *pLogicPos, bool bLink=false, bool bAllowDialogs=false)
 
bool PasteFile (const Point &, const OUString &, bool bLink)
 
bool PasteObject (const Point &, const css::uno::Reference< css::embed::XEmbeddedObject > &, const Size *, const Graphic *=nullptr, const OUString &=OUString(), sal_Int64 nAspect=css::embed::Aspects::MSOLE_CONTENT)
 
bool PasteBitmapEx (const Point &, const BitmapEx &)
 
bool PasteMetaFile (const Point &, const GDIMetaFile &)
 
bool PasteGraphic (const Point &rPos, const Graphic &rGraphic, const OUString &rFile)
 
bool PasteBookmark (SotClipboardFormatId nFormatId, const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable, SCCOL nPosX, SCROW nPosY)
 
bool PasteLink (const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable)
 
void InsertBookmark (const OUString &rDescription, const OUString &rURL, SCCOL nPosX, SCROW nPosY, const OUString *pTarget=nullptr, bool bTryReplace=false)
 
bool HasBookmarkAtCursor (SvxHyperlinkItem *pContent)
 
bool MoveBlockTo (const ScRange &rSource, const ScAddress &rDestPos, bool bCut)
 
bool LinkBlock (const ScRange &rSource, const ScAddress &rDestPos)
 
void CreateNames (CreateNameFlags nFlags)
 
CreateNameFlags GetCreateNameFlags ()
 
void InsertNameList ()
 
bool InsertName (const OUString &rName, const OUString &rSymbol, const OUString &rType)
 
void ApplyAttributes (const SfxItemSet *pDialogSet, const SfxItemSet *pOldSet, bool bAdjustBlockHeight=true)
 
void ApplyAttr (const SfxPoolItem &rAttrItem, bool bAdjustBlockHeight=true)
 
void ApplySelectionPattern (const ScPatternAttr &rAttr, bool bCursorOnly=false)
 
void ApplyPatternLines (const ScPatternAttr &rAttr, const SvxBoxItem &rNewOuter, const SvxBoxInfoItem *pNewInner)
 
void ApplyUserItemSet (const SfxItemSet &rItemSet)
 
const SfxStyleSheetGetStyleSheetFromMarked ()
 
void SetStyleSheetToMarked (const SfxStyleSheet *pStyleSheet)
 
void RemoveStyleSheetInUse (const SfxStyleSheetBase *pStyleSheet)
 
void UpdateStyleSheetInUse (const SfxStyleSheetBase *pStyleSheet)
 
void SetNumberFormat (SvNumFormatType nFormatType, sal_uLong nAdd=0)
 
void SetNumFmtByStr (const OUString &rCode)
 
void ChangeNumFmtDecimals (bool bIncrement)
 
void SetValidation (const ScValidationData &rNew)
 
void ChangeIndent (bool bIncrement)
 
void ProtectSheet (SCTAB nTab, const ScTableProtection &rProtect)
 
void ProtectDoc (const OUString &rPassword)
 
bool Unprotect (SCTAB nTab, const OUString &rPassword)
 
void DeleteCells (DelCellCmd eCmd)
 
bool InsertCells (InsCellCmd eCmd, bool bRecord=true, bool bPartOfPaste=false)
 
void DeleteMulti (bool bRows)
 
void DeleteContents (InsertDeleteFlags nFlags)
 
void SetWidthOrHeight (bool bWidth, const std::vector< sc::ColRowSpan > &rRanges, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord=true, const ScMarkData *pMarkData=nullptr)
 
void SetMarkedWidthOrHeight (bool bWidth, ScSizeMode eMode, sal_uInt16 nSizeTwips)
 
bool AdjustBlockHeight (bool bPaint=true, ScMarkData *pMarkData=nullptr)
 
bool AdjustRowHeight (SCROW nStartRow, SCROW nEndRow, bool bApi)
 
void ModifyCellSize (ScDirection eDir, bool bOptimal)
 
SC_DLLPUBLIC void InsertPageBreak (bool bColumn, bool bRecord=true, const ScAddress *pPos=nullptr, bool bSetModified=true)
 
SC_DLLPUBLIC void DeletePageBreak (bool bColumn, bool bRecord=true, const ScAddress *pPos=nullptr, bool bSetModified=true)
 
void RemoveManualBreaks ()
 
void SetPrintZoom (sal_uInt16 nScale)
 
void AdjustPrintZoom ()
 
bool TestMergeCells ()
 
bool TestRemoveMerge ()
 
bool MergeCells (bool bApi, bool &rDoContents, bool bCenter)
 
bool RemoveMerge ()
 
SC_DLLPUBLIC void FillSimple (FillDir eDir)
 
void FillSeries (FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, double fStart, double fStep, double fMax)
 
SC_DLLPUBLIC void FillAuto (FillDir eDir, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount)
 
void FillCrossDblClick ()
 Downward fill of selected cell(s) by double-clicking cross-hair cursor. More...
 
void ConvertFormulaToValue ()
 
void TransliterateText (TransliterationFlags nType)
 
ScAutoFormatDataCreateAutoFormatData ()
 
void AutoFormat (sal_uInt16 nFormatNo)
 
bool SearchAndReplace (const SvxSearchItem *pSearchItem, bool bAddUndo, bool bIsApi)
 
void Solve (const ScSolveParam &rParam)
 
void TabOp (const ScTabOpParam &rParam, bool bRecord=true)
 
bool InsertTable (const OUString &rName, SCTAB nTabNr, bool bRecord=true)
 
void InsertTables (std::vector< OUString > &aNames, SCTAB nTab, SCTAB nCount, bool bRecord=true)
 
bool AppendTable (const OUString &rName, bool bRecord=true)
 
void DeleteTable (SCTAB nTabNr, bool bRecord=true)
 
bool DeleteTables (const std::vector< SCTAB > &TheTabs, bool bRecord=true)
 
void DeleteTables (SCTAB nTab, SCTAB nSheets)
 
bool RenameTable (const OUString &rName, SCTAB nTabNr)
 
void MoveTable (sal_uInt16 nDestDocNo, SCTAB nDestTab, bool bCopy, const OUString *pNewTabName=nullptr)
 
void ImportTables (ScDocShell *pSrcShell, SCTAB nCount, const SCTAB *pSrcTabs, bool bLink, SCTAB nTab)
 
bool SetTabBgColor (const Color &rColor, SCTAB nTabNr)
 
bool SetTabBgColor (ScUndoTabColorInfo::List &rUndoSetTabBgColorInfoList)
 
void InsertTableLink (const OUString &rFile, const OUString &rFilter, const OUString &rOptions, std::u16string_view rTabName)
 
void InsertAreaLink (const OUString &rFile, const OUString &rFilter, const OUString &rOptions, const OUString &rSource)
 
void ShowTable (const std::vector< OUString > &rNames)
 
void HideTable (const ScMarkData &rMark, SCTAB nTabToSelect=-1)
 
void MakeScenario (const OUString &rName, const OUString &rComment, const Color &rColor, ScScenarioFlags nFlags)
 
void ExtendScenario ()
 
void UseScenario (const OUString &rName)
 
void InsertSpecialChar (const OUString &rStr, const vcl::Font &rFont)
 
void SetSelectionFrameLines (const ::editeng::SvxBorderLine *pLine, bool bColorOnly)
 
void SetNoteText (const ScAddress &rPos, const OUString &rNoteText)
 
void ReplaceNote (const ScAddress &rPos, const OUString &rNoteText, const OUString *pAuthor, const OUString *pDate)
 
void DoRefConversion ()
 
void DoHangulHanjaConversion ()
 
void DoThesaurus ()
 
void DoSheetConversion (const ScConversionParam &rParam)
 Generic implementation of sheet conversion functions. More...
 
void SetPrintRanges (bool bEntireSheet, const OUString *pPrint, const OUString *pRepCol, const OUString *pRepRow, bool bAddPrint)
 
void DetectiveAddPred ()
 
void DetectiveDelPred ()
 
void DetectiveAddSucc ()
 
void DetectiveDelSucc ()
 
void DetectiveAddError ()
 
void DetectiveMarkInvalid ()
 
void DetectiveDelAll ()
 
void DetectiveRefresh ()
 
void DetectiveMarkPred ()
 
void DetectiveMarkSucc ()
 
void InsertCurrentTime (SvNumFormatType nCellFmt, const OUString &rUndoStr)
 Insert date or time into current cell. More...
 
void ShowNote (bool bShow)
 
void EditNote ()
 
bool SelectionEditable (bool *pOnlyNotBecauseOfMatrix=nullptr)
 
SC_DLLPUBLIC void DataFormPutData (SCROW nCurrentRow, SCROW nStartRow, SCCOL nStartCol, SCROW nEndRow, SCCOL nEndCol, std::vector< std::unique_ptr< ScDataFormFragment > > &rEdits, sal_uInt16 aColLength)
 
void UpdateSelectionArea (const ScMarkData &rSel, ScPatternAttr *pAttr=nullptr)
 
void OnLOKInsertDeleteColumn (SCCOL nStartCol, tools::Long nOffset)
 
void OnLOKInsertDeleteRow (SCROW nStartRow, tools::Long nOffset)
 
void OnLOKSetWidthOrHeight (SCCOLROW nStart, bool bWidth)
 
- Public Member Functions inherited from ScTabView
 ScTabView (const ScTabView &)=delete
 make noncopyable More...
 
const ScTabViewoperator= (const ScTabView &)=delete
 
 ScTabView (vcl::Window *pParent, ScDocShell &rDocSh, ScTabViewShell *pViewShell)
 
 ~ScTabView ()
 
void MakeDrawLayer ()
 
void HideListBox ()
 
bool HasHintWindow () const
 
void RemoveHintWindow ()
 
void TestHintWindow ()
 
 DECL_LINK (TabBarResize, ::TabBar *, void)
 
void SetTabBarWidth (tools::Long nNewWidth)
 Sets an absolute tab bar width (in pixels). More...
 
SC_DLLPUBLIC void SetRelTabBarWidth (double fRelTabBarWidth)
 Sets a relative tab bar width. More...
 
void SetPendingRelTabBarWidth (double fRelTabBarWidth)
 Sets a relative tab bar width. More...
 
tools::Long GetTabBarWidth () const
 Returns the current tab bar width in pixels. More...
 
double GetPendingRelTabBarWidth () const
 Returns the pending tab bar width relative to the frame window width (0.0 ... 1.0). More...
 
void DoResize (const Point &rOffset, const Size &rSize, bool bInner=false)
 
void RepeatResize (bool bUpdateFix=true)
 
void UpdateFixPos ()
 
Point GetGridOffset () const
 
bool IsDrawSelMode () const
 
void SetDrawSelMode (bool bNew)
 
void SetDrawFuncPtr (FuPoor *pFuncPtr)
 
void SetDrawFuncOldPtr (FuPoor *pFuncPtr)
 
FuPoorGetDrawFuncPtr ()
 
FuPoorGetDrawFuncOldPtr ()
 
void DrawDeselectAll ()
 
void DrawMarkListHasChanged ()
 
void UpdateAnchorHandles ()
 
ScPageBreakDataGetPageBreakData ()
 
const std::vector< ScHighlightEntry > & GetHighlightRanges () const
 
void UpdatePageBreakData (bool bForcePaint=false)
 
ScViewDataGetViewData ()
 
const ScViewDataGetViewData () const
 
ScViewFunctionSetGetFunctionSet ()
 
ScViewSelectionEngineGetSelEngine ()
 
bool SelMouseButtonDown (const MouseEvent &rMEvt)
 
ScDrawViewGetScDrawView ()
 
bool IsMinimized () const
 
void TabChanged (bool bSameTabButMoved=false)
 Called after moving, copying, inserting or deleting a sheet. More...
 
void SetZoom (const Fraction &rNewX, const Fraction &rNewY, bool bAll)
 
SC_DLLPUBLIC void RefreshZoom ()
 
void SetPagebreakMode (bool bSet)
 
void UpdateLayerLocks ()
 
void UpdateDrawTextOutliner ()
 
void DigitLanguageChanged ()
 
void InitRefMode (SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType)
 
void DoneRefMode (bool bContinue=false)
 
void UpdateRef (SCCOL nCurX, SCROW nCurY, SCTAB nCurZ)
 
void StopRefMode ()
 
void StopMarking ()
 
void FakeButtonUp (ScSplitPos eWhich)
 
ScGridWindowGetActiveWin ()
 
vcl::WindowGetWindowByPos (ScSplitPos ePos) const
 
ScSplitPos FindWindow (const vcl::Window *pWindow) const
 
void SetActivePointer (PointerStyle nPointer)
 
void ActiveGrabFocus ()
 
void ClickCursor (SCCOL nPosX, SCROW nPosY, bool bControl)
 
SC_DLLPUBLIC void SetCursor (SCCOL nPosX, SCROW nPosY, bool bNew=false)
 
SC_DLLPUBLIC void CellContentChanged ()
 
void SelectionChanged (bool bFromPaste=false)
 
void CursorPosChanged ()
 
void UpdateInputContext ()
 
void CheckSelectionTransfer ()
 
void InvertHorizontal (ScVSplitPos eWhich, tools::Long nDragPos)
 
void InvertVertical (ScHSplitPos eWhich, tools::Long nDragPos)
 
Point GetInsertPos () const
 
Point GetChartInsertPos (const Size &rSize, const ScRange &rCellRange)
 
Point GetChartDialogPos (const Size &rDialogSize, const tools::Rectangle &rLogicChart)
 
void UpdateAutoFillMark (bool bFromPaste=false)
 
void ShowCursor ()
 
void HideAllCursors ()
 
void ShowAllCursors ()
 
void AlignToCursor (SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, const ScSplitPos *pWhich=nullptr)
 
SvxZoomType GetZoomType () const
 
void SetZoomType (SvxZoomType eNew, bool bAll)
 
sal_uInt16 CalcZoom (SvxZoomType eType, sal_uInt16 nOldZoom)
 
bool HasPageFieldDataAtCursor () const
 
void StartDataSelect ()
 
SC_DLLPUBLIC void MoveCursorAbs (SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, bool bShift, bool bControl, bool bKeepOld=false, bool bKeepSel=false)
 
void MoveCursorRel (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift, bool bKeepSel=false)
 
void MoveCursorPage (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift, bool bKeepSel=false)
 
void MoveCursorArea (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift, bool bKeepSel=false, bool bInteractiveByUser=false)
 
void MoveCursorEnd (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift, bool bKeepSel=false)
 
void MoveCursorScreen (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift)
 
void MoveCursorEnter (bool bShift)
 
bool MoveCursorKeyInput (const KeyEvent &rKeyEvent)
 
void FindNextUnprot (bool bShift, bool bInSelection)
 
void GetPageMoveEndPosition (SCCOL nMovX, SCROW nMovY, SCCOL &rPageX, SCROW &rPageY)
 
SC_DLLPUBLIC void SetTabNo (SCTAB nTab, bool bNew=false, bool bExtendSelection=false, bool bSameTabButMoved=false)
 
void SelectNextTab (short nDir, bool bExtendSelection)
 
void SelectTabPage (const sal_uInt16 nTab)
 
void ActivateView (bool bActivate, bool bFirst)
 
void ActivatePart (ScSplitPos eWhich)
 
bool IsInActivatePart () const
 
void SetTimer (ScGridWindow *pWin, const MouseEvent &rMEvt)
 
void ResetTimer ()
 
void ScrollX (tools::Long nDeltaX, ScHSplitPos eWhich, bool bUpdBars=true)
 
void ScrollY (tools::Long nDeltaY, ScVSplitPos eWhich, bool bUpdBars=true)
 
SC_DLLPUBLIC void ScrollLines (tools::Long nDeltaX, tools::Long nDeltaY)
 
bool ScrollCommand (const CommandEvent &rCEvt, ScSplitPos ePos)
 
bool GestureZoomCommand (const CommandEvent &rCEvt)
 
void ScrollToObject (const SdrObject *pDrawObj)
 
void MakeVisible (const tools::Rectangle &rHMMRect)
 
void PaintArea (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScUpdateMode eMode=ScUpdateMode::All)
 
void PaintGrid ()
 
void PaintTopArea (SCCOL nStartCol, SCCOL nEndCol)
 
void PaintTop ()
 
void PaintLeftArea (SCROW nStartRow, SCROW nEndRow)
 
void PaintLeft ()
 
bool PaintExtras ()
 
void RecalcPPT ()
 
void CreateAnchorHandles (SdrHdlList &rHdl, const ScAddress &rAddress)
 
void UpdateCopySourceOverlay ()
 
void UpdateSelectionOverlay ()
 
void UpdateShrinkOverlay ()
 
void UpdateAllOverlays ()
 
void UpdateFormulas (SCCOL nStartCol=-1, SCROW nStartRow=-1, SCCOL nEndCol=-1, SCROW nEndRow=-1)
 
void InterpretVisible ()
 
void CheckNeedsRepaint ()
 
bool NeedsRepaint ()
 
void PaintRangeFinder (tools::Long nNumber)
 
void AddHighlightRange (const ScRange &rRange, const Color &rColor)
 
void ClearHighlightRanges ()
 
void DoChartSelection (const css::uno::Sequence< css::chart2::data::HighlightedRange > &rHilightRanges)
 
void DoDPFieldPopup (std::u16string_view rPivotTableName, sal_Int32 nDimensionIndex, Point aPoint, Size aSize)
 
tools::Long GetGridWidth (ScHSplitPos eWhich)
 
tools::Long GetGridHeight (ScVSplitPos eWhich)
 
void UpdateScrollBars (HeaderType eHeaderType=BOTH_HEADERS)
 
void SetNewVisArea ()
 
void SetTabProtectionSymbol (SCTAB nTab, const bool bProtect)
 
void InvalidateAttribs ()
 
void OnLibreOfficeKitTabChanged ()
 
void AddWindowToForeignEditView (SfxViewShell *pViewShell, ScSplitPos eWhich)
 
void RemoveWindowFromForeignEditView (SfxViewShell *pViewShell, ScSplitPos eWhich)
 
void MakeEditView (ScEditEngineDefaulter *pEngine, SCCOL nCol, SCROW nRow)
 
void KillEditView (bool bNoPaint)
 
void UpdateEditView ()
 
void SelectAll (bool bContinue=false)
 
void SelectAllTables ()
 
void DeselectAllTables ()
 
void MarkCursor (SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, bool bCols=false, bool bRows=false, bool bCellSelection=false)
 
void InitBlockMode (SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, bool bTestNeg=false, bool bCols=false, bool bRows=false, bool bForceNeg=false)
 
void InitOwnBlockMode (const ScRange &rMarkRange)
 
void DoneBlockMode (bool bContinue=false)
 
bool IsBlockMode () const
 
void ExpandBlock (SCCOL nMovX, SCROW nMovY, ScFollowMode eMode)
 
void ExpandBlockPage (SCCOL nMovX, SCROW nMovY)
 
void ExpandBlockArea (SCCOL nMovX, SCROW nMovY)
 
void MarkColumns ()
 
void MarkRows ()
 
void MarkColumns (SCCOL nCol, sal_Int16 nModifier)
 Called to select the specified full column. More...
 
void MarkRows (SCROW nRow, sal_Int16 nModifier)
 Called to select the specified full row. More...
 
void MarkDataArea (bool bIncludeCursor=true)
 
void MarkMatrixFormula ()
 
void Unmark ()
 
void MarkRange (const ScRange &rRange, bool bSetCursor=true, bool bContinue=false)
 
bool IsMarking (SCCOL nCol, SCROW nRow, SCTAB nTab) const
 
void PaintMarks (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow)
 
void PaintBlock (bool bReset)
 divide PaintBlock into two methods: RepaintBlock and RemoveBlock or similar More...
 
void SetMarkData (const ScMarkData &rNew)
 
void MarkDataChanged ()
 
void LockModifiers (sal_uInt16 nModifiers)
 
sal_uInt16 GetLockedModifiers () const
 
void ViewOptionsHasChanged (bool bHScrollChanged, bool bGraphicsChanged)
 
Point GetMousePosPixel ()
 
void FreezeSplitters (bool bFreeze, SplitMethod eSplitMethod=SC_SPLIT_METHOD_CURSOR, SCCOLROW nFreezeIndex=-1)
 
void RemoveSplit ()
 
void SplitAtCursor ()
 
void SplitAtPixel (const Point &rPixel)
 
void InvalidateSplit ()
 
void ErrorMessage (TranslateId pGlobStrId)
 
void EnableRefInput (bool bFlag)
 
vcl::WindowGetFrameWin () const
 
bool HasPaintBrush () const
 
ScDocumentGetBrushDocument () const
 
SfxItemSetGetDrawBrushSet () const
 
bool IsPaintBrushLocked () const
 
void SetBrushDocument (ScDocumentUniquePtr pNew, bool bLock)
 
void SetDrawBrushSet (std::unique_ptr< SfxItemSet > pNew, bool bLock)
 
void ResetBrushDocument ()
 
void EnableAutoSpell (bool bEnable)
 
void ResetAutoSpell ()
 
void ResetAutoSpellForContentChange ()
 
void SetAutoSpellData (SCCOL nPosX, SCROW nPosY, const std::vector< editeng::MisspellRanges > *pRanges)
 
void getRowColumnHeaders (const tools::Rectangle &rRectangle, tools::JsonWriter &rJsonWriter)
 
OString getSheetGeometryData (bool bColumns, bool bRows, bool bSizes, bool bHidden, bool bFiltered, bool bGroups)
 
void extendTiledAreaIfNeeded ()
 
SCROW GetLOKStartHeaderRow () const
 
SCROW GetLOKEndHeaderRow () const
 
SCCOL GetLOKStartHeaderCol () const
 
SCCOL GetLOKEndHeaderCol () const
 

Static Protected Member Functions

static void UpdateLineAttrs (::editeng::SvxBorderLine &rLine, const ::editeng::SvxBorderLine *pDestLine, const ::editeng::SvxBorderLine *pSrcLine, bool bColor)
 

Private Member Functions

void PasteRTF (SCCOL nCol, SCROW nStartRow, const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable)
 
bool PasteMultiRangesFromClip (InsertDeleteFlags nFlags, ScDocument *pClipDoc, ScPasteFunc nFunction, bool bSkipEmptyCells, bool bTranspose, bool bAsLink, bool bAllowDialogs, InsCellCmd eMoveMode, InsertDeleteFlags nUndoFlags)
 
bool PasteFromClipToMultiRanges (InsertDeleteFlags nFlags, ScDocument *pClipDoc, ScPasteFunc nFunction, bool bSkipEmptyCells, bool bTranspose, bool bAsLink, bool bAllowDialogs, InsCellCmd eMoveMode, InsertDeleteFlags nUndoFlags)
 
void PostPasteFromClip (const ScRangeList &rPasteRanges, const ScMarkData &rMark)
 
sal_uInt16 GetOptimalColWidth (SCCOL nCol, SCTAB nTab, bool bFormula)
 
void StartFormatArea ()
 
bool TestFormatArea (SCCOL nCol, SCROW nRow, SCTAB nTab, bool bAttrChanged)
 
void DoAutoAttributes (SCCOL nCol, SCROW nRow, SCTAB nTab, bool bAttrChanged)
 
void MarkAndJumpToRanges (const ScRangeList &rRanges)
 
void CopyAutoSpellData (FillDir eDir, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount)
 

Private Attributes

ScAddress aFormatSource
 
ScRange aFormatArea
 
bool bFormatValid
 

Additional Inherited Members

- Public Types inherited from ScTabView
enum  SplitMethod {
  SC_SPLIT_METHOD_COL ,
  SC_SPLIT_METHOD_ROW ,
  SC_SPLIT_METHOD_CURSOR
}
 
- Static Public Member Functions inherited from ScTabView
static SC_DLLPUBLIC double GetRelTabBarWidth ()
 Returns the current tab bar width relative to the frame window width (0.0 ... 1.0). More...
 
static void UpdateInputLine ()
 
static void OnLOKNoteStateChanged (const ScPostIt *pNote)
 
- Protected Member Functions inherited from ScTabView
void UpdateHeaderWidth (const ScVSplitPos *pWhich=nullptr, const SCROW *pPosY=nullptr)
 
void HideTip ()
 
void ShowRefTip ()
 
void ZoomChanged ()
 
void UpdateShow ()
 
bool UpdateVisibleRange ()
 
void GetBorderSize (SvBorder &rBorder, const Size &rSize)
 
void ResetDrawDragMode ()
 
bool IsDrawTextEdit () const
 
void DrawEnableAnim (bool bSet)
 
void MakeDrawView (TriState nForceDesignMode)
 
void HideNoteMarker ()
 
void UpdateIMap (SdrObject *pObj)
 

Detailed Description

Definition at line 70 of file viewfunc.hxx.

Constructor & Destructor Documentation

◆ ScViewFunc()

ScViewFunc::ScViewFunc ( vcl::Window pParent,
ScDocShell rDocSh,
ScTabViewShell pViewShell 
)

Definition at line 106 of file viewfunc.cxx.

◆ ~ScViewFunc()

ScViewFunc::~ScViewFunc ( )

Definition at line 112 of file viewfunc.cxx.

Member Function Documentation

◆ AdjustBlockHeight()

bool ScViewFunc::AdjustBlockHeight ( bool  bPaint = true,
ScMarkData pMarkData = nullptr 
)

◆ AdjustPrintZoom()

void ScViewFunc::AdjustPrintZoom ( )

◆ AdjustRowHeight()

bool ScViewFunc::AdjustRowHeight ( SCROW  nStartRow,
SCROW  nEndRow,
bool  bApi 
)

◆ AppendTable()

bool ScViewFunc::AppendTable ( const OUString &  rName,
bool  bRecord = true 
)

◆ ApplyAttr()

void ScViewFunc::ApplyAttr ( const SfxPoolItem rAttrItem,
bool  bAdjustBlockHeight = true 
)

◆ ApplyAttributes()

void ScViewFunc::ApplyAttributes ( const SfxItemSet pDialogSet,
const SfxItemSet pOldSet,
bool  bAdjustBlockHeight = true 
)

◆ ApplyPatternLines()

void ScViewFunc::ApplyPatternLines ( const ScPatternAttr rAttr,
const SvxBoxItem rNewOuter,
const SvxBoxInfoItem pNewInner 
)

◆ ApplySelectionPattern()

void ScViewFunc::ApplySelectionPattern ( const ScPatternAttr rAttr,
bool  bCursorOnly = false 
)

Definition at line 1227 of file viewfunc.cxx.

References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScDocument::ApplyPattern(), ScDocument::ApplySelectionPattern(), aProperties, ScRange::aStart, ATTR_BORDER(), ATTR_HOR_JUSTIFY(), ATTR_PATTERN_END(), ATTR_PATTERN_START(), ATTR_SHADOW(), ATTRIB, ScTabView::CellContentChanged(), CELLTYPE_EDIT, EditTextObject::Clone(), ScAddress::Col(), ScDocument::CopyToDocument(), ScCellObj::GetCellPropertyMap(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScUndoSelectionAttr::GetDataArray(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScRefCellValue::getEditText(), ScDocument::GetEditText(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewData::GetMarkData(), ScDocShell::GetModel(), ScMarkData::GetMultiMarkArea(), HelperNotifyChanges::getMustPropagateChangesModel(), ScDocument::GetPattern(), SfxItemPropertyMap::getPropertyEntries(), ScMarkData::GetSelectCount(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScRefCellValue::getType(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToMulti(), nCount, HelperNotifyChanges::Notify(), ScDocShell::PostPaint(), ScRangeList::push_back(), SfxPoolItem::QueryValue(), ScDocument::RemoveEditTextCharAttribs(), ScAddress::Row(), SC_PF_LINES, SC_PF_TESTMERGE, SC_PF_WHOLEROWS, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarkArea(), ScAddress::SetTab(), ShrinkToDataArea(), StartFormatArea(), ScAddress::Tab(), ScViewUtil::UnmarkFiltered(), and ScDocShell::UpdateOle().

Referenced by ApplyAttr(), ApplyAttributes(), ApplyUserItemSet(), ChangeNumFmtDecimals(), ScInputHandler::EnterHandler(), ScFormatShell::ExecuteNumFormat(), ScFormatShell::ExecuteTextDirection(), ExtendScenario(), ScUndoSelectionAttr::Repeat(), SetNumberFormat(), and SetNumFmtByStr().

◆ ApplyUserItemSet()

void ScViewFunc::ApplyUserItemSet ( const SfxItemSet rItemSet)

◆ AutoFormat()

void ScViewFunc::AutoFormat ( sal_uInt16  nFormatNo)

◆ AutoSum()

bool ScViewFunc::AutoSum ( const ScRange rRange,
bool  bSubTotal,
bool  bSetCursor,
bool  bContinue,
const OpCode  eCode 
)

◆ ChangeIndent()

void ScViewFunc::ChangeIndent ( bool  bIncrement)

◆ ChangeNumFmtDecimals()

void ScViewFunc::ChangeNumFmtDecimals ( bool  bIncrement)

◆ ConvertFormulaToValue()

void ScViewFunc::ConvertFormulaToValue ( )

◆ CopyAutoSpellData()

void ScViewFunc::CopyAutoSpellData ( FillDir  eDir,
SCCOL  nStartCol,
SCROW  nStartRow,
SCCOL  nEndCol,
SCROW  nEndRow,
sal_uLong  nCount 
)
private

◆ CopyToClip() [1/2]

bool ScViewFunc::CopyToClip ( ScDocument pClipDoc,
bool  bCut,
bool  bApi = false,
bool  bIncludeObjects = false,
bool  bStopEdit = true 
)

◆ CopyToClip() [2/2]

bool ScViewFunc::CopyToClip ( ScDocument pClipDoc,
const ScRangeList rRange,
bool  bCut,
bool  bApi = false,
bool  bIncludeObjects = false,
bool  bStopEdit = true 
)

◆ CopyToClipMultiRange()

bool ScViewFunc::CopyToClipMultiRange ( const ScDocument pClipDoc,
const ScRangeList rRanges,
bool  bCut,
bool  bApi,
bool  bIncludeObjects 
)

◆ CopyToClipSingleRange()

bool ScViewFunc::CopyToClipSingleRange ( ScDocument pClipDoc,
const ScRangeList rRanges,
bool  bCut,
bool  bIncludeObjects 
)

◆ CopyToTransferable()

rtl::Reference< ScTransferObj > ScViewFunc::CopyToTransferable ( )

◆ CreateAutoFormatData()

ScAutoFormatData * ScViewFunc::CreateAutoFormatData ( )

◆ CreateNames()

void ScViewFunc::CreateNames ( CreateNameFlags  nFlags)

◆ CutToClip()

void ScViewFunc::CutToClip ( )

◆ DataFormPutData()

void ScViewFunc::DataFormPutData ( SCROW  nCurrentRow,
SCROW  nStartRow,
SCCOL  nStartCol,
SCROW  nEndRow,
SCCOL  nEndCol,
std::vector< std::unique_ptr< ScDataFormFragment > > &  rEdits,
sal_uInt16  aColLength 
)

◆ DeleteCells()

void ScViewFunc::DeleteCells ( DelCellCmd  eCmd)

◆ DeleteContents()

void ScViewFunc::DeleteContents ( InsertDeleteFlags  nFlags)

◆ DeleteMulti()

void ScViewFunc::DeleteMulti ( bool  bRows)

◆ DeletePageBreak()

void ScViewFunc::DeletePageBreak ( bool  bColumn,
bool  bRecord = true,
const ScAddress pPos = nullptr,
bool  bSetModified = true 
)

◆ DeleteTable()

void ScViewFunc::DeleteTable ( SCTAB  nTabNr,
bool  bRecord = true 
)

◆ DeleteTables() [1/2]

bool ScViewFunc::DeleteTables ( const std::vector< SCTAB > &  TheTabs,
bool  bRecord = true 
)

◆ DeleteTables() [2/2]

void ScViewFunc::DeleteTables ( SCTAB  nTab,
SCTAB  nSheets 
)

◆ DetectiveAddError()

void ScViewFunc::DetectiveAddError ( )

◆ DetectiveAddPred()

void ScViewFunc::DetectiveAddPred ( )

◆ DetectiveAddSucc()

void ScViewFunc::DetectiveAddSucc ( )

◆ DetectiveDelAll()

void ScViewFunc::DetectiveDelAll ( )

◆ DetectiveDelPred()

void ScViewFunc::DetectiveDelPred ( )

◆ DetectiveDelSucc()

void ScViewFunc::DetectiveDelSucc ( )

◆ DetectiveMarkInvalid()

void ScViewFunc::DetectiveMarkInvalid ( )

◆ DetectiveMarkPred()

void ScViewFunc::DetectiveMarkPred ( )

◆ DetectiveMarkSucc()

void ScViewFunc::DetectiveMarkSucc ( )

◆ DetectiveRefresh()

void ScViewFunc::DetectiveRefresh ( )

◆ DoAutoAttributes()

void ScViewFunc::DoAutoAttributes ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
bool  bAttrChanged 
)
private

◆ DoHangulHanjaConversion()

void ScViewFunc::DoHangulHanjaConversion ( )

Definition at line 433 of file viewfun4.cxx.

References DoSheetConversion(), LANGUAGE_KOREAN, and SC_CONVERSION_HANGULHANJA.

Referenced by ScCellShell::ExecuteEdit().

◆ DoRefConversion()

void ScViewFunc::DoRefConversion ( )

◆ DoSheetConversion()

void ScViewFunc::DoSheetConversion ( const ScConversionParam rParam)

◆ DoThesaurus()

void ScViewFunc::DoThesaurus ( )

◆ EditNote()

void ScViewFunc::EditNote ( )

◆ EnterAutoSum()

void ScViewFunc::EnterAutoSum ( const ScRangeList rRangeList,
bool  bSubTotal,
const ScAddress rAddr,
const OpCode  eCode 
)

Definition at line 616 of file viewfun2.cxx.

References EnterBlock(), and GetAutoSumFormula().

Referenced by ScTabViewShell::DoAutoSum().

◆ EnterBlock()

void ScViewFunc::EnterBlock ( const OUString &  rString,
const EditTextObject pData 
)

◆ EnterData() [1/2]

void ScViewFunc::EnterData ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
const EditTextObject rData,
bool  bTestSimple = false 
)

◆ EnterData() [2/2]

void ScViewFunc::EnterData ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
const OUString &  rString,
const EditTextObject pData = nullptr,
bool  bMatrixExpand = false 
)

Definition at line 384 of file viewfunc.cxx.

References ScDocShell::AdjustRowHeight(), ScDocFunc::ApplyAttributes(), ATTR_VALUE_FORMAT(), ScCompiler::CompileString(), formula::FormulaCompiler::CompileTokenArray(), EditEngine::CreateTextObject(), formula::FormulaTokenArray::DelRPN(), DoAutoAttributes(), ScGlobal::eLnge, ScDocFunc::EndListAction(), ScDocFunc::EnterListAction(), EnterMatrix(), ScTabView::ErrorMessage(), ScCompiler::EXTENDED_ERROR_DETECTION_NAME_BREAK, ScModule::GetAppOptions(), ScDocument::GetAttr(), ScFormulaCell::GetCode(), ScDocument::GetCondFormat(), ScCompiler::GetCorrectedFormula(), ScViewData::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetEditEngine(), SvNumberFormatter::GetEntry(), ScMarkData::GetFirstSelected(), ScDocument::GetFormatTable(), ScDocument::GetGrammar(), ScPatternAttr::GetItemSet(), SvNumberformat::GetLanguage(), ScEditableTester::GetMessageId(), ScDocument::GetNumberFormat(), formula::FormulaToken::GetOpCode(), ScDocument::GetPool(), ScDocument::GetSheetLimits(), SvNumberFormatter::GetStandardFormat(), SvNumberFormatter::GetType(), ScTabView::GetViewData(), formula::FormulaGrammar::GRAM_DEFAULT, i, ScCompiler::IsCorrected(), ScEditableTester::IsEditable(), formula::FormulaToken::IsFunction(), formula::FormulaTokenArray::IsHyperLink(), formula::FormulaToken::IsInForceArray(), formula::FormulaCompiler::IsMatrixFunction(), ScStringUtil::isMultiline(), SvNumberFormatter::IsNumberFormat(), ScDocument::IsUndoEnabled(), lcl_AddFunction(), lcl_PostRepaintCondFormat(), nIndex, NONE, HelperNotifyChanges::NotifyIfChangesListeners(), nType, ocClose, ocOpen, ScTabView::PaintArea(), pData, SfxItemSet::Put(), RET_NO, RET_YES, SC_MOD, ScMarkData::SelectTable(), ScModule::SetAppOptions(), ScCompiler::SetAutoCorrection(), ScDocShellModificator::SetDocumentModified(), ScDocFunc::SetEditCell(), ScDocument::SetEditText(), ScFormulaCell::SetErrCode(), ScCompiler::SetExtendedErrorDetection(), ScDocFunc::SetFormulaCell(), formula::FormulaTokenArray::SetHyperLink(), ScMarkData::SetMarkArea(), ScDocFunc::SetNormalString(), ScDocFunc::SetStringCell(), ScAddress::SetTab(), ScEditEngineDefaulter::SetTextCurrentDefaults(), TestFormatArea(), u, and ScDocShell::UpdateOle().

Referenced by AutoSum(), EnterBlock(), EnterData(), EnterDataAtCursor(), ScGridWindow::ExecDataSelect(), ScCellShell::Execute(), ScCellShell::ExecuteEdit(), InsertBookmark(), ScDocShell::MergeDocument(), and PasteRTF().

◆ EnterDataAtCursor()

void ScViewFunc::EnterDataAtCursor ( const OUString &  rString)

◆ EnterMatrix()

void ScViewFunc::EnterMatrix ( const OUString &  rString,
::formula::FormulaGrammar::Grammar  eGram 
)

◆ EnterValue()

void ScViewFunc::EnterValue ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
const double &  rValue 
)

◆ ExtendScenario()

void ScViewFunc::ExtendScenario ( )

◆ FillAuto()

void ScViewFunc::FillAuto ( FillDir  eDir,
SCCOL  nStartCol,
SCROW  nStartRow,
SCCOL  nEndCol,
SCROW  nEndRow,
sal_uLong  nCount 
)

◆ FillCrossDblClick()

void ScViewFunc::FillCrossDblClick ( )

Downward fill of selected cell(s) by double-clicking cross-hair cursor.

Either, extends a current selection if non-empty cells exist immediately below the selection, overwriting cells below the selection up to the minimum row of already filled cells.

Or, extends a current selection down to the last non-empty cell of an adjacent column when the lower-right corner of the selection is double-clicked. It uses a left-adjoining non-empty column as a guide if such is available, otherwise a right-adjoining non-empty column is used.

Returns
No return value
See also
#i12313#

Definition at line 1758 of file viewfun2.cxx.

References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), FILL_TO_BOTTOM, FillAuto(), ScDocument::FindAreaPos(), ScViewData::GetCurPos(), ScViewData::GetDocument(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), ScDocument::HasData(), ScDocument::IsBlockEmpty(), ScDocument::IsEmptyData(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScRange::PutInOrder(), ScAddress::Row(), SC_MOVE_DOWN, and ScAddress::Tab().

Referenced by ScGridWindow::HandleMouseButtonDown().

◆ FillSeries()

void ScViewFunc::FillSeries ( FillDir  eDir,
FillCmd  eCmd,
FillDateCmd  eDateCmd,
double  fStart,
double  fStep,
double  fMax 
)

◆ FillSimple()

void ScViewFunc::FillSimple ( FillDir  eDir)

◆ FillTab()

void ScViewFunc::FillTab ( InsertDeleteFlags  nFlags,
ScPasteFunc  nFunction,
bool  bSkipEmpty,
bool  bAsLink 
)

◆ GetAutoSumArea()

bool ScViewFunc::GetAutoSumArea ( ScRangeList rRangeList)

◆ GetAutoSumFormula()

OUString ScViewFunc::GetAutoSumFormula ( const ScRangeList rRangeList,
bool  bSubTotal,
const ScAddress rAddr,
const OpCode  eCode 
)

◆ GetCreateNameFlags()

CreateNameFlags ScViewFunc::GetCreateNameFlags ( )

◆ GetOptimalColWidth()

sal_uInt16 ScViewFunc::GetOptimalColWidth ( SCCOL  nCol,
SCTAB  nTab,
bool  bFormula 
)
private

◆ GetSelectionFrame()

void ScViewFunc::GetSelectionFrame ( std::shared_ptr< SvxBoxItem > &  rLineOuter,
std::shared_ptr< SvxBoxInfoItem > &  rLineInner 
)

◆ GetSelectionPattern()

const ScPatternAttr * ScViewFunc::GetSelectionPattern ( )

◆ GetSelectionScriptType()

SvtScriptType ScViewFunc::GetSelectionScriptType ( )

◆ GetStyleSheetFromMarked()

const SfxStyleSheet * ScViewFunc::GetStyleSheetFromMarked ( )

◆ HasBookmarkAtCursor()

bool ScViewFunc::HasBookmarkAtCursor ( SvxHyperlinkItem pContent)

◆ HideTable()

void ScViewFunc::HideTable ( const ScMarkData rMark,
SCTAB  nTabToSelect = -1 
)

◆ ImportTables()

void ScViewFunc::ImportTables ( ScDocShell pSrcShell,
SCTAB  nCount,
const SCTAB pSrcTabs,
bool  bLink,
SCTAB  nTab 
)

◆ InsertAreaLink()

void ScViewFunc::InsertAreaLink ( const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOptions,
const OUString &  rSource 
)

◆ InsertBookmark()

void ScViewFunc::InsertBookmark ( const OUString &  rDescription,
const OUString &  rURL,
SCCOL  nPosX,
SCROW  nPosY,
const OUString *  pTarget = nullptr,
bool  bTryReplace = false 
)

◆ InsertCells()

bool ScViewFunc::InsertCells ( InsCellCmd  eCmd,
bool  bRecord = true,
bool  bPartOfPaste = false 
)

◆ InsertCurrentTime()

void ScViewFunc::InsertCurrentTime ( SvNumFormatType  nReqFmt,
const OUString &  rUndoStr 
)

Insert date or time into current cell.

If cell is in input or edit mode, insert date/time at cursor position, else create a date or time or date+time cell as follows:

  • key date on time cell => current date + time of cell => date+time formatted cell
    • unless time cell was empty or 00:00 time => current date => date formatted cell
  • key date on date+time cell => current date + 00:00 time => date+time formatted cell
    • unless date was current date => current date => date formatted cell
  • key date on other cell => current date => date formatted cell
  • key time on date cell => date of cell + current time => date+time formatted cell
    • unless date cell was empty => current time => time formatted cell
  • key time on date+time cell => current time => time formatted cell
    • unless cell was empty => current date+time => date+time formatted cell
  • key time on other cell => current time => time formatted cell

Definition at line 275 of file viewfun6.cxx.

References ScInputHandler::DataChanged(), ScInputHandler::DataChanging(), ScGlobal::eLnge, SfxUndoManager::EnterListAction(), ScViewData::GetCurPos(), SfxLokHelper::getDefaultTimezone(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), SvNumberFormatter::GetEntry(), ScDocument::GetFormatTable(), SvNumberformat::GetLanguage(), SvNumberformat::GetMaskedType(), SvNumberFormatter::GetNullDate(), ScDocument::GetNumberFormat(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetStandardFormat(), ScInputHandler::GetTableView(), tools::Time::GetTimeInDays(), ScInputHandler::GetTopView(), ScDocShell::GetUndoManager(), ScDocument::GetValue(), SfxLokHelper::getView(), ScTabView::GetViewData(), ScViewData::GetViewShell(), SfxViewShell::GetViewShellId(), SfxLokHelper::getViewTimezone(), EditView::InsertText(), comphelper::LibreOfficeKit::isActive(), ScInputHandler::IsInputMode(), SfxUndoManager::LeaveListAction(), NONE, SAL_WARN, SC_MOD, SetNumberFormat(), ScViewData::SetPasteMode(), comphelper::LibreOfficeKit::setTimezone(), ScDocFunc::SetValueCell(), DateTime::Sub(), Date::SYSTEM, DateTime::SYSTEM, tools::Time::SYSTEM, ScTabView::UpdateCopySourceOverlay(), and ScViewData::UpdateInputHandler().

Referenced by ScCellShell::ExecuteEdit().

◆ InsertName()

bool ScViewFunc::InsertName ( const OUString &  rName,
const OUString &  rSymbol,
const OUString &  rType 
)

◆ InsertNameList()

void ScViewFunc::InsertNameList ( )

◆ InsertPageBreak()

void ScViewFunc::InsertPageBreak ( bool  bColumn,
bool  bRecord = true,
const ScAddress pPos = nullptr,
bool  bSetModified = true 
)

◆ InsertSpecialChar()

void ScViewFunc::InsertSpecialChar ( const OUString &  rStr,
const vcl::Font rFont 
)

◆ InsertTable()

bool ScViewFunc::InsertTable ( const OUString &  rName,
SCTAB  nTabNr,
bool  bRecord = true 
)

◆ InsertTableLink()

void ScViewFunc::InsertTableLink ( const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOptions,
std::u16string_view  rTabName 
)

◆ InsertTables()

void ScViewFunc::InsertTables ( std::vector< OUString > &  aNames,
SCTAB  nTab,
SCTAB  nCount,
bool  bRecord = true 
)

◆ LinkBlock()

bool ScViewFunc::LinkBlock ( const ScRange rSource,
const ScAddress rDestPos 
)

◆ MakeScenario()

void ScViewFunc::MakeScenario ( const OUString &  rName,
const OUString &  rComment,
const Color rColor,
ScScenarioFlags  nFlags 
)

◆ MarkAndJumpToRanges()

void ScViewFunc::MarkAndJumpToRanges ( const ScRangeList rRanges)
private

◆ MergeCells()

bool ScViewFunc::MergeCells ( bool  bApi,
bool &  rDoContents,
bool  bCenter 
)

◆ ModifyCellSize()

void ScViewFunc::ModifyCellSize ( ScDirection  eDir,
bool  bOptimal 
)

◆ MoveBlockTo()

bool ScViewFunc::MoveBlockTo ( const ScRange rSource,
const ScAddress rDestPos,
bool  bCut 
)

◆ MoveTable()

void ScViewFunc::MoveTable ( sal_uInt16  nDestDocNo,
SCTAB  nDestTab,
bool  bCopy,
const OUString *  pNewTabName = nullptr 
)

Definition at line 2846 of file viewfun2.cxx.

References SfxUndoManager::AddUndoAction(), ScChartHelper::AdjustRangesOfChartsOnDestinationPage(), aName, ScDocument::BeginDrawUndo(), bVisible, SfxUndoManager::Clear(), SdrMarkView::ClearPageView(), ScDocument::CreateValidTabName(), ScDocument::DeleteTab(), DeleteTables(), vcl::Window::EnterWait(), ScTabView::ErrorMessage(), SfxDispatcher::ExecuteList(), Extras, ScDocShell::GetBestViewShell(), ScViewData::GetDispatcher(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetDocument(), ScDocument::GetDrawLayer(), SfxViewFrame::GetFrame(), ScTabView::GetFrameWin(), ScViewData::GetMarkData(), ScDocument::GetName(), SfxViewFrame::GetObjectShell(), ScTabView::GetScDrawView(), ScDocument::GetScenarioData(), ScMarkData::GetSelectCount(), ScDocShell::GetShellByNum(), ScDocument::GetTable(), ScDocument::GetTableCount(), ScMarkData::GetTableSelect(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, i, ScDocument::InsertTab(), ScDocument::IsActiveScenario(), ScDocument::IsChartListenerCollectionNeedsUpdate(), ScDocument::IsScenario(), ScDocument::IsUndoEnabled(), ScDocument::IsVisible(), vcl::Window::LeaveWait(), Left, ScDocShell::MakeDrawLayer(), ScClipParam::maRanges, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScDocShell::MoveTable(), n, ScDocShell::PostPaint(), ScDocShell::PostPaintExtras(), ScDocShell::PostPaintGridAll(), ScRangeList::push_back(), ScDocument::RenameTab(), SC_DOC_NEW, SC_TAB_APPEND, SC_TAB_DELETED, SC_TAB_INSERTED, SC_TABS_INSERTED, ScDocument::SetActiveScenario(), ScDocument::SetClipParam(), ScDocShell::SetDocumentModified(), ScDocument::SetScenario(), ScDocument::SetScenarioData(), ScTabView::SetTabNo(), ScDocument::SetVisible(), SfxGetpApp(), Size, sName, STRING_SCAPP, ScTabView::TabChanged(), Top, ScDocShell::TransferTab(), and ScDocument::UpdateChartListenerCollection().

Referenced by ScTabControl::ExecuteDrop(), and ScTabViewShell::ExecuteTable().

◆ OnLOKInsertDeleteColumn()

void ScViewFunc::OnLOKInsertDeleteColumn ( SCCOL  nStartCol,
tools::Long  nOffset 
)

◆ OnLOKInsertDeleteRow()

void ScViewFunc::OnLOKInsertDeleteRow ( SCROW  nStartRow,
tools::Long  nOffset 
)

◆ OnLOKSetWidthOrHeight()

void ScViewFunc::OnLOKSetWidthOrHeight ( SCCOLROW  nStart,
bool  bWidth 
)

◆ PasteBitmapEx()

bool ScViewFunc::PasteBitmapEx ( const Point rPos,
const BitmapEx rBmpEx 
)

Definition at line 372 of file viewfun7.cxx.

References PasteGraphic().

Referenced by PasteDataFormat().

◆ PasteBookmark()

bool ScViewFunc::PasteBookmark ( SotClipboardFormatId  nFormatId,
const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable,
SCCOL  nPosX,
SCROW  nPosY 
)

◆ PasteDataFormat()

bool ScViewFunc::PasteDataFormat ( SotClipboardFormatId  nFormatId,
const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable,
SCCOL  nPosX,
SCROW  nPosY,
const Point pLogicPos,
bool  bLink = false,
bool  bAllowDialogs = false 
)

possible?

Definition at line 78 of file viewfun5.cxx.

References ADDR_ABS_3D, Point::AdjustX(), Point::AdjustY(), ScRange::aEnd, ALL, aName, aProperties, ScRange::aStart, svx::OColumnTransferable::canExtractColumnDescriptor(), svx::ODataAccessObjectTransferable::canExtractObjectDescriptor(), tools::SvRef< typename T >::clear(), ScTabView::ClickCursor(), o3tl::convert(), ScDocument::CopyToClip(), FileList::Count(), ScAbstractDialogFactory::Create(), FmFormView::CreateFieldControl(), svx::ODataAccessDescriptor::createPropertyValueSequence(), ScAbstractDialogFactory::CreateScImportAsciiDlg(), ScAbstractDialogFactory::CreateScTextImportOptionsDlg(), SfxViewShell::Current(), EIF_AUTO, ERRCODE_NONE, ScTabView::ErrorMessage(), SfxDispatcher::ExecuteList(), svx::OColumnTransferable::extractColumnDescriptor(), svx::ODataAccessObjectTransferable::extractObjectDescriptor(), ScAddress::Format(), ScFormatFilter::Get(), ScTabView::GetActiveWin(), ScDocument::GetAddressConvention(), TransferableDataHelper::GetBitmapEx(), ScDocument::GetCellArea(), ScDocument::GetColWidth(), TransferableDataHelper::GetDataFlavorExVector(), ScDocument::GetDataStart(), ScDocShell::GetDBData(), ScViewData::GetDispatcher(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetDrawLayer(), SfxObjectShell::GetEmbeddedObjectContainer(), ScDocument::GetExtDocOptions(), FileList::GetFile(), TransferableDataHelper::GetFileList(), SotExchange::GetFormatDataFlavor(), vcl::Window::GetFrameWeld(), TransferableDataHelper::GetGDIMetaFile(), TransferableDataHelper::GetGraphic(), TransferableDataHelper::GetInputStream(), SfxMedium::GetItemSet(), ScDBData::GetName(), SdrObjList::GetObjCount(), SfxViewShell::GetObjectShell(), SdrModel::GetPage(), SdrModel::GetPageCount(), ScDocument::GetPrintArea(), ScDocument::GetRowHeight(), ScTabView::GetScDrawView(), SdrPaintView::GetSdrPageView(), ScDocument::GetSheetLimits(), tools::Rectangle::GetSize(), TransferableDataHelper::GetSotStorageStream(), comphelper::OStorageHelper::GetStorageFromInputStream(), TransferableDataHelper::GetString(), ScViewData::GetTabNo(), ScExtDocOptions::GetTabSettings(), comphelper::OStorageHelper::GetTemporaryStorage(), TransferableDataHelper::GetTransferableObjectDescriptor(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDocument::GetVisibleTab(), TransferableDataHelper::HasFormat(), ScDrawLayer::HasObjects(), ScDocument::HasTable(), Size::Height(), i, INS_NONE, comphelper::EmbeddedObjectContainer::InsertEmbeddedObject(), ScDrawView::InsertObjectSafe(), ScTabView::InvalidateAttribs(), comphelper::LibreOfficeKit::isActive(), comphelper::Automation::AutomationInvokedZone::isActive(), ScImportExport::IsFormatSupported(), SfxViewShell::isLOKMobilePhone(), ScDocument::IsNegativePage(), ScRange::IsValid(), Keep, TransferableObjectDescriptor::maClassName, ScTabView::MakeDrawLayer(), TransferableObjectDescriptor::maSize, ScExtTabSettings::maUsedArea, o3tl::mm100, TransferableObjectDescriptor::mnViewAspect, ScTabView::MoveCursorAbs(), SdrObject::NbcSetLayer(), nCount, SdrObjListIter::Next(), NONE, PasteBitmapEx(), PasteBookmark(), PasteDraw(), PasteFile(), PasteFromClip(), PasteGraphic(), PasteLink(), PasteMetaFile(), PasteObject(), PasteRTF(), pObject, SfxItemSet::Put(), TypeSerializer::readGraphic(), ScDocument::ResetClip(), RET_OK, SC_DB_OLD, SC_FOLLOW_NONE, SC_LAYER_CONTROLS(), SC_LAYER_FRONT(), SC_MOD, SC_PASTETEXT, SCDOCMODE_CLIP, ScFormatFilterPlugin::ScImportExcel(), ScMarkData::SelectOneTable(), ScDocument::SetClipArea(), ScGlobal::SetClipDocName(), ScTabView::SetCursor(), ScAsciiOptions::SetDetectScientificNumber(), ScAsciiOptions::SetDetectSpecialNumber(), ScTabViewShell::SetDrawShell(), ScAsciiOptions::SetLanguage(), ScDocument::SetPastingDrawFromOtherDoc(), tools::Rectangle::SetPos(), ScAddress::SetTab(), Point::setX(), Point::setY(), SFX_TITLE_FULLNAME, SO3_SC_CLASSID_60, SvxDrawingLayerImport(), o3tl::twip, u, SdrOle2Obj::Unload(), ScTabView::Unmark(), ScViewData::UpdateInputHandler(), Size::Width(), Point::X(), xStream, and Point::Y().

Referenced by ScGridWindow::ExecuteDrop(), PasteFromSystem(), PasteFromTransferable(), and ScGridWindow::PasteSelection().

◆ PasteDraw() [1/2]

void ScViewFunc::PasteDraw ( )

◆ PasteDraw() [2/2]

void ScViewFunc::PasteDraw ( const Point rLogicPos,
SdrModel pModel,
bool  bGroup,
std::u16string_view  rSrcShellID,
std::u16string_view  rDestShellID 
)

merge with FuText::MakeOutliner?

Definition at line 74 of file viewfun7.cxx.

References SdrEditView::AddUndo(), aDragStartDiff, SdrEditView::BegUndo(), bPasteIsMove, SdrObject::CloneSdrObject(), ScStyleSheetPool::CopyUsedGraphicStylesFrom(), ScChartHelper::CreateProtectedChartListenersAndNotify(), SdrView::DeleteMarked(), SdrEditView::EndUndo(), ScDocument::EnsureGraphicNames(), SdrMarkList::ForceSort(), ScTabView::GetActiveWin(), SdrMarkView::GetAllMarkedRect(), ScChartHelper::GetChartNames(), ScTabViewShell::GetClipData(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScModule::GetDragData(), ScDrawTransferObj::GetDragSourceView(), ScDocument::GetDrawLayer(), SfxViewShell::GetIPClient(), OutputDevice::GetMapMode(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrPaintView::GetModel(), ScDocShell::GetModel(), ScDrawTransferObj::GetOwnClipboard(), SdrPageView::GetPage(), SdrModel::GetPage(), ScDrawTransferObj::GetProtectedChartRangesVector(), SdrModel::GetRefDevice(), ScTabView::GetScDrawView(), SdrPaintView::GetSdrPageView(), tools::Rectangle::GetSize(), SdrModel::GetStyleSheetPool(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetViewShell(), SdrEditView::GroupMarked(), SdrObjList::InsertObject(), ScDrawLayer::IsCellAnchored(), ScDocument::IsNegativePage(), SfxInPlaceClient::IsObjectInPlaceActive(), ScDrawLayer::IsResizeWithCell(), lcl_AdjustInsertPos(), ScTabView::MakeDrawLayer(), SdrMarkView::MarkAllObj(), ScDrawView::MarkListHasChanged(), SdrEditView::MoveAllMarked(), SdrObjListIter::Next(), E3dView::Paste(), ScDragData::pDrawTransfer, pObject, SC_LAYER_CONTROLS(), SC_MOD, ScResId(), ScDrawLayer::SetCellAnchoredFromPosition(), OutputDevice::SetMapMode(), ScDocument::SetPastingDrawFromOtherDoc(), Point::setX(), Point::setY(), SdrObjEditView::ShowSdrPage(), tools::Rectangle::TopLeft(), Point::X(), and Point::Y().

◆ PasteFile()

bool ScViewFunc::PasteFile ( const Point rPos,
const OUString &  rFile,
bool  bLink 
)

◆ PasteFromClip()

bool ScViewFunc::PasteFromClip ( InsertDeleteFlags  nFlags,
ScDocument pClipDoc,
ScPasteFunc  nFunction = ScPasteFunc::NONE,
bool  bSkipEmptyCells = false,
bool  bTranspose = false,
bool  bAsLink = false,
InsCellCmd  eMoveMode = INS_NONE,
InsertDeleteFlags  nUndoExtraFlags = InsertDeleteFlags::NONE,
bool  bAllowDialogs = false 
)

check overlapping just check truly intersection !!!!!!!

remove block-range on RefUndoDoc !!!

Definition at line 871 of file viewfun3.cxx.

References SfxUndoManager::AddUndoAction(), AdjustBlockHeight(), ScRange::aEnd, ALL, ScRange::aStart, ATTR_MERGE(), ATTR_MERGE_FLAG(), ATTRIB, ScUndoPasteOptions::bAsLink, ScDocument::BeginDrawUndo(), ScUndoPasteOptions::bSkipEmptyCells, ScUndoPasteOptions::bTranspose, ScAddress::Col(), CONTENTS, ScDocument::CopyFromClip(), ScDocument::CopyToDocument(), ScDocument::CopyUpdated(), Application::CreateMessageDialog(), ScChartHelper::CreateProtectedChartListenersAndNotify(), ScTabView::DoneBlockMode(), ScUndoPasteOptions::eMoveMode, SfxUndoManager::EnterListAction(), ScTabView::ErrorMessage(), ScDocument::ExtendMerge(), ScDocument::ExtendMergeSel(), ScDocument::ExtendOverlapped(), ScMarkData::FillRangeListWithMarks(), ScViewUtil::FitToUnfilteredRows(), FORMULA, tools::SvRef< typename T >::get(), ScDocument::GetChangeTrack(), ScChartHelper::GetChartNames(), ScDocument::GetClipArea(), ScDocument::GetClipParam(), ScDocument::GetClipStart(), ScAddress::GetColRowString(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetDocumentID(), ScDocument::GetDrawLayer(), ScTabView::GetFrameWin(), ScPatternAttr::GetItem(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), SdrPaintView::GetModel(), ScDocShell::GetModel(), ScDocAttrIterator::GetNext(), SdrModel::GetPage(), ScTabView::GetScDrawView(), ScViewData::GetSimpleArea(), ScClipParam::getSourceDocID(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScRange::GetVars(), ScTabView::GetViewData(), Grid, ScDocument::HasClipFilteredRows(), ScViewUtil::HasFiltered(), ScDocument::HasTable(), i, ScTabView::InitOwnBlockMode(), INS_NONE, InsertCells(), ScViewData::IsActive(), ScDocument::IsCutMode(), ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMergeAttr::IsMerged(), ScMarkData::IsMultiMarked(), ScClipParam::isMultiRange(), ScMergeFlagAttr::IsOverlapped(), ScDocument::IsUndoEnabled(), lcl_SelHasAttrib(), SfxUndoManager::LeaveListAction(), Left, ScDocShell::MakeDrawLayer(), ScClipParam::maProtectedChartRangesVector, ScTabView::MarkDataChanged(), ScTabView::MarkRange(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScDocument::MixDocument(), ScUndoPasteOptions::nFunction, NOCAPTIONS, NONE, NOTE, OBJECTS, Overlapped, PasteFromClipToMultiRanges(), PasteMultiRangesFromClip(), ScDocShell::PostPaint(), PostPasteFromClip(), ScDocument::RefreshAutoFilter(), ScTabView::ResetAutoSpellForContentChange(), ScChangeTrack::ResetLastCut(), RET_NO, RET_YES, ScAddress::Row(), SC_MARK_SIMPLE, SC_MARK_SIMPLE_FILTERED, SC_MOD, SCDOCMODE_CLIP, SCDOCMODE_UNDO, ScResId(), ScAddress::SetCol(), ScDocument::SetCutMode(), ScDocShellModificator::SetDocumentModified(), ScDrawLayer::SetGlobalDrawPersist(), ScMarkData::SetMarkArea(), ScRangeList::size(), Top, ScDocument::TransposeClip(), ScViewUtil::UnmarkFiltered(), ScDocFunc::UnmergeCells(), ScDocShell::UpdatePaintExt(), ScDocument::UpdateTranspose(), ScDocument::ValidCol(), and ScDocument::ValidRow().

Referenced by ScGridWindow::DropTransferObj(), EnterBlock(), ScCellShell::ExecuteEdit(), ooo::vba::excel::implnPasteSpecial(), LinkBlock(), ScGridWindow::MouseButtonUp(), PasteDataFormat(), ScClipUtil::PasteFromClipboard(), PasteFromSystem(), PasteFromTransferable(), ScUndoPaste::Repeat(), and ScDBFunc::ShowDataPilotSourceData().

◆ PasteFromClipToMultiRanges()

bool ScViewFunc::PasteFromClipToMultiRanges ( InsertDeleteFlags  nFlags,
ScDocument pClipDoc,
ScPasteFunc  nFunction,
bool  bSkipEmptyCells,
bool  bTranspose,
bool  bAsLink,
bool  bAllowDialogs,
InsCellCmd  eMoveMode,
InsertDeleteFlags  nUndoFlags 
)
private

◆ PasteFromSystem() [1/2]

void ScViewFunc::PasteFromSystem ( )

◆ PasteFromSystem() [2/2]

bool ScViewFunc::PasteFromSystem ( SotClipboardFormatId  nFormatId,
bool  bApi = false 
)

◆ PasteFromTransferable()

void ScViewFunc::PasteFromTransferable ( const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable)

◆ PasteGraphic()

bool ScViewFunc::PasteGraphic ( const Point rPos,
const Graphic rGraphic,
const OUString &  rFile 
)

◆ PasteLink()

bool ScViewFunc::PasteLink ( const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable)

◆ PasteMetaFile()

bool ScViewFunc::PasteMetaFile ( const Point rPos,
const GDIMetaFile rMtf 
)

Definition at line 378 of file viewfun7.cxx.

References PasteGraphic().

Referenced by PasteDataFormat().

◆ PasteMultiRangesFromClip()

bool ScViewFunc::PasteMultiRangesFromClip ( InsertDeleteFlags  nFlags,
ScDocument pClipDoc,
ScPasteFunc  nFunction,
bool  bSkipEmptyCells,
bool  bTranspose,
bool  bAsLink,
bool  bAllowDialogs,
InsCellCmd  eMoveMode,
InsertDeleteFlags  nUndoFlags 
)
private

Definition at line 1465 of file viewfun3.cxx.

References SfxUndoManager::AddUndoAction(), AdjustBlockHeight(), ScRange::aEnd, ScRange::aStart, ScUndoPasteOptions::bAsLink, ScDocument::BeginDrawUndo(), ScUndoPasteOptions::bSkipEmptyCells, ScUndoPasteOptions::bTranspose, ScAddress::Col(), CONTENTS, ScDocument::CopyMultiRangeFromClip(), ScDocument::CopyToDocument(), ScUndoPasteOptions::eMoveMode, SfxUndoManager::EnterListAction(), ScTabView::ErrorMessage(), ScViewUtil::FitToUnfilteredRows(), FORMULA, ScDocument::GetClipParam(), ScViewData::GetCurPos(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScMarkData::GetFirstSelected(), ScMarkData::GetLastSelected(), ScViewData::GetMarkData(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScViewUtil::HasFiltered(), INS_NONE, InsertCells(), ScDocument::IsCutMode(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), Left, ScDocShell::MakeDrawLayer(), ScTabView::MarkRange(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScDocument::MixDocument(), ScUndoPasteOptions::nFunction, NONE, OBJECTS, ScDocShell::PostPaint(), PostPasteFromClip(), ScTabView::ResetAutoSpellForContentChange(), ScAddress::Row(), SC_MOD, SCDOCMODE_CLIP, SCDOCMODE_UNDO, ScResId(), ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarkArea(), ScAddress::SetTab(), ScDocument::TransposeClip(), ScDocument::ValidCol(), and ScDocument::ValidRow().

Referenced by PasteFromClip().

◆ PasteObject()

bool ScViewFunc::PasteObject ( const Point ,
const css::uno::Reference< css::embed::XEmbeddedObject > &  ,
const Size ,
const Graphic = nullptr,
const OUString &  = OUString(),
sal_Int64  nAspect = css::embed::Aspects::MSOLE_CONTENT 
)

◆ PasteOnDrawObjectLinked()

bool ScViewFunc::PasteOnDrawObjectLinked ( const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable,
SdrObject rHitObj 
)

◆ PasteRTF()

void ScViewFunc::PasteRTF ( SCCOL  nCol,
SCROW  nStartRow,
const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable 
)
private

◆ PostPasteFromClip()

void ScViewFunc::PostPasteFromClip ( const ScRangeList rPasteRanges,
const ScMarkData rMark 
)
private

◆ ProtectDoc()

void ScViewFunc::ProtectDoc ( const OUString &  rPassword)

◆ ProtectSheet()

void ScViewFunc::ProtectSheet ( SCTAB  nTab,
const ScTableProtection rProtect 
)

◆ RemoveManualBreaks()

void ScViewFunc::RemoveManualBreaks ( )

◆ RemoveMerge()

bool ScViewFunc::RemoveMerge ( )

◆ RemoveStyleSheetInUse()

void ScViewFunc::RemoveStyleSheetInUse ( const SfxStyleSheetBase pStyleSheet)

◆ RenameTable()

bool ScViewFunc::RenameTable ( const OUString &  rName,
SCTAB  nTabNr 
)

◆ ReplaceNote()

void ScViewFunc::ReplaceNote ( const ScAddress rPos,
const OUString &  rNoteText,
const OUString *  pAuthor,
const OUString *  pDate 
)

◆ SearchAndReplace()

bool ScViewFunc::SearchAndReplace ( const SvxSearchItem pSearchItem,
bool  bAddUndo,
bool  bIsApi 
)

at least one is always selected

account for bAttrib during Undo !!!

select all, after pUndoMark has been created

otherwise now one table more might be selected

Definition at line 1942 of file viewfun2.cxx.

References SfxUndoManager::AddUndoAction(), ScTabView::AlignToCursor(), ScRange::aStart, ScMarkData::begin(), SfxViewFrame::Current(), ScTabView::DoneBlockMode(), ScMarkData::end(), vcl::Window::EnterWait(), sc::SearchResultsDlg::FillResults(), ScViewData::GetActiveWin(), SvxSearchItem::GetBackward(), ScGridWindow::GetCellSelection(), SvxSearchItem::GetCellType(), SfxViewFrame::GetChildWindow(), SvxSearchItem::GetCommand(), SfxChildWindow::GetController(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetFirstSelected(), ScTabView::GetFrameWin(), ScMarkData::GetLastSelected(), ScViewData::GetMarkData(), ScViewOptions::GetOption(), ScViewData::GetOptions(), ScViewData::GetPosFromPixel(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), SvxSearchItem::GetReplaceString(), ScViewData::GetScrPos(), ScDocument::GetSearchAndReplaceStart(), ScGlobal::GetSearchItem(), SvxSearchItem::GetSearchString(), SvxSearchItem::GetStartPointX(), SvxSearchItem::GetStartPointY(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScViewData::GetViewShell(), Grid, SvxSearchItem::HasStartPoint(), i, ScTabView::InitOwnBlockMode(), comphelper::LibreOfficeKit::isActive(), SvxSearchItem::IsAllTables(), ScDocument::IsEmptyCellSearch(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), vcl::Window::LeaveWait(), SfxViewShell::libreOfficeKitViewCallback(), ScTabView::MarkDataChanged(), n, ScDocShell::PostPaint(), ScDocShell::PostPaintGridAll(), ScMarkData::ResetMark(), SC_FOLLOW_JUMP, SCDOCMODE_UNDO, ScDocument::SearchAndReplace(), ScMarkData::SelectTable(), ScGridWindow::SetCellSelectionPixel(), SvxSearchItem::SetCommand(), ScTabView::SetCursor(), ScDocShell::SetDocumentModified(), ScMarkData::SetMultiMarkArea(), SvxSearchDialogWrapper::SetSearchLabel(), ScTabView::SetTabNo(), SfxViewShell::setTiledSearching(), SfxPoolItem::SetWhich(), SfxViewFrame::ShowChildWindow(), ScRangeList::size(), stringstream, ScAddress::Tab(), ScTable::UpdateSearchItemAddressForReplace(), VOPT_SUMMARY, Point::X(), and Point::Y().

Referenced by ScTabViewShell::ExecSearch(), and ScUndoReplace::Redo().

◆ SelectionEditable()

bool ScViewFunc::SelectionEditable ( bool *  pOnlyNotBecauseOfMatrix = nullptr)

◆ SetMarkedWidthOrHeight()

void ScViewFunc::SetMarkedWidthOrHeight ( bool  bWidth,
ScSizeMode  eMode,
sal_uInt16  nSizeTwips 
)

◆ SetNoteText()

void ScViewFunc::SetNoteText ( const ScAddress rPos,
const OUString &  rNoteText 
)

◆ SetNumberFormat()

void ScViewFunc::SetNumberFormat ( SvNumFormatType  nFormatType,
sal_uLong  nAdd = 0 
)

◆ SetNumFmtByStr()

void ScViewFunc::SetNumFmtByStr ( const OUString &  rCode)

◆ SetPrintRanges()

void ScViewFunc::SetPrintRanges ( bool  bEntireSheet,
const OUString *  pPrint,
const OUString *  pRepCol,
const OUString *  pRepRow,
bool  bAddPrint 
)

◆ SetPrintZoom()

void ScViewFunc::SetPrintZoom ( sal_uInt16  nScale)

◆ SetSelectionFrameLines()

void ScViewFunc::SetSelectionFrameLines ( const ::editeng::SvxBorderLine pLine,
bool  bColorOnly 
)

◆ SetStyleSheetToMarked()

void ScViewFunc::SetStyleSheetToMarked ( const SfxStyleSheet pStyleSheet)

◆ SetTabBgColor() [1/2]

bool ScViewFunc::SetTabBgColor ( const Color rColor,
SCTAB  nTabNr 
)

◆ SetTabBgColor() [2/2]

bool ScViewFunc::SetTabBgColor ( ScUndoTabColorInfo::List rUndoSetTabBgColorInfoList)

◆ SetValidation()

void ScViewFunc::SetValidation ( const ScValidationData rNew)

◆ SetWidthOrHeight()

void ScViewFunc::SetWidthOrHeight ( bool  bWidth,
const std::vector< sc::ColRowSpan > &  rRanges,
ScSizeMode  eMode,
sal_uInt16  nSizeTwips,
bool  bRecord = true,
const ScMarkData pMarkData = nullptr 
)

outlines from all tab?

Definition at line 2159 of file viewfunc.cxx.

References SfxUndoManager::AddUndoAction(), ScDocument::BeginDrawUndo(), ScDocument::ColHidden(), COLUMN_HEADER, ScDocument::CopyToDocument(), eMode, ScTabView::ErrorMessage(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScSizeDeviceProvider::GetDevice(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetFirstSelected(), ScDocShell::GetModel(), HelperNotifyChanges::getMustPropagateChangesModel(), GetOptimalColWidth(), ScViewOptions::GetOption(), ScViewData::GetOptions(), ScDocument::GetOutlineTable(), ScSizeDeviceProvider::GetPPTX(), ScViewData::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScViewData::GetPPTY(), ScDocument::GetRowFlags(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScViewData::GetView(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, ScDocument::HasAttrib(), ScSizeDeviceProvider::IsPrinter(), SfxObjectShell::IsReadOnly(), ScDocument::IsUndoEnabled(), Left, ManualSize, ScMarkData::MarkToMulti(), ScDocument::MaxCol(), ScDocument::MaxRow(), Merged, ScTabView::MoveCursorRel(), NONE, HelperNotifyChanges::Notify(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nPPTX, nPPTY, OnLOKSetWidthOrHeight(), Overlapped, ScDocShell::PostPaint(), ScRangeList::push_back(), ScTabView::RefreshZoom(), ROW_HEADER, ScDocument::RowFiltered(), ScDocument::RowHidden(), SC_FOLLOW_LINE, SC_SIZE_DIRECT, SC_SIZE_OPTIMAL, SC_SIZE_ORIGINAL, SC_SIZE_SHOW, SC_SIZE_VISOPT, SCDOCMODE_UNDO, ScDocument::SetColWidth(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetDrawPageSize(), sc::RowHeightContext::setExtraHeight(), sc::RowHeightContext::setForceAutoSize(), ScDocument::SetManualHeight(), ScDocument::SetOptimalHeight(), ScDocument::SetRowFlags(), ScDocument::SetRowHeightRange(), ScDocument::ShowCol(), ShowFilteredRows(), ScDocument::ShowRows(), Top, ScDocShell::UpdateOle(), ScDocument::UpdateOutlineCol(), ScDocument::UpdateOutlineRow(), ScDocument::UpdatePageBreaks(), ScTabView::UpdateScrollBars(), and VOPT_FORMULAS.

Referenced by ScCellShell::Execute(), ScColBar::HideEntries(), ScRowBar::HideEntries(), ModifyCellSize(), ScUndoWidthOrHeight::Redo(), ScColBar::SetEntrySize(), ScRowBar::SetEntrySize(), and SetMarkedWidthOrHeight().

◆ ShowNote()

void ScViewFunc::ShowNote ( bool  bShow)

◆ ShowTable()

void ScViewFunc::ShowTable ( const std::vector< OUString > &  rNames)

◆ Solve()

void ScViewFunc::Solve ( const ScSolveParam rParam)

◆ StartFormatArea()

void ScViewFunc::StartFormatArea ( )
private

◆ TabOp()

void ScViewFunc::TabOp ( const ScTabOpParam rParam,
bool  bRecord = true 
)

◆ TestFormatArea()

bool ScViewFunc::TestFormatArea ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
bool  bAttrChanged 
)
private

◆ TestMergeCells()

bool ScViewFunc::TestMergeCells ( )

◆ TestRemoveMerge()

bool ScViewFunc::TestRemoveMerge ( )

◆ TransliterateText()

void ScViewFunc::TransliterateText ( TransliterationFlags  nType)

◆ Unprotect()

bool ScViewFunc::Unprotect ( SCTAB  nTab,
const OUString &  rPassword 
)

◆ UpdateLineAttrs()

void ScViewFunc::UpdateLineAttrs ( ::editeng::SvxBorderLine rLine,
const ::editeng::SvxBorderLine pDestLine,
const ::editeng::SvxBorderLine pSrcLine,
bool  bColor 
)
staticprotected

Definition at line 3321 of file viewfun2.cxx.

Referenced by SetSelectionFrameLines().

◆ UpdateSelectionArea()

void ScViewFunc::UpdateSelectionArea ( const ScMarkData rSel,
ScPatternAttr pAttr = nullptr 
)

◆ UpdateStyleSheetInUse()

void ScViewFunc::UpdateStyleSheetInUse ( const SfxStyleSheetBase pStyleSheet)

◆ UseScenario()

void ScViewFunc::UseScenario ( const OUString &  rName)

Member Data Documentation

◆ aFormatArea

ScRange ScViewFunc::aFormatArea
private

Definition at line 74 of file viewfunc.hxx.

Referenced by StartFormatArea(), and TestFormatArea().

◆ aFormatSource

ScAddress ScViewFunc::aFormatSource
private

Definition at line 73 of file viewfunc.hxx.

Referenced by DoAutoAttributes(), StartFormatArea(), and TestFormatArea().

◆ bFormatValid

bool ScViewFunc::bFormatValid
private

Definition at line 75 of file viewfunc.hxx.

Referenced by DeleteContents(), StartFormatArea(), and TestFormatArea().


The documentation for this class was generated from the following files: