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

Undo action for showing or hiding a cell note caption. More...

#include <undocell.hxx>

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

Public Member Functions

 ScUndoShowHideNote (ScDocShell &rDocShell, const ScAddress &rPos, bool bShow)
 
virtual ~ScUndoShowHideNote () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rTarget) override
 
virtual bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
virtual OUString GetComment () const override
 
virtual std::optional< ScRangegetAffectedRange () const override
 
- Public Member Functions inherited from ScSimpleUndo
 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
virtual std::optional< ScRangegetAffectedRange () const
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

ScAddress maPos
 
bool mbShown
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScSimpleUndo
bool IsPaintLocked () const
 
bool SetViewMarkData (const ScMarkData &rMarkData)
 
void BeginUndo ()
 
void EndUndo ()
 
void BeginRedo ()
 
void EndRedo ()
 
void BroadcastChanges (const ScRange &rRange)
 
void BroadcastChanges (const DataSpansType &rSpans)
 Broadcast changes on specified spans. More...
 
- Static Protected Member Functions inherited from ScSimpleUndo
static void ShowTable (SCTAB nTab)
 
static void ShowTable (const ScRange &rRange)
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Undo action for showing or hiding a cell note caption.

Definition at line 286 of file undocell.hxx.

Constructor & Destructor Documentation

◆ ScUndoShowHideNote()

ScUndoShowHideNote::ScUndoShowHideNote ( ScDocShell rDocShell,
const ScAddress rPos,
bool  bShow 
)

Definition at line 836 of file undocell.cxx.

◆ ~ScUndoShowHideNote()

ScUndoShowHideNote::~ScUndoShowHideNote ( )
overridevirtual

Definition at line 843 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoShowHideNote::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 867 of file undocell.cxx.

◆ getAffectedRange()

virtual std::optional< ScRange > ScUndoShowHideNote::getAffectedRange ( ) const
inlineoverridevirtual

Reimplemented from ScSimpleUndo.

Definition at line 299 of file undocell.hxx.

References maPos.

◆ GetComment()

OUString ScUndoShowHideNote::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 872 of file undocell.cxx.

References mbShown, and ScResId().

◆ Redo()

void ScUndoShowHideNote::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoShowHideNote::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 863 of file undocell.cxx.

◆ Undo()

void ScUndoShowHideNote::Undo ( )
overridevirtual

Member Data Documentation

◆ maPos

ScAddress ScUndoShowHideNote::maPos
private

Definition at line 302 of file undocell.hxx.

Referenced by getAffectedRange(), Redo(), and Undo().

◆ mbShown

bool ScUndoShowHideNote::mbShown
private

Definition at line 303 of file undocell.hxx.

Referenced by GetComment(), Redo(), and Undo().


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