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, const OUString &rNewStyle)
 
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...
 
- 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 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

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

Definition at line 96 of file undostyl.hxx.

Constructor & Destructor Documentation

ScUndoApplyPageStyle::ScUndoApplyPageStyle ( ScDocShell pDocSh,
const OUString &  rNewStyle 
)

Definition at line 221 of file undostyl.cxx.

ScUndoApplyPageStyle::~ScUndoApplyPageStyle ( )
overridevirtual

Definition at line 227 of file undostyl.cxx.

Member Function Documentation

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

Definition at line 231 of file undostyl.cxx.

References maEntries.

bool ScUndoApplyPageStyle::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 268 of file undostyl.cxx.

OUString ScUndoApplyPageStyle::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 236 of file undostyl.cxx.

References ScResId().

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

set same page style to current tab

Reimplemented from SfxUndoAction.

Definition at line 263 of file undostyl.cxx.

void ScUndoApplyPageStyle::Undo ( )
overridevirtual

Member Data Documentation

ApplyStyleVec ScUndoApplyPageStyle::maEntries
private

Definition at line 98 of file undostyl.hxx.

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

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: