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
 
- Public Member Functions inherited from ScSimpleUndo
 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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 279 of file undocell.hxx.

Constructor & Destructor Documentation

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

Definition at line 830 of file undocell.cxx.

ScUndoShowHideNote::~ScUndoShowHideNote ( )
overridevirtual

Definition at line 837 of file undocell.cxx.

Member Function Documentation

bool ScUndoShowHideNote::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 861 of file undocell.cxx.

OUString ScUndoShowHideNote::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 866 of file undocell.cxx.

References mbShown, and ScResId().

void ScUndoShowHideNote::Redo ( )
overridevirtual
void ScUndoShowHideNote::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 857 of file undocell.cxx.

void ScUndoShowHideNote::Undo ( )
overridevirtual

Member Data Documentation

ScAddress ScUndoShowHideNote::maPos
private

Definition at line 293 of file undocell.hxx.

Referenced by Redo(), and Undo().

bool ScUndoShowHideNote::mbShown
private

Definition at line 294 of file undocell.hxx.

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


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