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

#include <undostyl.hxx>

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

Classes

struct  ApplyStyleEntry
 

Public Member Functions

 ScUndoApplyPageStyle (ScDocShell *pDocSh, OUString aNewStyle)
 
virtual ~ScUndoApplyPageStyle () override
 
void AddSheetAction (SCTAB nTab, const OUString &rOld)
 
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...
 
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 Types

typedef ::std::vector< ApplyStyleEntryApplyStyleVec
 

Private Attributes

ApplyStyleVec maEntries
 
OUString maNewStyle
 

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

Definition at line 74 of file undostyl.hxx.

Member Typedef Documentation

◆ ApplyStyleVec

typedef ::std::vector< ApplyStyleEntry > ScUndoApplyPageStyle::ApplyStyleVec
private

Definition at line 96 of file undostyl.hxx.

Constructor & Destructor Documentation

◆ ScUndoApplyPageStyle()

ScUndoApplyPageStyle::ScUndoApplyPageStyle ( ScDocShell pDocSh,
OUString  aNewStyle 
)

Definition at line 233 of file undostyl.cxx.

◆ ~ScUndoApplyPageStyle()

ScUndoApplyPageStyle::~ScUndoApplyPageStyle ( )
overridevirtual

Definition at line 239 of file undostyl.cxx.

Member Function Documentation

◆ AddSheetAction()

void ScUndoApplyPageStyle::AddSheetAction ( SCTAB  nTab,
const OUString &  rOld 
)

Definition at line 243 of file undostyl.cxx.

References maEntries.

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 280 of file undostyl.cxx.

◆ GetComment()

OUString ScUndoApplyPageStyle::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 248 of file undostyl.cxx.

References ScResId().

◆ Redo()

void ScUndoApplyPageStyle::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoApplyPageStyle::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

set same page style to current tab

Reimplemented from SfxUndoAction.

Definition at line 275 of file undostyl.cxx.

◆ Undo()

void ScUndoApplyPageStyle::Undo ( )
overridevirtual

Member Data Documentation

◆ maEntries

ApplyStyleVec ScUndoApplyPageStyle::maEntries
private

Definition at line 98 of file undostyl.hxx.

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

◆ maNewStyle

OUString ScUndoApplyPageStyle::maNewStyle
private

Definition at line 99 of file undostyl.hxx.

Referenced by Redo().


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