LibreOffice Module sc (master) 1
|
#include <undostyl.hxx>
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< ScRange > | getAffectedRange () 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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Types | |
typedef ::std::vector< ApplyStyleEntry > | ApplyStyleVec |
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 | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 74 of file undostyl.hxx.
|
private |
Definition at line 96 of file undostyl.hxx.
ScUndoApplyPageStyle::ScUndoApplyPageStyle | ( | ScDocShell * | pDocSh, |
OUString | aNewStyle | ||
) |
Definition at line 233 of file undostyl.cxx.
|
overridevirtual |
Definition at line 239 of file undostyl.cxx.
void ScUndoApplyPageStyle::AddSheetAction | ( | SCTAB | nTab, |
const OUString & | rOld | ||
) |
Definition at line 243 of file undostyl.cxx.
References maEntries.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 280 of file undostyl.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 248 of file undostyl.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 264 of file undostyl.cxx.
References ScSimpleUndo::BeginRedo(), ScSimpleUndo::EndRedo(), ScDocShell::GetDocument(), ScDocShell::GetPrinter(), maEntries, maNewStyle, ScSimpleUndo::pDocShell, ScDocument::SetPageStyle(), and ScPrintFunc::UpdatePages().
|
overridevirtual |
set same page style to current tab
Reimplemented from SfxUndoAction.
Definition at line 275 of file undostyl.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 253 of file undostyl.cxx.
References ScSimpleUndo::BeginUndo(), ScSimpleUndo::EndUndo(), ScDocShell::GetDocument(), ScDocShell::GetPrinter(), maEntries, ScSimpleUndo::pDocShell, ScDocument::SetPageStyle(), and ScPrintFunc::UpdatePages().
|
private |
Definition at line 98 of file undostyl.hxx.
Referenced by AddSheetAction(), Redo(), and Undo().
|
private |
Definition at line 99 of file undostyl.hxx.
Referenced by Redo().