sc/source/ui/inc/docfunc.hxx | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-)
New commits: commit 2a085daf8d7a429a3eb9bd89cda7a693e33c4300 Author: Tomaž Vajngerl <[email protected]> AuthorDate: Thu Feb 19 18:30:23 2026 +0900 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Feb 20 14:19:45 2026 +0100 sc: remove the need for setting operations as friends of ScDocFunc Make the needed methods public. Change-Id: I7361770b56fd3d6412a6abda63e2d05313dcea21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199704 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index 5e67ed2c7ad1..ae6de45fd044 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -59,15 +59,6 @@ namespace sc class SparklineGroup; class Sparkline; enum class OperationType; - class DeleteContentOperation; - class DeleteCellOperation; - class SetNormalStringOperation; - class SetValueOperation; - class SetStringOperation; - class SetEditTextOperation; - class SetFormulaOperation; - class ApplyAttributesOperation; - class InsertCellsOperation; } namespace tools { @@ -76,31 +67,22 @@ namespace tools class ScDocFunc { - friend class sc::DeleteContentOperation; - friend class sc::DeleteCellOperation; - friend class sc::SetNormalStringOperation; - friend class sc::SetValueOperation; - friend class sc::SetStringOperation; - friend class sc::SetEditTextOperation; - friend class sc::SetFormulaOperation; - friend class sc::ApplyAttributesOperation; - friend class sc::InsertCellsOperation; - ScDocShell& rDocShell; static bool CheckSheetViewProtection(sc::OperationType eOperation); protected: - bool AdjustRowHeight( const ScRange& rRange, bool bPaint, bool bApi ); void CreateOneName( ScRangeName& rList, SCCOL nPosX, SCROW nPosY, SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool& rCancel, bool bApi ); - void NotifyInputHandler( const ScAddress& rPos ); ScDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {} public: virtual ~ScDocFunc() {} + bool AdjustRowHeight( const ScRange& rRange, bool bPaint, bool bApi ); + void NotifyInputHandler( const ScAddress& rPos ); + void NotifyDrawUndo(std::unique_ptr<SdrUndoAction>); // for grouping multiple operations into one with a new name
