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

#include <undodat.hxx>

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

Public Member Functions

 ScUndoAutoFilter (ScDocShell *pNewDocShell, const ScRange &rRange, OUString aName, bool bSet)
 
virtual ~ScUndoAutoFilter () 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 ScDBFuncUndo
 ScDBFuncUndo (ScDocShell *pDocSh, const ScRange &rOriginal)
 
virtual ~ScDBFuncUndo () override
 
void BeginUndo ()
 
void EndUndo ()
 
void BeginRedo ()
 
void EndRedo ()
 
- 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 Member Functions

void DoChange (bool bUndo)
 

Private Attributes

OUString aDBName
 
bool bFilterSet
 

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 ScDBFuncUndo
std::unique_ptr< ScDBDatapAutoDBRange
 
ScRange aOriginalRange
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 237 of file undodat.hxx.

Constructor & Destructor Documentation

◆ ScUndoAutoFilter()

ScUndoAutoFilter::ScUndoAutoFilter ( ScDocShell pNewDocShell,
const ScRange rRange,
OUString  aName,
bool  bSet 
)

Definition at line 900 of file undodat.cxx.

References aName.

◆ ~ScUndoAutoFilter()

ScUndoAutoFilter::~ScUndoAutoFilter ( )
overridevirtual

Definition at line 908 of file undodat.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 972 of file undodat.cxx.

◆ DoChange()

void ScUndoAutoFilter::DoChange ( bool  bUndo)
private

◆ GetComment()

OUString ScUndoAutoFilter::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 912 of file undodat.cxx.

References ScResId().

◆ Redo()

void ScUndoAutoFilter::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 961 of file undodat.cxx.

References ScDBFuncUndo::BeginRedo(), DoChange(), and ScDBFuncUndo::EndRedo().

◆ Repeat()

void ScUndoAutoFilter::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 968 of file undodat.cxx.

◆ Undo()

void ScUndoAutoFilter::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 954 of file undodat.cxx.

References ScDBFuncUndo::BeginUndo(), DoChange(), and ScDBFuncUndo::EndUndo().

Member Data Documentation

◆ aDBName

OUString ScUndoAutoFilter::aDBName
private

Definition at line 240 of file undodat.hxx.

Referenced by DoChange().

◆ bFilterSet

bool ScUndoAutoFilter::bFilterSet
private

Definition at line 241 of file undodat.hxx.

Referenced by DoChange().


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