LibreOffice Module sc (master) 1
|
#include <viewfunc.hxx>
Public Member Functions | |
ScViewFunc (vcl::Window *pParent, ScDocShell &rDocSh, ScTabViewShell *pViewShell) | |
~ScViewFunc () | |
SC_DLLPUBLIC const ScPatternAttr * | GetSelectionPattern () |
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< ScTransferObj > | CopyToTransferable () |
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 SfxStyleSheet * | GetStyleSheetFromMarked () |
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) |
ScAutoFormatData * | CreateAutoFormatData () |
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 ScTabView & | operator= (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) |
FuPoor * | GetDrawFuncPtr () |
FuPoor * | GetDrawFuncOldPtr () |
void | DrawDeselectAll () |
void | DrawMarkListHasChanged () |
void | UpdateAnchorHandles () |
ScPageBreakData * | GetPageBreakData () |
const std::vector< ScHighlightEntry > & | GetHighlightRanges () const |
void | UpdatePageBreakData (bool bForcePaint=false) |
ScViewData & | GetViewData () |
const ScViewData & | GetViewData () const |
ScViewFunctionSet & | GetFunctionSet () |
ScViewSelectionEngine * | GetSelEngine () |
bool | SelMouseButtonDown (const MouseEvent &rMEvt) |
ScDrawView * | GetScDrawView () |
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) |
ScGridWindow * | GetActiveWin () |
vcl::Window * | GetWindowByPos (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::Window * | GetFrameWin () const |
bool | HasPaintBrush () const |
ScDocument * | GetBrushDocument () const |
SfxItemSet * | GetDrawBrushSet () 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) |
Definition at line 70 of file viewfunc.hxx.
ScViewFunc::ScViewFunc | ( | vcl::Window * | pParent, |
ScDocShell & | rDocSh, | ||
ScTabViewShell * | pViewShell | ||
) |
Definition at line 106 of file viewfunc.cxx.
ScViewFunc::~ScViewFunc | ( | ) |
Definition at line 112 of file viewfunc.cxx.
bool ScViewFunc::AdjustBlockHeight | ( | bool | bPaint = true , |
ScMarkData * | pMarkData = nullptr |
||
) |
Definition at line 115 of file viewfun2.cxx.
References ScViewData::GetCurY(), ScSizeDeviceProvider::GetDevice(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScMarkData::GetMarkedRowSpans(), ScSheetLimits::GetMaxColCount(), ScSizeDeviceProvider::GetPPTX(), ScViewData::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScViewData::GetPPTY(), ScDocument::GetSheetLimits(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, comphelper::LibreOfficeKit::isActive(), ScSizeDeviceProvider::IsPrinter(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nPPTX, nPPTY, OnLOKSetWidthOrHeight(), ScDocShell::PostPaint(), ROW_HEADER, ScDocument::SetDrawPageSize(), ScDocument::SetOptimalHeight(), ScDocShell::UpdateOle(), and ScDocument::UpdateScriptTypes().
Referenced by ApplyAttr(), ApplyAttributes(), ApplyUserItemSet(), ScUndoPaste::DoChange(), ScUndoCut::DoChange(), ScUndoSelectionAttr::DoChange(), ScUndoSelectionStyle::DoChange(), ScUndoDataForm::DoChange(), ScUndoCursorAttr::DoChange(), ScInputHandler::EnterHandler(), ScFormatShell::ExecuteTextDirection(), PasteFromClip(), PasteFromClipToMultiRanges(), PasteMultiRangesFromClip(), SetStyleSheetToMarked(), and UpdateSelectionArea().
void ScViewFunc::AdjustPrintZoom | ( | ) |
Definition at line 1035 of file viewfun2.cxx.
References ScDocShell::AdjustPrintZoom(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScMarkData::GetMultiMarkArea(), ScTabView::GetViewData(), and SC_MARK_SIMPLE.
Referenced by ScTabViewShell::Execute().
Definition at line 193 of file viewfun2.cxx.
References ScSizeDeviceProvider::GetDevice(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScSizeDeviceProvider::GetPPTX(), ScViewData::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScViewData::GetPPTY(), ScDocument::GetRowHeight(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, comphelper::LibreOfficeKit::isActive(), ScSizeDeviceProvider::IsPrinter(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nPPTX, nPPTY, OnLOKSetWidthOrHeight(), ScDocShell::PostPaint(), ROW_HEADER, ScDocument::SetDrawPageSize(), and ScDocument::SetOptimalHeight().
Referenced by CutToClip(), DeleteMulti(), ScUndoMerge::DoChange(), ScUndoDeleteContents::DoChange(), EnterData(), ModifyCellSize(), PasteRTF(), ScUndoRemoveMerge::Redo(), and ScUndoRemoveMerge::Undo().
bool ScViewFunc::AppendTable | ( | const OUString & | rName, |
bool | bRecord = true |
||
) |
Definition at line 2436 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::BeginDrawUndo(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScDocument::InsertTab(), ScViewData::InsertTab(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintExtras(), SC_TAB_APPEND, ScDocShell::SetDocumentModified(), ScTabView::SetTabNo(), and SfxGetpApp().
Referenced by ScTabViewShell::ExecuteTable(), and ScUndoInsertTab::Redo().
void ScViewFunc::ApplyAttr | ( | const SfxPoolItem & | rAttrItem, |
bool | bAdjustBlockHeight = true |
||
) |
Definition at line 1086 of file viewfunc.cxx.
References AdjustBlockHeight(), ApplySelectionPattern(), ATTR_HOR_JUSTIFY(), ScTabView::ErrorMessage(), ScPatternAttr::GetItemSet(), ScTabView::GetViewData(), SfxItemSet::Put(), SelectionEditable(), and SfxPoolItem::Which().
Referenced by ScFormatShell::ExecuteAlignment(), ScFormatShell::ExecuteAttr(), ScFormatShell::ExecuteTextAttr(), ScFormatShell::ExecuteTextDirection(), and SetValidation().
void ScViewFunc::ApplyAttributes | ( | const SfxItemSet * | pDialogSet, |
const SfxItemSet * | pOldSet, | ||
bool | bAdjustBlockHeight = true |
||
) |
Definition at line 974 of file viewfunc.cxx.
References AdjustBlockHeight(), ApplyPatternLines(), ApplySelectionPattern(), ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_FONT_LANGUAGE(), ATTR_LANGUAGE_FORMAT(), ATTR_VALUE_FORMAT(), SfxItemSet::ClearItem(), ScPatternAttr::DeleteUnchanged(), ScTabView::ErrorMessage(), SfxItemSet::Get(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), ScDocument::GetFormatTable(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), SvNumberformat::GetLanguage(), SfxItemSet::GetPool(), ScTabView::GetViewData(), SfxItemSet::HasItem(), IsStaticDefaultItem(), SvxBoxInfoItem::IsValid(), LANGUAGE_DONTKNOW, SfxItemSet::Put(), SfxItemPool::Put(), SfxItemPool::Remove(), ScTabView::ResetAutoSpell(), SelectionEditable(), SV_COUNTRY_LANGUAGE_OFFSET, and SV_MAX_COUNT_STANDARD_FORMATS.
Referenced by ScCellShell::Execute(), ScFormatShell::ExecuteAttr(), ScTabViewShell::ExecuteCellFormatDlg(), ScFormatShell::ExecuteNumFormat(), and SetSelectionFrameLines().
void ScViewFunc::ApplyPatternLines | ( | const ScPatternAttr & | rAttr, |
const SvxBoxItem & | rNewOuter, | ||
const SvxBoxInfoItem * | pNewInner | ||
) |
Definition at line 1114 of file viewfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScDocument::ApplySelectionFrame(), ScDocument::ApplySelectionPattern(), ScRange::aStart, ATTRIB, ScTabView::CellContentChanged(), ScAddress::Col(), ScDocument::CopyToDocument(), ScTabView::DoneBlockMode(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScMarkData::GetMarkArea(), ScMarkData::GetMultiMarkArea(), ScMarkData::GetSelectionCover(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScTabView::InitOwnBlockMode(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), SvxBoxItem::IsRemoveAdjacentCellBorder(), ScDocument::IsUndoEnabled(), ScTabView::MarkDataChanged(), ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), ScDocShell::PostPaint(), ScAddress::Row(), SC_PF_TESTMERGE, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarkArea(), ScAddress::SetTab(), StartFormatArea(), ScAddress::Tab(), ScViewUtil::UnmarkFiltered(), ScDocShell::UpdateOle(), and ScDocShell::UpdatePaintExt().
Referenced by ApplyAttributes(), and ScUndoSelectionAttr::Repeat().
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().
void ScViewFunc::ApplyUserItemSet | ( | const SfxItemSet & | rItemSet | ) |
Definition at line 1396 of file viewfunc.cxx.
References AdjustBlockHeight(), ApplySelectionPattern(), ScTabView::ErrorMessage(), ScPatternAttr::GetItemSet(), ScTabView::GetViewData(), SfxItemSet::Put(), and SelectionEditable().
Referenced by ScFormatShell::ExecuteAttr(), ScFormatShell::ExecuteTextAttr(), and InsertSpecialChar().
void ScViewFunc::AutoFormat | ( | sal_uInt16 | nFormatNo | ) |
Definition at line 1924 of file viewfun2.cxx.
References ScDocFunc::AutoFormat(), ScTabView::ErrorMessage(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScTabView::GetViewData(), SC_MARK_SIMPLE, and ScDocShell::UpdateOle().
Referenced by ScCellShell::Execute().
bool ScViewFunc::AutoSum | ( | const ScRange & | rRange, |
bool | bSubTotal, | ||
bool | bSetCursor, | ||
bool | bContinue, | ||
const OpCode | eCode | ||
) |
Definition at line 622 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DIR_LEFT, DIR_TOP, EnterData(), GetAutoSumFormula(), ScViewData::GetDocument(), ScTabView::GetViewData(), ScDocument::IsBlockEmpty(), lcl_GetAutoSumForColumnRange(), lcl_GetAutoSumForRowRange(), lcl_IsAutoSumData(), ScTabView::MarkRange(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScAddress::Row(), ScTabView::SetCursor(), and ScAddress::Tab().
Referenced by ScTabViewShell::DoAutoSum().
void ScViewFunc::ChangeIndent | ( | bool | bIncrement | ) |
Definition at line 2954 of file viewfunc.cxx.
References ScDocFunc::ChangeIndent(), ScViewData::GetBindings(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScViewData::GetTabNo(), ScTabView::GetViewData(), SfxBindings::Invalidate(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), ScMarkData::SetMultiMarkArea(), StartFormatArea(), ScViewUtil::UnmarkFiltered(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::ChangeNumFmtDecimals | ( | bool | bIncrement | ) |
SvNumberformat has a Member bStandard, but doesn't disclose it
Definition at line 2823 of file viewfunc.cxx.
References ApplySelectionPattern(), ATTR_VALUE_FORMAT(), ScTabView::ErrorMessage(), SvNumberFormatter::GenerateFormat(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetFormatDecimalSep(), SvNumberformat::GetFormatIntegerDigits(), SvNumberformat::GetFormatSpecialInfo(), ScDocument::GetFormatTable(), ScPatternAttr::GetItemSet(), SvNumberformat::GetLanguage(), ScDocument::GetNumberFormat(), ScDocument::GetPool(), SvNumberFormatter::GetStandardIndex(), ScViewData::GetTabNo(), SvNumberformat::GetType(), ScDocument::GetValue(), ScTabView::GetViewData(), i, nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, SfxItemSet::Put(), SvNumberFormatter::PutEntry(), rSet, SelectionEditable(), and u.
Referenced by ScFormatShell::ExecuteNumFormat().
void ScViewFunc::ConvertFormulaToValue | ( | ) |
Definition at line 1869 of file viewfun2.cxx.
References ScTabView::CellContentChanged(), ScDocFunc::ConvertFormulaToValue(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), Grid, ScDocShell::PostPaint(), and ScRange::PutInOrder().
Referenced by ScCellShell::ExecuteEdit().
|
private |
Definition at line 1517 of file viewfun2.cxx.
References CELLTYPE_EDIT, FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, ScTabView::GetActiveWin(), ScGridWindow::GetAutoSpellData(), ScDocument::GetCellType(), ScViewData::GetDocument(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScGridWindow::InsideVisibleRange(), nCount, ScGridWindow::ResetAutoSpellForContentChange(), and ScGridWindow::SetAutoSpellData().
Referenced by FillAuto(), and FillSimple().
bool ScViewFunc::CopyToClip | ( | ScDocument * | pClipDoc, |
bool | bCut, | ||
bool | bApi = false , |
||
bool | bIncludeObjects = false , |
||
bool | bStopEdit = true |
||
) |
Definition at line 168 of file viewfun3.cxx.
References ScRange::aEnd, ScRange::aStart, CopyToClip(), ScTabView::ErrorMessage(), ScMarkData::FillRangeListWithMarks(), ScAddress::GetColRowString(), ScViewData::GetMarkData(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), ScMarkData::MarkToSimple(), SC_MARK_MULTI, SC_MARK_SIMPLE, and SC_MARK_SIMPLE_FILTERED.
Referenced by ScViewFunctionSet::BeginDrag(), CopyToClip(), ScSelectionTransferObj::CreateCellData(), CutToClip(), ScFormatShell::ExecFormatPaintbrush(), ScCellShell::ExecuteEdit(), and ooo::vba::excel::implnCopy().
bool ScViewFunc::CopyToClip | ( | ScDocument * | pClipDoc, |
const ScRangeList & | rRange, | ||
bool | bCut, | ||
bool | bApi = false , |
||
bool | bIncludeObjects = false , |
||
bool | bStopEdit = true |
||
) |
Definition at line 201 of file viewfun3.cxx.
References CopyToClipMultiRange(), CopyToClipSingleRange(), ScRangeList::empty(), ScRangeList::size(), and ScTabView::UpdateInputLine().
bool ScViewFunc::CopyToClipMultiRange | ( | const ScDocument * | pClipDoc, |
const ScRangeList & | rRanges, | ||
bool | bCut, | ||
bool | bApi, | ||
bool | bIncludeObjects | ||
) |
Definition at line 306 of file viewfun3.cxx.
References ScClipParam::Column, ScDocument::CopyToClip(), ScTabView::ErrorMessage(), SfxObjectShell::FillTransferableObjectDescriptor(), ScRangeList::front(), get(), ScTabView::GetActiveWin(), ScDocument::GetChangeTrack(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), SfxObjectShell::GetMedium(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScTabView::GetViewData(), ScDocument::HasSelectedBlockMatrixFragment(), i, TransferableObjectDescriptor::maDisplayName, ScClipParam::maRanges, ScClipParam::mbCutMode, ScClipParam::meDirection, p, ScChangeTrack::ResetLastCut(), ScClipParam::Row, SCDOCMODE_CLIP, ScRangeList::size(), ScClipParam::Unspecified, and ScGlobal::xDrawClipDocShellRef.
Referenced by CopyToClip().
bool ScViewFunc::CopyToClipSingleRange | ( | ScDocument * | pClipDoc, |
const ScRangeList & | rRanges, | ||
bool | bCut, | ||
bool | bIncludeObjects | ||
) |
Definition at line 217 of file viewfun3.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToClip(), ScDocument::ExtendMerge(), ScChartHelper::FillProtectedChartRangesVector(), SfxObjectShell::FillTransferableObjectDescriptor(), get(), ScTabView::GetActiveWin(), ScDocument::GetChangeTrack(), ScDocument::GetClipParam(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetDocumentID(), ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), ScViewData::GetMarkData(), SfxObjectShell::GetMedium(), ScDocument::GetTableCount(), SfxObjectShell::GetTitle(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScTabView::GetViewData(), ScDocument::HasOLEObjectsInArea(), ScDocument::HasSelectedBlockMatrixFragment(), TransferableObjectDescriptor::maDisplayName, ScClipParam::maProtectedChartRangesVector, ScClipParam::maRanges, ScChangeTrack::ResetLastCut(), ScAddress::Row(), SCDOCMODE_CLIP, ScGlobal::SetClipDocName(), ScDocument::SetClipOptions(), ScTransferObj::SetDrawClipDoc(), ScDrawLayer::SetGlobalDrawPersist(), ScClipParam::setSourceDocID(), SFX_TITLE_FULLNAME, and ScGlobal::xDrawClipDocShellRef.
Referenced by CopyToClip().
rtl::Reference< ScTransferObj > ScViewFunc::CopyToTransferable | ( | ) |
Definition at line 430 of file viewfun3.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToClip(), SfxObjectShell::FillTransferableObjectDescriptor(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), SfxObjectShell::GetMedium(), ScViewData::GetSimpleArea(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScTabView::GetViewData(), ScDocument::HasOLEObjectsInArea(), ScDocument::HasSelectedBlockMatrixFragment(), TransferableObjectDescriptor::maDisplayName, ScAddress::Row(), SC_MARK_SIMPLE, SC_MARK_SIMPLE_FILTERED, SCDOCMODE_CLIP, ScTransferObj::SetDrawClipDoc(), and ScDrawLayer::SetGlobalDrawPersist().
Referenced by ScTabViewObj::getTransferable().
ScAutoFormatData * ScViewFunc::CreateAutoFormatData | ( | ) |
Definition at line 1903 of file viewfun2.cxx.
References ScDocument::GetAutoFormatData(), ScViewData::GetDocument(), ScTabView::GetViewData(), pData, and SC_MARK_SIMPLE.
Referenced by ScCellShell::Execute().
void ScViewFunc::CreateNames | ( | CreateNameFlags | nFlags | ) |
Definition at line 3038 of file viewfunc.cxx.
References ScDocFunc::CreateNames(), ScTabView::ErrorMessage(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and SC_MARK_SIMPLE.
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::CutToClip | ( | ) |
Definition at line 90 of file viewfun3.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ALL, ScRange::aStart, ScDocument::BeginDrawUndo(), ScTabView::CellContentChanged(), CopyToClip(), ScDocument::CopyToDocument(), ScDocument::DeleteObjectsInSelection(), ScDocument::DeleteSelection(), ScTabView::DoneBlockMode(), ScTabView::ErrorMessage(), ScDocument::ExtendMerge(), ScAddress::GetColRowString(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScTabView::InitOwnBlockMode(), ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScTabView::MarkDataChanged(), ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), NOCAPTIONS, OBJECTS, ScDocShell::PostPaint(), ScAddress::Row(), SC_MARK_SIMPLE, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarkArea(), ScAddress::SetTab(), ScTabView::UpdateInputLine(), ScDocShell::UpdateOle(), and ScDocShell::UpdatePaintExt().
Referenced by ScCellShell::ExecuteEdit(), and ooo::vba::excel::implnCut().
void ScViewFunc::DataFormPutData | ( | SCROW | nCurrentRow, |
SCROW | nStartRow, | ||
SCCOL | nStartCol, | ||
SCROW | nEndRow, | ||
SCCOL | nEndCol, | ||
std::vector< std::unique_ptr< ScDataFormFragment > > & | rEdits, | ||
sal_uInt16 | aColLength | ||
) |
Definition at line 1953 of file viewfun3.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::BeginDrawUndo(), ScDocument::CopyToDocument(), ScDocument::GetChangeTrack(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, i, ScDocument::IsUndoEnabled(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScDocShell::PostPaint(), ScChangeTrack::ResetLastCut(), SCDOCMODE_UNDO, ScDocument::SetString(), Top, ScDocShell::UpdateOle(), ScDocShell::UpdatePaintExt(), and VALUE.
void ScViewFunc::DeleteCells | ( | DelCellCmd | eCmd | ) |
Definition at line 1781 of file viewfunc.cxx.
References ScRange::aEnd, ScRange::aStart, ScTabView::CellContentChanged(), CellsLeft, ScAddress::Col(), Cols, COLUMN_HEADER, ScDocFunc::DeleteCells(), DeleteMulti(), ScTabView::ErrorMessage(), ScAddress::GetColRowString(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScTabView::GetViewData(), comphelper::LibreOfficeKit::isActive(), SfxObjectShell::IsDocShared(), nCount, ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), HelperNotifyChanges::NotifyIfChangesListeners(), ScTabView::ResetAutoSpellForContentChange(), ScAddress::Row(), ROW_HEADER, Rows, SC_MARK_SIMPLE, ScTabView::SetCursor(), ScTabView::Unmark(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::DeleteContents | ( | InsertDeleteFlags | nFlags | ) |
Definition at line 2065 of file viewfunc.cxx.
References ScRange::aEnd, ScRange::aStart, ATTRIB, bFormatValid, ScTabView::CellContentChanged(), CONTENTS, ScDocFunc::DeleteCell(), ScDocFunc::DeleteContents(), EDITATTR, ScTabView::ErrorMessage(), ScMarkData::FillRangeListWithMarks(), ScAddress::GetColRowString(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocShell::GetModel(), HelperNotifyChanges::getMustPropagateChangesModel(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDocument::HasAttrib(), ScTabView::HideAllCursors(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), Merged, NONE, HelperNotifyChanges::Notify(), ScRangeList::push_back(), SelectionEditable(), ScAddress::SetCol(), ScMarkData::SetMarkArea(), ScViewData::SetPasteMode(), ScAddress::SetRow(), ScAddress::SetTab(), ScTabView::ShowAllCursors(), StartFormatArea(), ScViewUtil::UnmarkFiltered(), ScTabView::UpdateCopySourceOverlay(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::Execute(), ScCellShell::ExecuteEdit(), and ScGridWindow::MouseButtonUp().
void ScViewFunc::DeleteMulti | ( | bool | bRows | ) |
Definition at line 1869 of file viewfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ALL, ScDocument::BeginDrawUndo(), ScTabView::CellContentChanged(), ScDocument::CopyToDocument(), ScDocument::DeleteCol(), ScDocument::DeleteObjectsInArea(), ScDocument::DeleteRow(), ScTabView::ErrorMessage(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), FORMULA, ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetMarkedColSpans(), ScMarkData::GetMarkedRowSpans(), ScEditableTester::GetMessageId(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, Hor, i, ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, mnStart, n, ScDocShell::PostPaint(), ScDocument::RemoveFlagsTab(), ScTabView::ResetAutoSpellForContentChange(), SCDOCMODE_UNDO, ScMarkData::SelectOneTable(), ScTabView::SetCursor(), ScDocShellModificator::SetDocumentModified(), SfxGetpApp(), Top, ScViewUtil::UnmarkFiltered(), and Ver.
Referenced by DeleteCells().
void ScViewFunc::DeletePageBreak | ( | bool | bColumn, |
bool | bRecord = true , |
||
const ScAddress * | pPos = nullptr , |
||
bool | bSetModified = true |
||
) |
Definition at line 987 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), and ScTabView::UpdatePageBreakData().
Referenced by ScUndoPageBreak::DoChange(), ScCellShell::ExecuteEdit(), ScGridWindow::PagebreakMove(), ScUndoPageBreak::Repeat(), and ScVbaRange::setPageBreak().
void ScViewFunc::DeleteTable | ( | SCTAB | nTabNr, |
bool | bRecord = true |
||
) |
Definition at line 2467 of file viewfun2.cxx.
References ScDocFunc::DeleteTable(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScTabView::GetViewData(), and ScTabView::SetTabNo().
Referenced by ScDocShell::Execute(), ScUndoDeleteTab::Repeat(), and ScUndoInsertTab::Undo().
bool ScViewFunc::DeleteTables | ( | const std::vector< SCTAB > & | TheTabs, |
bool | bRecord = true |
||
) |
Referenced by ScTabViewShell::ExecuteTable(), MoveTable(), ScUndoDeleteTab::Redo(), and ScUndoInsertTables::Undo().
Definition at line 2484 of file viewfun2.cxx.
References ScDocument::DeleteTabs(), ScDocument::GetCodeName(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScTabView::GetViewData(), ScDocument::IsInVBAMode(), ScDocument::IsVisible(), ScDocShell::PostPaintExtras(), SC_TABS_DELETED, ScDocShell::SetDocumentModified(), ScTabView::SetTabNo(), SfxGetpApp(), and VBA_DeleteModule().
void ScViewFunc::DetectiveAddError | ( | ) |
Definition at line 101 of file viewfun6.cxx.
References ScDocFunc::DetectiveAddError(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveAddPred | ( | ) |
use broadcast in DocFunc instead?
Definition at line 73 of file viewfun6.cxx.
References ScDocFunc::DetectiveAddPred(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScAuditingShell::Execute(), and ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveAddSucc | ( | ) |
Definition at line 87 of file viewfun6.cxx.
References ScDocFunc::DetectiveAddSucc(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScAuditingShell::Execute(), and ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveDelAll | ( | ) |
Definition at line 108 of file viewfun6.cxx.
References ScDocFunc::DetectiveDelAll(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScTabViewShell::Execute().
void ScViewFunc::DetectiveDelPred | ( | ) |
Definition at line 80 of file viewfun6.cxx.
References ScDocFunc::DetectiveDelPred(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScAuditingShell::Execute(), and ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveDelSucc | ( | ) |
Definition at line 94 of file viewfun6.cxx.
References ScDocFunc::DetectiveDelSucc(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScAuditingShell::Execute(), and ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveMarkInvalid | ( | ) |
Definition at line 115 of file viewfun6.cxx.
References ScDocFunc::DetectiveMarkInvalid(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::DetectiveMarkPred | ( | ) |
Definition at line 171 of file viewfun6.cxx.
References ScRange::aStart, ScDocFunc::DetectiveCollectAllPreds(), ScMarkData::FillRangeListWithMarks(), ScRange::Format(), ScViewData::GetCurPos(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScExternalRefManager::getExternalFileName(), ScDocument::GetExternalRefManager(), ScViewData::GetMarkData(), ScRefTokenHelper::getRangeFromToken(), ScRefTokenHelper::getRangeListFromTokens(), ScTabView::GetViewData(), ScRefTokenHelper::isExternalRef(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), lcl_jumpToRange(), MarkAndJumpToRanges(), ScGlobal::OpenURL(), p, ScRangeList::push_back(), ScAddress::Tab(), and VALID.
Referenced by ScCellShell::ExecuteEdit(), and ScGridWindow::KeyInput().
void ScViewFunc::DetectiveMarkSucc | ( | ) |
Definition at line 235 of file viewfun6.cxx.
References ScDocFunc::DetectiveCollectAllSuccs(), ScMarkData::FillRangeListWithMarks(), ScViewData::GetCurPos(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScRefTokenHelper::getRangeListFromTokens(), ScTabView::GetViewData(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), MarkAndJumpToRanges(), and ScRangeList::push_back().
Referenced by ScCellShell::ExecuteEdit(), and ScGridWindow::KeyInput().
void ScViewFunc::DetectiveRefresh | ( | ) |
Definition at line 122 of file viewfun6.cxx.
References ScDocFunc::DetectiveRefresh(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScTabView::RecalcPPT().
Referenced by ScCellShell::ExecuteEdit().
Definition at line 219 of file viewfunc.cxx.
References aFormatSource, ScDocFunc::ApplyAttributes(), ScDocFunc::ApplyStyle(), ATTR_MERGE(), ScAddress::Col(), ScViewData::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScPatternAttr::GetItem(), SfxStyleSheetBase::GetName(), ScDocument::GetPattern(), ScDocument::GetSheetLimits(), ScPatternAttr::GetStyleSheet(), ScTabView::GetViewData(), ScAddress::Row(), ScAddress::Set(), and ScMarkData::SetMarkArea().
Referenced by EnterData().
void ScViewFunc::DoHangulHanjaConversion | ( | ) |
Definition at line 433 of file viewfun4.cxx.
References DoSheetConversion(), LANGUAGE_KOREAN, and SC_CONVERSION_HANGULHANJA.
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::DoRefConversion | ( | ) |
Definition at line 180 of file viewfun4.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScFormulaCell::aPos, ScRange::aStart, ScTabView::CellContentChanged(), CELLTYPE_FORMULA, ScAddress::Col(), ScCompiler::CompileString(), ScDocument::CopyToDocument(), ScTabView::ErrorMessage(), ScCellIterator::first(), Formula, ScDocument::GetAddressConvention(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScFormulaCell::GetFormula(), ScCellIterator::getFormulaCell(), ScRefFinder::GetFound(), ScDocument::GetGrammar(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), ScFormulaCell::GetMatrixFlag(), ScEditableTester::GetMessageId(), ScViewData::GetMultiArea(), ScMarkData::GetMultiMarkArea(), ScCellIterator::GetPos(), ScMarkData::GetSelectCount(), ScDocument::GetTableCount(), ScRefFinder::GetText(), ScCellIterator::getType(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), formula::FormulaGrammar::GRAM_DEFAULT, Grid, i, ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToSimple(), nCount, ScCellIterator::next(), ScDocShell::PostPaint(), Reference, ScAddress::Row(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScDocument::SetFormulaCell(), ScAddress::SetTab(), ScAddress::Tab(), ScRefFinder::ToggleRel(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::DoSheetConversion | ( | const ScConversionParam & | rParam | ) |
Generic implementation of sheet conversion functions.
Definition at line 439 of file viewfun4.cxx.
References SfxUndoManager::AddUndoAction(), ScTabView::AlignToCursor(), ScDocument::EnableIdle(), ScTabView::ErrorMessage(), ScViewData::GetActivePart(), ScViewData::GetActiveWin(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetEditView(), ScDocument::GetEnginePool(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), vcl::Window::GetOutDev(), ScMarkData::GetSelectCount(), tools::Rectangle::GetSize(), LinguMgr::GetSpellChecker(), ScViewData::GetTabNo(), ScConversionParam::GetType(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScViewData::HasEditView(), ScEditableTester::IsEditable(), ScDocument::IsIdleEnabled(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScTabView::KillEditView(), ScTabView::MakeEditView(), ScMarkData::MarkToMulti(), ScDocShell::PostPaintGridAll(), SC_CONVERSION_CHINESE_TRANSL, SC_CONVERSION_HANGULHANJA, SC_CONVERSION_SPELLCHECK, SC_FOLLOW_JUMP, SC_MOD, SCDOCMODE_UNDO, ScDocument::SetAllFormulasDirty(), ScDocShell::SetDocumentModified(), EditView::SetOutputArea(), ScViewData::SetSpellingView(), and ScTabViewShell::UpdateInputHandler().
Referenced by DoHangulHanjaConversion(), and ScCellShell::ExecuteEdit().
void ScViewFunc::DoThesaurus | ( | ) |
Definition at line 311 of file viewfun4.cxx.
References SfxUndoManager::AddUndoAction(), ScCellValue::assign(), aStr, CELLTYPE_EDIT, CELLTYPE_STRING, Application::CreateMessageDialog(), ScTabView::ErrorMessage(), ScPatternAttr::FillEditItemSet(), ScViewData::GetActivePart(), ScTabView::GetActiveWin(), ScViewData::GetBindings(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetEditPool(), ScCellValue::getEditText(), ScViewData::GetEditView(), ScViewUtil::GetEffLanguage(), ScDocument::GetEnginePool(), SvtLanguageTable::GetLanguageString(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScDocument::GetPattern(), EditView::GetSelection(), ScDocument::GetSharedStringPool(), LinguMgr::GetSpellChecker(), ScCellValue::getString(), ScViewData::GetTabNo(), ScCellValue::getType(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScViewData::HasEditView(), svl::SharedStringPool::intern(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScTabView::KillEditView(), ScTabView::MakeEditView(), ScDocShell::PostPaintGridAll(), SC_MOD, ScResId(), ScCellValue::set(), ScDocShell::SetDocumentModified(), ScDocument::SetEditText(), EditView::SetSelection(), ScDocument::SetString(), EditView::StartThesaurus(), and SfxBindings::Update().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::EditNote | ( | ) |
Definition at line 508 of file viewfun6.cxx.
References ScDrawLayer::BeginCalcUndo(), SfxDispatcher::Execute(), ScPostIt::GetCaption(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDispatcher(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScTabView::GetDrawFuncPtr(), ScDocument::GetDrawLayer(), ScDocument::GetOrCreateNote(), ScTabView::GetScDrawView(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScTabView::HideNoteMarker(), ScDocShell::MakeDrawLayer(), ScTabView::OnLOKNoteStateChanged(), ScTabView::ScrollToObject(), FuText::SetInEditMode(), and ScPostIt::ShowCaptionTemp().
Referenced by ScGridWinUIObject::execute(), and ScCellShell::ExecuteEdit().
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().
void ScViewFunc::EnterBlock | ( | const OUString & | rString, |
const EditTextObject * | pData | ||
) |
pData | The caller must manage the life cycle of the object this pointer points to. NULL is allowed. |
Definition at line 881 of file viewfun2.cxx.
References ScDocument::ApplyPatternIfNumberformatIncompatible(), ATTR_VALUE_FORMAT(), ATTRIB, CONTENTS, EnterData(), ScTabView::ErrorMessage(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScDocument::GetEditPool(), ScDocument::GetEnginePool(), ScDocument::GetFormatTable(), ScPatternAttr::GetItemSet(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), ScDocument::GetPattern(), ScDocument::GetPool(), ScViewData::GetTabNo(), EditEngine::GetText(), SvNumberFormatter::GetType(), CntUInt32Item::GetValue(), ScTabView::GetViewData(), INS_NONE, ScMarkData::IsMultiMarked(), ScMarkData::MarkToSimple(), ScEditAttrTester::NeedsObject(), NONE, ScTabView::PaintArea(), PasteFromClip(), pData, SfxItemSet::Put(), SCDOCMODE_CLIP, and ScEditEngineDefaulter::SetTextCurrentDefaults().
Referenced by EnterAutoSum(), and ScCellShell::Execute().
void ScViewFunc::EnterData | ( | SCCOL | nCol, |
SCROW | nRow, | ||
SCTAB | nTab, | ||
const EditTextObject & | rData, | ||
bool | bTestSimple = false |
||
) |
remove common attributes from EditEngine?
undo
Definition at line 705 of file viewfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScDocument::ApplyPattern(), ScCellValue::assign(), EditTextObject::Clone(), EnterData(), ScTabView::ErrorMessage(), ScEditAttrTester::GetAttribs(), ScDocument::GetCondFormat(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetEditPool(), ScDocument::GetEnginePool(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScEditUtil::GetMultilineString(), EditTextObject::GetParagraphCount(), ScDocument::GetPattern(), EditEngine::GetText(), EditTextObject::GetText(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScTabView::HideAllCursors(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), lcl_PostRepaintCondFormat(), ScUndoEnterData::Value::maCell, ScUndoEnterData::Value::mnTab, ScEditAttrTester::NeedsCellAttr(), ScEditAttrTester::NeedsObject(), HelperNotifyChanges::NotifyIfChangesListeners(), ScTabView::PaintArea(), ScDocShell::PostPaintCell(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetEditText(), ScEditEngineDefaulter::SetTextCurrentDefaults(), ScTabView::ShowAllCursors(), u, and ScDocShell::UpdateOle().
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().
void ScViewFunc::EnterDataAtCursor | ( | const OUString & | rString | ) |
Definition at line 828 of file viewfunc.cxx.
References EnterData(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetViewShell(), and ScTabViewShell::UpdateInputHandler().
void ScViewFunc::EnterMatrix | ( | const OUString & | rString, |
::formula::FormulaGrammar::Grammar | eGram | ||
) |
Definition at line 839 of file viewfunc.cxx.
References ScDocFunc::EnterMatrix(), ScTabView::ErrorMessage(), Formula, ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScFormulaCell::GetResultDimensions(), ScViewData::GetSimpleArea(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScTabView::MarkRange(), ScDocument::MaxCol(), ScDocument::MaxRow(), ScTabView::PaintArea(), SC_MARK_SIMPLE, and ScDocShell::UpdateOle().
Referenced by ScGridWindow::DropTransferObj(), EnterData(), ScCellShell::Execute(), and PasteLink().
Definition at line 669 of file viewfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScCellValue::assign(), ScTabView::ErrorMessage(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScEditableTester::GetMessageId(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintCell(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetValue(), and ScDocShell::UpdateOle().
Referenced by Solve().
void ScViewFunc::ExtendScenario | ( | ) |
Definition at line 2351 of file viewfun2.cxx.
References ApplySelectionPattern(), ScTabView::ErrorMessage(), ScViewData::GetDocument(), ScPatternAttr::GetItemSet(), ScEditableTester::GetMessageId(), ScDocument::GetPool(), ScTabView::GetViewData(), ScEditableTester::IsEditable(), SfxItemSet::Put(), and Scenario.
Referenced by ScCellShell::Execute().
void ScViewFunc::FillAuto | ( | FillDir | eDir, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
sal_uLong | nCount | ||
) |
Definition at line 1467 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), CopyAutoSpellData(), FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, FillAuto(), ScDocShell::GetDocFunc(), ScDocument::GetDocOptions(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScDocShell::GetModel(), HelperNotifyChanges::getMustPropagateChangesModel(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScDocOptions::IsAutoSpell(), ScTabView::MarkRange(), nCount, HelperNotifyChanges::Notify(), ScRangeList::push_back(), ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), ScDocShell::UpdateOle(), and ScTabView::UpdateScrollBars().
Referenced by ScCellShell::ExecuteEdit(), FillAuto(), and 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.
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().
void ScViewFunc::FillSeries | ( | FillDir | eDir, |
FillCmd | eCmd, | ||
FillDateCmd | eDateCmd, | ||
double | fStart, | ||
double | fStep, | ||
double | fMax | ||
) |
Definition at line 1444 of file viewfun2.cxx.
References ScTabView::ErrorMessage(), FillSeries(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScTabView::GetViewData(), HelperNotifyChanges::NotifyIfChangesListeners(), SC_MARK_SIMPLE, ScDocShell::UpdateOle(), and ScTabView::UpdateScrollBars().
Referenced by ScCellShell::ExecuteEdit(), FillSeries(), and ScUndoAutoFill::Repeat().
void ScViewFunc::FillSimple | ( | FillDir | eDir | ) |
Definition at line 1395 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScTabView::CellContentChanged(), ScAddress::Col(), CopyAutoSpellData(), ScTabView::ErrorMessage(), FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, ScDocFunc::FillSimple(), ScDocShell::GetDocFunc(), ScDocument::GetDocOptions(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScTabView::GetViewData(), ScAddress::IncCol(), ScAddress::IncRow(), ScDocOptions::IsAutoSpell(), ScAddress::Row(), SC_MARK_SIMPLE, ScDocShell::UpdateOle(), and ScTabView::UpdateScrollBars().
Referenced by ScCellShell::ExecuteEdit(), and ScUndoAutoFill::Repeat().
void ScViewFunc::FillTab | ( | InsertDeleteFlags | nFlags, |
ScPasteFunc | nFunction, | ||
bool | bSkipEmpty, | ||
bool | bAsLink | ||
) |
allow source sheet to be protected
for ChangeTrack not until the end
Definition at line 1678 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToDocument(), ScTabView::ErrorMessage(), ScDocument::FillTab(), ScDocument::FillTabMarked(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScMarkData::GetMultiMarkArea(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), i, ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToSimple(), ScDocShell::PostDataChanged(), ScDocShell::PostPaintGridAll(), ScAddress::Row(), SCDOCMODE_UNDO, and ScAddress::SetTab().
Referenced by ScCellShell::ExecuteEdit().
bool ScViewFunc::GetAutoSumArea | ( | ScRangeList & | rRangeList | ) |
Definition at line 510 of file viewfun2.cxx.
References DIR_LEFT, DIR_TOP, ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScViewData::GetTabNo(), ScTabView::GetViewData(), lcl_FindNextSumEntryInColumn(), lcl_FindNextSumEntryInRow(), lcl_IsAutoSumData(), lcl_SeekAutoSumData(), and ScRangeList::push_back().
Referenced by ScTabViewShell::DoAutoSum().
OUString ScViewFunc::GetAutoSumFormula | ( | const ScRangeList & | rRangeList, |
bool | bSubTotal, | ||
const ScAddress & | rAddr, | ||
const OpCode | eCode | ||
) |
Definition at line 842 of file viewfun2.cxx.
References aBuf, formula::FormulaTokenArray::AddDouble(), ScTokenArray::AddDoubleReference(), ScTokenArray::AddOpCode(), formula::FormulaCompiler::CreateStringFromTokenArray(), ScRangeList::empty(), ScViewData::GetDocument(), ScDocument::GetGrammar(), GetSubTotal(), ScTabView::GetViewData(), i, ScComplexRefData::InitRangeRel(), ocClose, ocOpen, ocSep, ocSubTotal, and ScRangeList::size().
Referenced by AutoSum(), ScTabViewShell::DoAutoSum(), and EnterAutoSum().
CreateNameFlags ScViewFunc::GetCreateNameFlags | ( | ) |
Definition at line 3049 of file viewfunc.cxx.
References Bottom, ScViewData::GetDocument(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScDocument::HasStringData(), i, Left, NONE, Right, SC_MARK_SIMPLE, and Top.
Referenced by ScCellShell::ExecuteEdit().
Definition at line 250 of file viewfunc.cxx.
References ScSizeDeviceProvider::GetDevice(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScDocument::GetOptimalColWidth(), ScSizeDeviceProvider::GetPPTX(), ScViewData::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScViewData::GetPPTY(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), ScSizeDeviceProvider::IsPrinter(), nPPTX, and nPPTY.
Referenced by SetWidthOrHeight().
void ScViewFunc::GetSelectionFrame | ( | std::shared_ptr< SvxBoxItem > & | rLineOuter, |
std::shared_ptr< SvxBoxInfoItem > & | rLineInner | ||
) |
Definition at line 943 of file viewfunc.cxx.
References ATTR_BORDER(), ATTR_BORDER_INNER(), SfxPoolItem::Clone(), ScViewData::GetDocument(), ScPatternAttr::GetItem(), ScViewData::GetMarkData(), ScDocument::GetPattern(), ScDocument::GetSelectionFrame(), ScTabView::GetViewData(), ScMarkData::IsMarked(), and ScMarkData::IsMultiMarked().
Referenced by ScTabViewShell::ExecuteCellFormatDlg(), ScFormatShell::GetAttrState(), and ScFormatShell::GetBorderState().
const ScPatternAttr * ScViewFunc::GetSelectionPattern | ( | ) |
Definition at line 911 of file viewfunc.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScDocument::GetSelectionPattern(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScMarkData::SetMarkArea(), and ShrinkToDataArea().
Referenced by ScFormatShell::ExecuteAttr(), ScTabViewShell::ExecuteCellFormatDlg(), ScCellShell::ExecuteEdit(), ScFormatShell::ExecuteNumFormat(), ScFormatShell::ExecuteTextAttr(), ScFormatShell::GetAlignState(), ScFormatShell::GetAttrState(), ScFormatShell::GetNumFormatState(), ScFormatShell::GetTextAttrState(), ScFormatShell::GetTextDirectionState(), and SetSelectionFrameLines().
SvtScriptType ScViewFunc::GetSelectionScriptType | ( | ) |
Definition at line 883 of file viewfunc.cxx.
References ScMarkData::FillRangeListWithMarks(), ScGlobal::GetDefaultScriptType(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScDocument::GetRangeScriptType(), ScDocument::GetScriptType(), ScTabView::GetViewData(), ScMarkData::IsMarked(), and ScMarkData::IsMultiMarked().
Referenced by ScFormatShell::ExecuteAttr(), ScCellShell::ExecuteEdit(), ScFormatShell::GetAttrState(), and ScFormatShell::GetTextAttrState().
const SfxStyleSheet * ScViewFunc::GetStyleSheetFromMarked | ( | ) |
Definition at line 1415 of file viewfunc.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScDocument::GetSelectionStyle(), ScDocument::GetStyle(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScMarkData::IsMarked(), and ScMarkData::IsMultiMarked().
Referenced by ScTabViewShell::ExecStyle(), and ScTabViewShell::GetStyleState().
bool ScViewFunc::HasBookmarkAtCursor | ( | SvxHyperlinkItem * | pContent | ) |
Definition at line 752 of file viewfun4.cxx.
References SvxFieldData::GetClassId(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetEditText(), SvxFieldItem::GetField(), SvxURLField::GetRepresentation(), SvxURLField::GetTargetFrame(), SvxURLField::GetURL(), ScTabView::GetViewData(), pData, SvxHyperlinkItem::SetName(), SvxHyperlinkItem::SetTargetFrame(), and SvxHyperlinkItem::SetURL().
Referenced by InsertBookmark(), and ScTabViewShell::InsertURLField().
void ScViewFunc::HideTable | ( | const ScMarkData & | rMark, |
SCTAB | nTabToSelect = -1 |
||
) |
Definition at line 3237 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), Extras, ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetSelectCount(), ScMarkData::GetSelectedTabs(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), i, ScDocument::IsUndoEnabled(), ScDocument::IsVisible(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScDocShell::PostPaint(), SC_TAB_HIDDEN, ScDocShell::SetDocumentModified(), ScTabView::SetTabNo(), ScDocument::SetVisible(), and SfxGetpApp().
Referenced by ScTabViewShell::ExecuteTable().
void ScViewFunc::ImportTables | ( | ScDocShell * | pSrcShell, |
SCTAB | nCount, | ||
const SCTAB * | pSrcTabs, | ||
bool | bLink, | ||
SCTAB | nTab | ||
) |
Definition at line 2725 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), aName, ScDocument::BeginDrawUndo(), sfx2::ClientFile, ScDocument::CreateValidTabName(), ScTabView::ErrorMessage(), Extras, ScViewData::GetBindings(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), SfxMedium::GetFilter(), ScDocument::GetLinkManager(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), ScDocument::GetName(), ScDocumentLoader::GetOptions(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScDocument::HasLink(), i, sfx2::LinkManager::InsertFileLink(), ScDocument::InsertTab(), ScViewData::InsertTab(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), Left, ScDocShell::MakeDrawLayer(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nCount, NORMAL, pLink, ScDocShell::PostPaint(), ScDocShell::PostPaintExtras(), ScDocShell::PostPaintGridAll(), ScDocShell::SetDocumentModified(), ScDocument::SetLink(), ScTabView::SetTabNo(), SfxGetpApp(), Top, and ScDocShell::TransferTab().
Referenced by ScGridWindow::DropTransferObj(), ScTabViewShell::ExecuteTable(), and InsertTableLink().
void ScViewFunc::InsertAreaLink | ( | const OUString & | rFile, |
const OUString & | rFilter, | ||
const OUString & | rOptions, | ||
const OUString & | rSource | ||
) |
Definition at line 2678 of file viewfun2.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), and ScDocFunc::InsertAreaLink().
Referenced by ScGridWindow::ExecuteDrop().
void ScViewFunc::InsertBookmark | ( | const OUString & | rDescription, |
const OUString & | rURL, | ||
SCCOL | nPosX, | ||
SCROW | nPosY, | ||
const OUString * | pTarget = nullptr , |
||
bool | bTryReplace = false |
||
) |
Definition at line 694 of file viewfun4.cxx.
References EditEngine::CreateTextObject(), EE_FEATURE_FIELD(), EnterData(), ScViewData::GetActivePart(), ScViewData::GetDocument(), ScViewData::GetEditEndCol(), ScViewData::GetEditEndRow(), ScViewData::GetEditStartCol(), ScViewData::GetEditStartRow(), ScDocument::GetEditText(), ScDocument::GetEnginePool(), ScDocument::GetInputString(), EditEngine::GetParagraphCount(), ScViewData::GetTabNo(), EditEngine::GetTextLen(), ScTabView::GetViewData(), ScViewData::GetViewShell(), HasBookmarkAtCursor(), ScViewData::HasEditView(), ScTabViewShell::InsertURLField(), pData, EditEngine::QuickInsertField(), SvxURLField::SetTargetFrame(), and EditEngine::SetText().
Referenced by ScGridWindow::ExecuteDrop(), ScTabViewShell::InsertURL(), PasteBookmark(), and PasteFile().
bool ScViewFunc::InsertCells | ( | InsCellCmd | eCmd, |
bool | bRecord = true , |
||
bool | bPartOfPaste = false |
||
) |
Definition at line 1727 of file viewfunc.cxx.
References ScRange::aEnd, ScRange::aStart, ScTabView::CellContentChanged(), COLUMN_HEADER, ScTabView::ErrorMessage(), ScAddress::GetColRowString(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), INS_INSCOLS_AFTER, INS_INSCOLS_BEFORE, INS_INSROWS_AFTER, INS_INSROWS_BEFORE, ScDocFunc::InsertCells(), comphelper::LibreOfficeKit::isActive(), ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), HelperNotifyChanges::NotifyIfChangesListeners(), ScTabView::ResetAutoSpellForContentChange(), ROW_HEADER, SC_MARK_SIMPLE, SC_MARK_SIMPLE_FILTERED, and ScDocShell::UpdateOle().
Referenced by ScCellShell::ExecuteEdit(), PasteFromClip(), and PasteMultiRangesFromClip().
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:
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().
bool ScViewFunc::InsertName | ( | const OUString & | rName, |
const OUString & | rSymbol, | ||
const OUString & | rType | ||
) |
undo...
Definition at line 2984 of file viewfunc.cxx.
References ScRangeData::ColHeader, ScDocument::CompileHybridFormula(), ScRangeData::Criteria, ScRangeName::erase(), ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetRangeName(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScRangeName::insert(), ScRangeData::Name, nType, pData, ScDocument::PreprocessRangeNameUpdate(), ScRangeData::PrintArea, ScRangeData::RowHeader, ScDocShellModificator::SetDocumentModified(), ScRangeData::SetIndex(), and SfxGetpApp().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::InsertNameList | ( | ) |
Definition at line 3111 of file viewfunc.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScDocFunc::InsertNameList(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::InsertPageBreak | ( | bool | bColumn, |
bool | bRecord = true , |
||
const ScAddress * | pPos = nullptr , |
||
bool | bSetModified = true |
||
) |
Definition at line 970 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), InsertPageBreak(), and ScTabView::UpdatePageBreakData().
Referenced by ScUndoPageBreak::DoChange(), ScCellShell::ExecuteEdit(), InsertPageBreak(), ScGridWindow::PagebreakMove(), ScUndoPageBreak::Repeat(), and ScVbaRange::setPageBreak().
void ScViewFunc::InsertSpecialChar | ( | const OUString & | rStr, |
const vcl::Font & | rFont | ||
) |
Definition at line 3287 of file viewfun2.cxx.
References ApplyUserItemSet(), ATTR_FONT(), ScTabView::ErrorMessage(), vcl::Font::GetCharSet(), ScViewData::GetDocument(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), ScEditableTester::GetMessageId(), vcl::Font::GetPitch(), SfxShell::GetPool(), ScDocument::GetStringScriptType(), vcl::Font::GetStyleName(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDocument::HasStringWeakCharacters(), ScEditableTester::IsEditable(), pChar, SvxScriptSetItem::PutItemForScriptType(), and ScTabViewShell::TabKeyInput().
Referenced by ScCellShell::ExecuteEdit().
bool ScViewFunc::InsertTable | ( | const OUString & | rName, |
SCTAB | nTabNr, | ||
bool | bRecord = true |
||
) |
Definition at line 2381 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), InsertTable(), and ScTabView::SetTabNo().
Referenced by ScTabControl::AddTabClick(), ScTabViewShell::ExecuteTable(), InsertTable(), ScUndoInsertTab::Redo(), and ScDBFunc::ShowDataPilotSourceData().
void ScViewFunc::InsertTableLink | ( | const OUString & | rFile, |
const OUString & | rFilter, | ||
const OUString & | rOptions, | ||
std::u16string_view | rTabName | ||
) |
Definition at line 2691 of file viewfun2.cxx.
References ScDocumentLoader::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetName(), ScDocument::GetTableCount(), ScTabView::GetViewData(), i, ImportTables(), ScDocumentLoader::IsError(), MAXTAB, and nCount.
Referenced by ScGridWindow::ExecuteDrop().
void ScViewFunc::InsertTables | ( | std::vector< OUString > & | aNames, |
SCTAB | nTab, | ||
SCTAB | nCount, | ||
bool | bRecord = true |
||
) |
Definition at line 2394 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::BeginDrawUndo(), ScDocument::CreateValidTabNames(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScDocument::InsertTabs(), ScDocument::IsUndoEnabled(), nCount, ScDocShell::PostPaintExtras(), SC_TABS_INSERTED, ScDocShell::SetDocumentModified(), ScTabView::SetTabNo(), and SfxGetpApp().
Referenced by ScTabViewShell::ExecuteTable(), and ScUndoInsertTables::Redo().
Definition at line 1915 of file viewfun3.cxx.
References ScRange::aEnd, ALL, ScRange::aStart, ScAddress::Col(), ScDocument::CopyTabToClip(), ScViewData::GetDocument(), ScTabView::GetViewData(), ScTabView::MoveCursorAbs(), NONE, PasteFromClip(), ScAddress::Row(), SC_FOLLOW_NONE, SCDOCMODE_CLIP, ScTabView::SetTabNo(), and ScAddress::Tab().
Referenced by ScGridWindow::DropTransferObj().
void ScViewFunc::MakeScenario | ( | const OUString & | rName, |
const OUString & | rComment, | ||
const Color & | rColor, | ||
ScScenarioFlags | nFlags | ||
) |
Definition at line 2330 of file viewfun2.cxx.
References CopyAll, ScViewData::GetBindings(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScViewData::GetTabNo(), ScTabView::GetViewData(), SfxBindings::Invalidate(), ScDocShell::MakeScenario(), and ScTabView::SetTabNo().
Referenced by ScCellShell::Execute().
|
private |
Definition at line 139 of file viewfun6.cxx.
References ScRange::aStart, ScRangeList::empty(), ScRangeList::front(), ScViewData::GetCurPos(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScTabView::GetViewData(), i, lcl_jumpToRange(), ScTabView::MarkRange(), ScRangeList::push_back(), ScRangeList::size(), and ScAddress::Tab().
Referenced by DetectiveMarkPred(), and DetectiveMarkSucc().
bool ScViewFunc::MergeCells | ( | bool | bApi, |
bool & | rDoContents, | ||
bool | bCenter | ||
) |
Definition at line 1179 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), EmptyContentHiddenCells, ScTabView::ErrorMessage(), ScAddress::GetColRowString(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), ScMergeCellsDialog::GetMergeCellsOption(), ScEditableTester::GetMessageId(), ScCellMergeOption::getSingleRange(), ScTabView::GetViewData(), ScDocument::HasAttrib(), sc::MultiDataCellState::HasMultipleCells, ScDocument::HasMultipleDataCells(), sc::MultiDataCellState::HasOneCell, i, ScEditableTester::IsEditable(), ScMarkData::IsMarked(), KeepContentHiddenCells, ScMarkData::MarkToSimple(), ScCellMergeOption::maTabs, ScDocFunc::MergeCells(), Merged, sc::MultiDataCellState::meState, sc::MultiDataCellState::mnCol1, sc::MultiDataCellState::mnRow1, MoveContentHiddenCells, Overlapped, RET_CANCEL, RET_OK, ScAddress::Row(), weld::DialogController::run(), ScTabView::SetCursor(), ScAddress::Tab(), ScTabView::Unmark(), ScTabView::UpdateInputLine(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::Execute(), and ScUndoMerge::Repeat().
void ScViewFunc::ModifyCellSize | ( | ScDirection | eDir, |
bool | bOptimal | ||
) |
step size adjustable
Definition at line 2507 of file viewfunc.cxx.
References AdjustRowHeight(), ATTR_HOR_JUSTIFY(), ATTR_INDENT(), ATTR_LINEBREAK(), ATTR_MARGIN(), o3tl::convert(), DIR_BOTTOM, DIR_LEFT, DIR_RIGHT, eMode, ScTabView::ErrorMessage(), ScDocument::GetColWidth(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScSizeDeviceProvider::GetDevice(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScModule::GetInputHdl(), ScPatternAttr::GetItem(), SvxMarginItem::GetLeftMargin(), ScDocument::GetNeededSize(), ScDocShell::GetOutputFactor(), ScDocument::GetPattern(), ScSizeDeviceProvider::GetPPTX(), ScViewData::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScViewData::GetPPTY(), SvxMarginItem::GetRightMargin(), ScDocument::GetRowHeight(), ScDocument::GetSheetOptimalMinRowHeight(), ScViewData::GetTabNo(), ScInputHandler::GetTextSize(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), ScDocument::HasAttrib(), ScTabView::HideAllCursors(), ScDocument::IsBlockEditable(), ScModule::IsInputMode(), ScSizeDeviceProvider::IsPrinter(), MAX_COL_WIDTH, MAX_ROW_HEIGHT, ScDocument::MaxCol(), ScDocument::MaxRow(), o3tl::mm100, NeedHeight, nPixel, nPPTX, nPPTY, SC_MOD, SC_SIZE_DIRECT, SC_SIZE_OPTIMAL, ScInputHandler::SetModified(), SetWidthOrHeight(), ScTabView::ShowAllCursors(), STD_COL_WIDTH, STD_EXTRA_WIDTH, o3tl::twip, ScTabView::UpdateEditView(), and Size::Width().
Referenced by ScTabViewShell::TabKeyInput().
sal_False ???
Definition at line 1830 of file viewfun3.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocument::CountNonFilteredRows(), SfxUndoManager::EnterListAction(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScMarkData::GetSelectCount(), ScDocument::GetTableCount(), ScMarkData::GetTableSelect(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScTabView::HideAllCursors(), SfxUndoManager::LeaveListAction(), ScTabView::MarkRange(), ScDocFunc::MoveBlock(), ScTabView::ResetAutoSpellForContentChange(), ScAddress::Row(), ScResId(), ScTabView::SelectionChanged(), ScAddress::SetRow(), ScAddress::SetTab(), ScTabView::ShowAllCursors(), ScAddress::Tab(), and ScDocShell::UpdateOle().
Referenced by ScGridWindow::DropTransferObj().
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().
void ScViewFunc::OnLOKInsertDeleteColumn | ( | SCCOL | nStartCol, |
tools::Long | nOffset | ||
) |
Definition at line 1583 of file viewfunc.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurXForTab(), ScViewData::GetCurY(), SfxViewShell::GetDocId(), ScViewData::GetDocument(), SfxViewShell::GetFirst(), ScTabViewShell::GetInputHandler(), ScViewData::GetLOKWidthHelper(), ScViewData::GetMarkData(), SfxViewShell::GetNext(), ScTabViewShell::getPart(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetViewShell(), comphelper::LibreOfficeKit::isActive(), ScInputHandler::IsInputMode(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), ScTabView::SetCursor(), ScViewData::SetCurXForTab(), ScTabView::SetMarkData(), ScMarkData::SetMarking(), ScInputHandler::SetModified(), and ScMarkData::ShiftCols().
Referenced by ScDocFunc::DeleteCells(), ScUndoInsertCells::DoChange(), ScUndoDeleteCells::DoChange(), and ScDocFunc::InsertCells().
void ScViewFunc::OnLOKInsertDeleteRow | ( | SCROW | nStartRow, |
tools::Long | nOffset | ||
) |
Definition at line 1640 of file viewfunc.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetCurYForTab(), SfxViewShell::GetDocId(), ScViewData::GetDocument(), SfxViewShell::GetFirst(), ScTabViewShell::GetInputHandler(), ScViewData::GetLOKHeightHelper(), ScViewData::GetMarkData(), SfxViewShell::GetNext(), ScTabViewShell::getPart(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetViewShell(), comphelper::LibreOfficeKit::isActive(), ScInputHandler::IsInputMode(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), ScTabView::SetCursor(), ScViewData::SetCurYForTab(), ScTabView::SetMarkData(), ScMarkData::SetMarking(), ScInputHandler::SetModified(), and ScMarkData::ShiftRows().
Referenced by ScDocFunc::DeleteCells(), ScUndoInsertCells::DoChange(), ScUndoDeleteCells::DoChange(), and ScDocFunc::InsertCells().
void ScViewFunc::OnLOKSetWidthOrHeight | ( | SCCOLROW | nStart, |
bool | bWidth | ||
) |
Definition at line 1697 of file viewfunc.cxx.
References SfxViewShell::GetDocId(), SfxViewShell::GetFirst(), ScViewData::GetLOKHeightHelper(), ScViewData::GetLOKWidthHelper(), SfxViewShell::GetNext(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetViewShell(), and comphelper::LibreOfficeKit::isActive().
Referenced by AdjustBlockHeight(), AdjustRowHeight(), SetWidthOrHeight(), ScDocFunc::SetWidthOrHeight(), and ScUndoWidthOrHeight::Undo().
Definition at line 372 of file viewfun7.cxx.
References PasteGraphic().
Referenced by PasteDataFormat().
bool ScViewFunc::PasteBookmark | ( | SotClipboardFormatId | nFormatId, |
const css::uno::Reference< css::datatransfer::XTransferable > & | rxTransferable, | ||
SCCOL | nPosX, | ||
SCROW | nPosY | ||
) |
Definition at line 681 of file viewfun4.cxx.
References INetBookmark::GetDescription(), TransferableDataHelper::GetINetBookmark(), INetBookmark::GetURL(), and InsertBookmark().
Referenced by 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().
void ScViewFunc::PasteDraw | ( | ) |
Definition at line 467 of file viewfun3.cxx.
References SfxObjectShell::CreateShellID(), ScViewData::GetActivePart(), ScTabView::GetActiveWin(), ScViewData::GetActiveWin(), ScTabViewShell::GetClipData(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDrawTransferObj::GetModel(), ScDrawTransferObj::GetOwnClipboard(), ScViewData::GetScrPos(), ScDrawTransferObj::GetShellID(), ScTabView::GetViewData(), PasteDraw(), and vcl::Window::PixelToLogic().
Referenced by ScGridWindow::ExecuteDrop(), ScCellShell::ExecuteEdit(), PasteDataFormat(), PasteDraw(), PasteFromSystem(), PasteFromTransferable(), and ScGridWindow::PasteSelection().
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().
bool ScViewFunc::PasteFile | ( | const Point & | rPos, |
const OUString & | rFile, | ||
bool | bLink | ||
) |
Definition at line 579 of file viewfun4.cxx.
References aName, ScRange::aStart, aURL, ScAddress::Col(), SfxDispatcher::ExecuteList(), GetDispatcher(), ScViewData::GetDispatcher(), ScViewData::GetDocument(), GraphicFilter::GetGraphicFilter(), GetName(), comphelper::OStorageHelper::GetTemporaryStorage(), ScTabView::GetViewData(), ScViewData::GetViewShell(), GRFILTER_FORMAT_DONTKNOW, SfxFilterMatcher::GuessFilter(), GraphicFilter::ImportGraphic(), InsertBookmark(), comphelper::EmbeddedObjectContainer::InsertEmbeddedObject(), ScTabViewShell::InsertURLButton(), avmedia::MediaWindow::isMediaURL(), comphelper::makePropertyValue(), INetURLObject::NONE, PasteGraphic(), PasteObject(), ScAddress::Row(), and SfxMedium::UseInteractionHandler().
Referenced by ScTabViewShell::Execute(), and PasteDataFormat().
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().
|
private |
Definition at line 1634 of file viewfun3.cxx.
References SfxUndoManager::AddUndoAction(), AdjustBlockHeight(), ScRange::aEnd, ScRange::aStart, ScUndoPasteOptions::bAsLink, ScDocument::BeginDrawUndo(), ScUndoPasteOptions::bSkipEmptyCells, ScUndoPasteOptions::bTranspose, ScClipUtil::CheckDestRanges(), ScAddress::Col(), CONTENTS, ScDocument::CopyFromClip(), ScDocument::CopyToDocument(), ScUndoPasteOptions::eMoveMode, SfxUndoManager::EnterListAction(), ScTabView::ErrorMessage(), ScMarkData::FillRangeListWithMarks(), ScDocument::GetClipParam(), ScViewData::GetCurPos(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScClipParam::getWholeRange(), Grid, i, INS_NONE, ScDocument::IsCutMode(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), Left, ScDocShell::MakeDrawLayer(), ScMarkData::MarkToSimple(), ScDocument::MaxCol(), ScClipParam::mbCutMode, ScDocument::MixDocument(), n, ScUndoPasteOptions::nFunction, NONE, OBJECTS, ScDocShell::PostPaint(), PostPasteFromClip(), ScTabView::ResetAutoSpellForContentChange(), ScAddress::Row(), SC_MOD, SCDOCMODE_UNDO, ScResId(), ScDocShellModificator::SetDocumentModified(), ScRangeList::size(), ScDocument::ValidCol(), and ScDocument::ValidRow().
Referenced by PasteFromClip().
void ScViewFunc::PasteFromSystem | ( | ) |
Definition at line 484 of file viewfun3.cxx.
References ALL, TransferableDataHelper::CreateFromSystemClipboard(), EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_DEFAULT, EXCHG_INOUT_ACTION_NONE, EXCHG_OUT_ACTION_INSERT_BITMAP, EXCHG_OUT_ACTION_INSERT_GDIMETAFILE, EXCHG_OUT_ACTION_INSERT_GRAPH, EXCHG_OUT_ACTION_INSERT_SVXB, ScTabView::GetActiveWin(), ScTabViewShell::GetClipData(), TransferableDataHelper::GetDataFlavorExVector(), ScTransferObj::GetDocument(), SotExchange::GetExchangeAction(), ScDrawTransferObj::GetOwnClipboard(), ScTransferObj::GetOwnClipboard(), TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::GetXTransferable(), TransferableDataHelper::HasFormat(), INS_NONE, TransferableObjectDescriptor::maClassName, NONE, PasteDraw(), PasteFromClip(), PasteFromSystem(), SotExchange::RegisterFormatName(), SO3_SW_CLASSID, SO3_SWWEB_CLASSID, and ScTabView::UpdateInputLine().
Referenced by ScCellShell::ExecuteEdit(), ooo::vba::excel::implnPaste(), ScClipUtil::PasteFromClipboard(), and PasteFromSystem().
bool ScViewFunc::PasteFromSystem | ( | SotClipboardFormatId | nFormatId, |
bool | bApi = false |
||
) |
Definition at line 712 of file viewfun3.cxx.
References ALL, ScRange::aStart, ScAddress::Col(), TransferableDataHelper::CreateFromSystemClipboard(), ScTabView::ErrorMessage(), ScTabView::GetActiveWin(), ScTabViewShell::GetClipData(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScTransferObj::GetDocument(), ScTransferObj::GetOwnClipboard(), ScViewData::GetSimpleArea(), ScViewData::GetTabNo(), TransferableDataHelper::GetTransferable(), ScTabView::GetViewData(), ScViewData::GetViewShell(), INS_NONE, comphelper::LibreOfficeKit::isActive(), NONE, ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), PasteDataFormat(), PasteFromClip(), ScAddress::Row(), SC_MARK_SIMPLE, and ScTabView::UpdateInputLine().
void ScViewFunc::PasteFromTransferable | ( | const css::uno::Reference< css::datatransfer::XTransferable > & | rxTransferable | ) |
Definition at line 623 of file viewfun3.cxx.
References ALL, SfxObjectShell::CreateShellID(), ScViewData::GetActivePart(), ScTabView::GetActiveWin(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScViewData::GetScrPos(), TransferableDataHelper::GetTransferable(), TransferableDataHelper::GetTransferableObjectDescriptor(), ScTabView::GetViewData(), TransferableDataHelper::HasFormat(), INS_NONE, TransferableObjectDescriptor::maClassName, NONE, PasteDataFormat(), PasteDraw(), PasteFromClip(), vcl::Window::PixelToLogic(), SotExchange::RegisterFormatName(), SO3_SW_CLASSID, and SO3_SWWEB_CLASSID.
Referenced by ScTabViewObj::insertTransferable().
bool ScViewFunc::PasteGraphic | ( | const Point & | rPos, |
const Graphic & | rGraphic, | ||
const OUString & | rFile | ||
) |
Definition at line 384 of file viewfun7.cxx.
References Point::AdjustX(), aName, ScDrawView::ApplyGraphicToObject(), ScDrawView::CalcNormScale(), ScTabView::GetActiveWin(), SdrPaintView::getHitTolLog(), MapMode::GetMapUnit(), SdrPaintView::GetModel(), ScDrawLayer::GetNewGraphicName(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), ScTabView::GetScDrawView(), SdrPaintView::getSdrModelFromSdrView(), SdrPaintView::GetSdrPageView(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDrawView::InsertObjectSafe(), vcl::Window::LogicToLogic(), ScTabView::MakeDrawLayer(), SdrMarkView::MarkObj(), SdrMarkView::PickObj(), ScResId(), ScTabViewShell::SetDrawShell(), MapMode::SetScaleX(), MapMode::SetScaleY(), and Size::Width().
Referenced by ScTabViewShell::ExecGallery(), PasteBitmapEx(), PasteDataFormat(), PasteFile(), and PasteMetaFile().
bool ScViewFunc::PasteLink | ( | const css::uno::Reference< css::datatransfer::XTransferable > & | rxTransferable | ) |
Definition at line 703 of file viewfun5.cxx.
References convertLineEnd(), ScTabView::CursorPosChanged(), ScTabView::DoneBlockMode(), EnterMatrix(), ScGlobal::GetAbsDocName(), ScViewData::GetCurX(), ScViewData::GetCurY(), formula::FormulaCompiler::GetNativeSymbol(), TransferableDataHelper::GetSequence(), TransferableDataHelper::GetString(), ScViewData::GetTabNo(), o3tl::getToken(), comphelper::string::getTokenCount(), ScTabView::GetViewData(), formula::FormulaGrammar::GRAM_NATIVE, TransferableDataHelper::HasFormat(), ScTabView::HideAllCursors(), i, ScTabView::InitBlockMode(), LINEEND_LF, ScTabView::MarkCursor(), ocClose, ocDde, ocOpen, ocSep, p, and ScTabView::ShowAllCursors().
Referenced by PasteDataFormat().
bool ScViewFunc::PasteMetaFile | ( | const Point & | rPos, |
const GDIMetaFile & | rMtf | ||
) |
Definition at line 378 of file viewfun7.cxx.
References PasteGraphic().
Referenced by PasteDataFormat().
|
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().
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 |
||
) |
Definition at line 285 of file viewfun7.cxx.
References Point::AdjustX(), aName, SfxObjectShell::GetEmbeddedObjectContainer(), comphelper::EmbeddedObjectContainer::GetEmbeddedObjectName(), SfxViewShell::GetObjectShell(), ScTabView::GetScDrawView(), SdrPaintView::getSdrModelFromSdrView(), SdrPaintView::GetSdrPageView(), svt::EmbeddedObjectRef::GetSize(), ScTabView::GetViewData(), ScViewData::GetViewShell(), comphelper::EmbeddedObjectContainer::HasEmbeddedObject(), Size::Height(), comphelper::EmbeddedObjectContainer::InsertEmbeddedObject(), ScDrawView::InsertObjectSafe(), Size::IsEmpty(), OutputDevice::LogicToLogic(), ScTabView::MakeDrawLayer(), ScTabViewShell::SetDrawShell(), svt::EmbeddedObjectRef::SetGraphic(), Size::setHeight(), Size::setWidth(), VCLUnoHelper::UnoEmbed2VCLMapUnit(), and Size::Width().
Referenced by PasteDataFormat(), and PasteFile().
bool ScViewFunc::PasteOnDrawObjectLinked | ( | const css::uno::Reference< css::datatransfer::XTransferable > & | rxTransferable, |
SdrObject & | rHitObj | ||
) |
Definition at line 768 of file viewfun3.cxx.
References ScDrawView::ApplyGraphicToObject(), TransferableDataHelper::GetBitmapEx(), TransferableDataHelper::GetGDIMetaFile(), ScTabView::GetScDrawView(), TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::HasFormat(), TypeSerializer::readGraphic(), and ScResId().
Referenced by ScGridWindow::ExecuteDrop().
|
private |
Definition at line 78 of file viewfun4.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ALL, aStr, ScDocument::CopyToDocument(), ScDocument::EnableUndo(), EnterData(), VclPtr< class reference_type >::get(), ScTabView::GetActiveWin(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetEnginePool(), ScDocument::GetPattern(), ScImportExport::GetRange(), ScDocument::GetSheetLimits(), TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::GetString(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), TransferableDataHelper::HasFormat(), ScTabView::HideAllCursors(), ScImportExport::ImportStream(), ScImportExport::ImportString(), EditView::InsertText(), ScDocument::IsUndoEnabled(), ScDocument::MaxRow(), n, NOCAPTIONS, pObject, ScAddress::Row(), SCDOCMODE_UNDO, ScMarkData::SetMarkArea(), EditView::SetOutputArea(), ScTabView::ShowAllCursors(), ScDocShell::UpdateOle(), and xStream.
Referenced by PasteDataFormat().
|
private |
Definition at line 1797 of file viewfun3.cxx.
References ScRange::aEnd, ScRange::aStart, ScViewData::GetDocShell(), ScDocShell::GetModel(), HelperNotifyChanges::getMustPropagateChangesModel(), ScTabView::GetViewData(), i, n, HelperNotifyChanges::Notify(), ScRangeList::push_back(), ScTabView::SelectionChanged(), ScAddress::SetTab(), ScRangeList::size(), and ScDocShell::UpdateOle().
Referenced by PasteFromClip(), PasteFromClipToMultiRanges(), and PasteMultiRangesFromClip().
void ScViewFunc::ProtectDoc | ( | const OUString & | rPassword | ) |
broadcast to all views
Definition at line 2678 of file viewfunc.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScDocFunc::Protect(), TABLEID_DOC, and ScTabView::UpdateLayerLocks().
Referenced by ScTabViewShell::Execute().
void ScViewFunc::ProtectSheet | ( | SCTAB | nTab, |
const ScTableProtection & | rProtect | ||
) |
broadcast to all views
Definition at line 2648 of file viewfunc.cxx.
References SfxUndoManager::EnterListAction(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), ScDocFunc::ProtectSheet(), ScResId(), TABLEID_DOC, and ScTabView::UpdateLayerLocks().
Referenced by ScTabViewShell::Execute().
void ScViewFunc::RemoveManualBreaks | ( | ) |
Definition at line 1004 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CopyToDocument(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScDocument::IsUndoEnabled(), ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), ScDocument::RemoveManualBreaks(), SCDOCMODE_UNDO, ScDocShell::SetDocumentModified(), ScTabView::UpdatePageBreakData(), and ScDocument::UpdatePageBreaks().
Referenced by ScTabViewShell::Execute(), and ScUndoRemoveBreaks::Repeat().
bool ScViewFunc::RemoveMerge | ( | ) |
bOk ??
Definition at line 1345 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTabView::ErrorMessage(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), ScAddress::GetColRowString(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScCellMergeOption::getFirstSingleRange(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScTabView::GetViewData(), i, ScEditableTester::IsEditable(), lcl_extendMergeRange(), ScTabView::MarkRange(), ScCellMergeOption::maTabs, ScAddress::Row(), SC_MARK_SIMPLE, ScAddress::SetTab(), ScDocFunc::UnmergeCells(), and ScDocShell::UpdateOle().
Referenced by ScCellShell::Execute().
void ScViewFunc::RemoveStyleSheetInUse | ( | const SfxStyleSheetBase * | pStyleSheet | ) |
Definition at line 1530 of file viewfunc.cxx.
References ScInputHandler::ForgetLastPattern(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScDocShell::PostPaint(), SC_MOD, ScDocShellModificator::SetDocumentModified(), and ScDocument::StyleSheetChanged().
Referenced by ScTabViewShell::ExecStyle().
bool ScViewFunc::RenameTable | ( | const OUString & | rName, |
SCTAB | nTabNr | ||
) |
Definition at line 2645 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScViewData::GetViewShell(), RenameTable(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScTabControl::AllowRenaming(), ScTabViewShell::ExecuteTable(), and RenameTable().
void ScViewFunc::ReplaceNote | ( | const ScAddress & | rPos, |
const OUString & | rNoteText, | ||
const OUString * | pAuthor, | ||
const OUString * | pDate | ||
) |
Definition at line 2737 of file viewfunc.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScDocFunc::ReplaceNote().
Referenced by ScCellShell::ExecuteEdit().
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().
bool ScViewFunc::SelectionEditable | ( | bool * | pOnlyNotBecauseOfMatrix = nullptr | ) |
Definition at line 274 of file viewfunc.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScViewData::GetMarkData(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScDocument::IsBlockEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), and ScDocument::IsSelectionEditable().
Referenced by ApplyAttr(), ApplyAttributes(), ApplyUserItemSet(), ScViewFunctionSet::BeginDrag(), ChangeNumFmtDecimals(), DeleteContents(), ScCellShell::ExecuteEdit(), ScCellShell::GetBlockState(), ScTabViewShell::InsertURLField(), ScEditableTester::ScEditableTester(), SetNumberFormat(), SetNumFmtByStr(), SetSelectionFrameLines(), and SetStyleSheetToMarked().
void ScViewFunc::SetMarkedWidthOrHeight | ( | bool | bWidth, |
ScSizeMode | eMode, | ||
sal_uInt16 | nSizeTwips | ||
) |
Definition at line 2482 of file viewfunc.cxx.
References ScTabView::DoneBlockMode(), eMode, ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetMarkData(), ScMarkData::GetMarkedColSpans(), ScMarkData::GetMarkedRowSpans(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScTabView::InitOwnBlockMode(), ScMarkData::IsMultiMarked(), ScTabView::MarkDataChanged(), ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), ScMarkData::SetMultiMarkArea(), and SetWidthOrHeight().
Referenced by ScCellShell::Execute().
void ScViewFunc::SetNoteText | ( | const ScAddress & | rPos, |
const OUString & | rNoteText | ||
) |
Definition at line 2732 of file viewfunc.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), and ScDocFunc::SetNoteText().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::SetNumberFormat | ( | SvNumFormatType | nFormatType, |
sal_uLong | nAdd = 0 |
||
) |
Definition at line 2742 of file viewfunc.cxx.
References ApplySelectionPattern(), ATTR_VALUE_FORMAT(), ScGlobal::eLnge, ScTabView::ErrorMessage(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), ScDocument::GetFormatTable(), ScPatternAttr::GetItemSet(), SvNumberformat::GetLanguage(), ScDocument::GetNumberFormat(), ScDocument::GetPool(), SvNumberFormatter::GetStandardFormat(), ScViewData::GetTabNo(), ScTabView::GetViewData(), SfxItemSet::Put(), rSet, and SelectionEditable().
Referenced by ScFormatShell::ExecuteNumFormat(), and InsertCurrentTime().
void ScViewFunc::SetNumFmtByStr | ( | const OUString & | rCode | ) |
???
else return error / issue warning ???
Definition at line 2776 of file viewfunc.cxx.
References ApplySelectionPattern(), ATTR_LANGUAGE_FORMAT(), ATTR_VALUE_FORMAT(), ScGlobal::eLnge, ScTabView::ErrorMessage(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetEntryKey(), ScDocument::GetFormatTable(), ScPatternAttr::GetItemSet(), SvNumberformat::GetLanguage(), ScDocument::GetNumberFormat(), ScDocument::GetPool(), ScViewData::GetTabNo(), ScTabView::GetViewData(), nType, NUMBERFORMAT_ENTRY_NOT_FOUND, SfxItemSet::Put(), SvNumberFormatter::PutEntry(), rSet, and SelectionEditable().
Referenced by ScFormatShell::ExecuteNumFormat().
void ScViewFunc::SetPrintRanges | ( | bool | bEntireSheet, |
const OUString * | pPrint, | ||
const OUString * | pRepCol, | ||
const OUString * | pRepRow, | ||
bool | bAddPrint | ||
) |
Definition at line 1043 of file viewfun2.cxx.
References ScDocument::AddPrintRange(), SfxUndoManager::AddUndoAction(), ScDocument::ClearPrintRanges(), ScDocument::CreatePrintRangeSaver(), ScMarkData::FillRangeListWithMarks(), tools::JsonWriter::finishAndGetAsOString(), tools::SvRef< typename T >::get(), ScDocument::GetAddressConvention(), ScViewData::GetBindings(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), formula::FormulaCompiler::GetNativeSymbolChar(), ScDocShell::GetPrinter(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScViewData::GetViewShell(), i, SfxBindings::Invalidate(), comphelper::LibreOfficeKit::isActive(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), SfxViewShell::libreOfficeKitViewCallback(), ScMarkData::MarkToMulti(), n, nPos, ocSep, ScRange::ParseAny(), SC_MARK_SIMPLE, ScDocShell::SetDocumentModified(), ScDocument::SetPrintEntireSheet(), ScDocument::SetRepeatColRange(), ScDocument::SetRepeatRowRange(), ScPrintFunc::UpdatePages(), and VALID.
Referenced by ScTabViewShell::Execute(), and ScGridWindow::PagebreakMove().
void ScViewFunc::SetPrintZoom | ( | sal_uInt16 | nScale | ) |
Definition at line 1028 of file viewfun2.cxx.
References ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), and ScDocShell::SetPrintZoom().
Referenced by ScTabViewShell::Execute().
void ScViewFunc::SetSelectionFrameLines | ( | const ::editeng::SvxBorderLine * | pLine, |
bool | bColorOnly | ||
) |
Definition at line 3356 of file viewfun2.cxx.
References ScRange::aEnd, ApplyAttributes(), ScDocument::ApplySelectionLineStyle(), ScRange::aStart, ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_INNER(), ATTR_BORDER_TLBR(), Bottom, ScAddress::Col(), ScTabView::ErrorMessage(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), SvxBoxItem::GetLeft(), SvxLineItem::GetLine(), ScMarkData::GetMultiMarkArea(), ScDocument::GetPool(), GetSelectionPattern(), SvxBoxItem::GetTop(), ScTabView::GetViewData(), Grid, Left, ScMarkData::MarkToMulti(), ScDocShell::PostPaint(), SfxItemSet::Put(), SvxBoxInfoItem::ResetFlags(), Right, ScAddress::Row(), SC_PF_LINES, SC_PF_TESTMERGE, SelectionEditable(), SET_LINE_ATTRIBUTES, ScDocShell::SetDocumentModified(), SvxLineItem::SetLine(), SvxBoxInfoItem::SetLine(), ScAddress::Tab(), Top, ScViewUtil::UnmarkFiltered(), UpdateLineAttrs(), and ScDocShell::UpdateOle().
Referenced by ScFormatShell::ExecuteAttr().
void ScViewFunc::SetStyleSheetToMarked | ( | const SfxStyleSheet * | pStyleSheet | ) |
Definition at line 1435 of file viewfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustBlockHeight(), ScRange::aEnd, aName, ScDocument::ApplySelectionStyle(), ScDocument::ApplyStyle(), ScRange::aStart, ATTRIB, ScDocument::CopyToDocument(), ScTabView::ErrorMessage(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScMarkData::GetMultiMarkArea(), SfxStyleSheetBase::GetName(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), Grid, ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), ScDocShell::PostPaint(), ScDocShell::PostPaintCell(), SCDOCMODE_UNDO, SelectionEditable(), ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMultiMarkArea(), ScAddress::SetTab(), StartFormatArea(), and ScViewUtil::UnmarkFiltered().
Referenced by ScTabViewShell::ExecStyle(), ScGridWindow::MouseButtonUp(), and ScUndoSelectionStyle::Repeat().
Definition at line 2658 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDocFunc::SetTabBgColor(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScTabViewShell::ExecuteTable().
bool ScViewFunc::SetTabBgColor | ( | ScUndoTabColorInfo::List & | rUndoSetTabBgColorInfoList | ) |
Definition at line 2668 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScDocFunc::SetTabBgColor(), and ScTabViewShell::UpdateInputHandler().
void ScViewFunc::SetValidation | ( | const ScValidationData & | rNew | ) |
Definition at line 3459 of file viewfun2.cxx.
References ScDocument::AddValidationEntry(), ApplyAttr(), ATTR_VALIDDATA(), ScViewData::GetDocument(), ScTabView::GetViewData(), and nIndex.
Referenced by ScCellShell::ExecuteDB().
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().
void ScViewFunc::ShowNote | ( | bool | bShow | ) |
Definition at line 498 of file viewfun6.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScTabView::HideNoteMarker(), and ScDocFunc::ShowNote().
Referenced by ScCellShell::ExecuteEdit().
void ScViewFunc::ShowTable | ( | const std::vector< OUString > & | rNames | ) |
Definition at line 3202 of file viewfun2.cxx.
References SfxUndoManager::AddUndoAction(), aName, Extras, ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetTable(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScDocument::IsUndoEnabled(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nPos, ScDocShell::PostPaint(), ScDocShell::SetDocumentModified(), ScTabView::SetTabNo(), ScDocument::SetVisible(), and SfxGetpApp().
Referenced by ScTabViewShell::ExecuteTable().
void ScViewFunc::Solve | ( | const ScSolveParam & | rParam | ) |
Definition at line 2247 of file viewfun2.cxx.
References ScSolveParam::aRefFormulaCell, ScSolveParam::aRefVariableCell, ScAddress::Col(), Application::CreateMessageDialog(), EnterValue(), vcl::Window::EnterWait(), ScTabView::ErrorMessage(), ScViewData::GetDocument(), ScDocument::GetFormatTable(), ScTabView::GetFrameWin(), ScEditableTester::GetMessageId(), ScPatternAttr::GetNumberFormat(), SvNumberFormatter::GetOutputString(), ScDocument::GetPattern(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScEditableTester::IsEditable(), vcl::Window::LeaveWait(), p, ScSolveParam::pStrTargetVal, RET_NO, RET_YES, ScAddress::Row(), ScResId(), ScDocument::Solver(), ScAddress::Tab(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScCellShell::ExecuteEdit().
|
private |
Definition at line 132 of file viewfunc.cxx.
References ScRange::aEnd, aFormatArea, aFormatSource, ScRange::aStart, bFormatValid, ScViewData::GetSimpleArea(), ScTabView::GetViewData(), SC_MARK_SIMPLE, and SC_MOD.
Referenced by ApplyPatternLines(), ApplySelectionPattern(), ChangeIndent(), DeleteContents(), SetStyleSheetToMarked(), and TestFormatArea().
void ScViewFunc::TabOp | ( | const ScTabOpParam & | rParam, |
bool | bRecord = true |
||
) |
Definition at line 2317 of file viewfun2.cxx.
References ScTabView::ErrorMessage(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScTabView::GetViewData(), SC_MARK_SIMPLE, and ScDocFunc::TabOp().
Referenced by ScCellShell::ExecuteEdit(), and ScUndoTabOp::Redo().
Test if cell empty ???
Definition at line 154 of file viewfunc.cxx.
References ScRange::aEnd, aFormatArea, aFormatSource, ScRange::aStart, bFormatValid, ScAddress::Col(), ScAddress::Row(), SC_MOD, ScAddress::SetCol(), ScAddress::SetRow(), StartFormatArea(), and ScAddress::Tab().
Referenced by EnterData().
bool ScViewFunc::TestMergeCells | ( | ) |
Definition at line 1162 of file viewfun2.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScViewData::GetMarkData(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScAddress::Row(), and SC_MARK_SIMPLE.
Referenced by ScCellShell::GetState().
bool ScViewFunc::TestRemoveMerge | ( | ) |
Definition at line 1306 of file viewfun2.cxx.
References ScViewData::GetDocument(), ScTabView::GetViewData(), ScDocument::HasAttrib(), Merged, and SC_MARK_SIMPLE.
Referenced by ScCellShell::GetState().
void ScViewFunc::TransliterateText | ( | TransliterationFlags | nType | ) |
Definition at line 1882 of file viewfun2.cxx.
References ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), ScTabView::GetViewData(), ScViewData::GetViewShell(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), nType, ScMarkData::SetMarkArea(), TransliterateText(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScCellShell::ExecuteRotateTrans(), ScCellShell::ExecuteTrans(), and TransliterateText().
bool ScViewFunc::Unprotect | ( | SCTAB | nTab, |
const OUString & | rPassword | ||
) |
broadcast to all views
Definition at line 2688 of file viewfunc.cxx.
References SfxUndoManager::EnterListAction(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetMarkData(), ScMarkData::GetSelectCount(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), ScResId(), ScTabView::SetTabProtectionSymbol(), TABLEID_DOC, ScDocFunc::Unprotect(), and ScTabView::UpdateLayerLocks().
Referenced by ScTabViewShell::Execute().
|
staticprotected |
Definition at line 3321 of file viewfun2.cxx.
Referenced by SetSelectionFrameLines().
void ScViewFunc::UpdateSelectionArea | ( | const ScMarkData & | rSel, |
ScPatternAttr * | pAttr = nullptr |
||
) |
Definition at line 3119 of file viewfunc.cxx.
References AdjustBlockHeight(), ScRange::aEnd, ScRange::aStart, ATTR_BORDER(), ATTR_HOR_JUSTIFY(), ATTR_SHADOW(), ScAddress::Col(), ScViewData::GetDocShell(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScMarkData::GetMarkArea(), ScMarkData::GetMultiMarkArea(), ScTabView::GetViewData(), ScViewData::GetViewShell(), Grid, ScMarkData::IsMultiMarked(), ScDocShell::PostPaint(), ScAddress::Row(), SC_PF_LINES, SC_PF_TESTMERGE, SC_PF_WHOLEROWS, and ScAddress::Tab().
Referenced by ScFormatShell::ExecuteAttr(), ScFormatShell::ExecuteStyle(), and FuText::StopEditMode().
void ScViewFunc::UpdateStyleSheetInUse | ( | const SfxStyleSheetBase * | pStyleSheet | ) |
Definition at line 1556 of file viewfunc.cxx.
References ScInputHandler::ForgetLastPattern(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScDocShell::PostPaint(), SC_MOD, ScDocShellModificator::SetDocumentModified(), and ScDocument::StyleSheetChanged().
Referenced by ScTabViewShell::ExecStyle().
void ScViewFunc::UseScenario | ( | const OUString & | rName | ) |
Definition at line 2369 of file viewfun2.cxx.
References ScTabView::DoneBlockMode(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScTabView::InitOwnBlockMode(), and ScDocShell::UseScenario().
Referenced by ScCellShell::ExecuteEdit(), and ScGridWindow::FilterSelect().
|
private |
Definition at line 74 of file viewfunc.hxx.
Referenced by StartFormatArea(), and TestFormatArea().
|
private |
Definition at line 73 of file viewfunc.hxx.
Referenced by DoAutoAttributes(), StartFormatArea(), and TestFormatArea().
|
private |
Definition at line 75 of file viewfunc.hxx.
Referenced by DeleteContents(), StartFormatArea(), and TestFormatArea().