32 : pChangeAction(nullptr)
55 if(pAction!=
nullptr &&
pDocShell !=
nullptr)
62 while(pAction!=
nullptr)
76 if(pAction!=
nullptr &&
pDocShell !=
nullptr)
83 while(pAction!=
nullptr)
122 short nRet=
pDlg->Execute();
150 if (pDocShell!=
nullptr && rDlgP.GetNote() != aComment )
151 pDocShell->SetChangeComment( pChangeAction, rDlgP.GetNote());
153 ReInit(FindPrev(pChangeAction));
159 if ( pDocShell!=
nullptr && rDlgP.GetNote() != aComment )
160 pDocShell->SetChangeComment( pChangeAction, rDlgP.GetNote());
162 ReInit(FindNext(pChangeAction));
#define LINK(Instance, Class, Member)
bool IsDialogRoot() const
static bool IsActionShown(const ScChangeAction &rAction, const ScChangeViewSettings &rSettings, ScDocument &rDocument)
ScChangeAction * GetNext() const
void MarkRange(const ScRange &rRange, bool bSetCursor=true, bool bContinue=false)
ScChangeActionState GetState() const
static SvxAbstractDialogFactory * Create()
void ReInit(ScChangeAction *)
virtual VclPtr< AbstractSvxPostItDialog > CreateSvxPostItDialog(weld::Widget *pParent, const SfxItemSet &rCoreSet, bool bPrevNext=false)=0
ScChangeAction * GetPrev() const
virtual void GetDescription(OUString &rStr, ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const
VclPtr< AbstractSvxPostItDialog > pDlg
virtual void HideAuthor()=0
virtual void SetText(const OUString &rStr)=0
ScChangeAction * FindPrev(ScChangeAction *pAction)
virtual void DontChangeAuthor()=0
ScChangeAction * FindNext(ScChangeAction *pAction)
IMPL_LINK(ScRedComDialog, PrevHdl, AbstractSvxPostItDialog &, rDlgP, void)
virtual void ShowLastAuthor(const OUString &rAuthor, const OUString &rDate)=0
const OUString & GetComment() const
bool IsValid(const ScDocument &rDoc) const
virtual void EnableTravel(bool bNext, bool bPrev)=0
ScBigRange & GetBigRange()
static ScViewData * GetViewData()
ScDBFunc * GetView() const
void SetChangeComment(ScChangeAction *pAction, const OUString &rComment)
static SC_DLLPUBLIC const LocaleDataWrapper * getLocaleDataPtr()
OUString getDate(const Date &rDate) const
virtual void SetNextHdl(const Link< AbstractSvxPostItDialog &, void > &rLink)=0
ScRange MakeRange() const
virtual OUString GetNote()=0
ScChangeAction * pChangeAction
ScChangeViewSettings * GetChangeViewSettings() const
const ScDocument & GetDocument() const
const OUString & GetUser() const
ScRedComDialog(weld::Window *pParent, const SfxItemSet &rCoreSet, ScDocShell *pShell, ScChangeAction *pAction, bool bPrevNext)
OUString getTime(const tools::Time &rTime, bool bSec=true, bool b100Sec=false) const
SC_DLLPUBLIC DateTime GetDateTime() const
virtual void SetNote(const OUString &rTxt)=0
virtual void SetPrevHdl(const Link< AbstractSvxPostItDialog &, void > &rLink)=0