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

#include <acredlin.hxx>

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

Public Member Functions

 ScAcceptChgDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData *ptrViewData)
 
virtual ~ScAcceptChgDlg () override
 
void ReInit (ScViewData *ptrViewData)
 
void Initialize (SfxChildWinInfo *pInfo)
 
virtual void FillInfo (SfxChildWinInfo &) const override
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

Private Member Functions

void Init ()
 
 DECL_LINK (FilterHandle, SvxTPFilter *, void)
 
 DECL_LINK (RefHandle, SvxTPFilter *, void)
 
 DECL_LINK (RejectHandle, SvxTPView *, void)
 
 DECL_LINK (AcceptHandle, SvxTPView *, void)
 
 DECL_LINK (RejectAllHandle, SvxTPView *, void)
 
 DECL_LINK (AcceptAllHandle, SvxTPView *, void)
 
 DECL_LINK (ExpandingHandle, const weld::TreeIter &, bool)
 
 DECL_LINK (SelectHandle, weld::TreeView &, void)
 
 DECL_LINK (RefInfoHandle, const OUString *, void)
 
 DECL_LINK (UpdateSelectionHdl, Timer *, void)
 
 DECL_LINK (ChgTrackModHdl, ScChangeTrack &, void)
 
 DECL_LINK (CommandHdl, const CommandEvent &, bool)
 
 DECL_LINK (ReOpenTimerHdl, Timer *, void)
 
int ColCompareHdl (const weld::TreeIter &rLeft, const weld::TreeIter &rRight) const
 
void RejectFiltered ()
 
void AcceptFiltered ()
 
bool IsValidAction (const ScChangeAction *pScChangeAction)
 
OUString * MakeTypeString (ScChangeActionType eType)
 
std::unique_ptr< weld::TreeIterAppendChangeAction (const ScChangeAction *pScChangeAction, bool bCreateOnDemand, const weld::TreeIter *pParent=nullptr, bool bDelMaster=false, bool bDisabled=false)
 
std::unique_ptr< weld::TreeIterAppendFilteredAction (const ScChangeAction *pScChangeAction, ScChangeActionState eState, bool bCreateOnDemand, const weld::TreeIter *pParent=nullptr, bool bDelMaster=false, bool bDisabled=false)
 
std::unique_ptr< weld::TreeIterInsertChangeActionContent (const ScChangeActionContent *pScChangeAction, const weld::TreeIter &rParent, sal_uLong nSpecial)
 
void GetDependents (const ScChangeAction *pScChangeAction, ScChangeActionMap &aActionMap, const weld::TreeIter &rEntry)
 
bool InsertContentChildren (ScChangeActionMap *pActionMap, const weld::TreeIter &rParent)
 
bool InsertAcceptedORejected (const weld::TreeIter &rParent)
 
bool InsertDeletedChildren (const ScChangeAction *pChangeAction, ScChangeActionMap *pActionMap, const weld::TreeIter &rParent)
 
bool InsertChildren (ScChangeActionMap *pActionMap, const weld::TreeIter &rParent)
 
void AppendChanges (const ScChangeTrack *pChanges, sal_uLong nStartAction, sal_uLong nEndAction)
 
void RemoveEntries (sal_uLong nStartAction, sal_uLong nEndAction)
 
void UpdateEntries (const ScChangeTrack *pChgTrack, sal_uLong nStartAction, sal_uLong nEndAction)
 
void UpdateView ()
 
void ClearView ()
 
bool Expand (const ScChangeTrack *pChanges, const ScChangeAction *pScChangeAction, const weld::TreeIter &rEntry, bool bFilter=false)
 

Private Attributes

Idle aSelectionIdle
 
Idle aReOpenIdle
 
ScViewDatapViewData
 
ScDocumentpDoc
 
ScRangeList aRangeList
 
ScChangeViewSettings aChangeViewSet
 
OUString aStrInsertCols
 
OUString aStrInsertRows
 
OUString aStrInsertTabs
 
OUString aStrDeleteCols
 
OUString aStrDeleteRows
 
OUString aStrDeleteTabs
 
OUString aStrMove
 
OUString aStrContent
 
OUString aStrReject
 
OUString aStrAllAccepted
 
OUString aStrAllRejected
 
OUString aStrNoEntry
 
OUString aStrContentWithChild
 
OUString aStrChildContent
 
OUString aStrChildOrgContent
 
OUString aStrEmpty
 
OUString aUnknown
 
sal_uLong nAcceptCount
 
sal_uLong nRejectCount
 
bool bIgnoreMsg:1
 
bool bNoSelection:1
 
bool bHasFilterEntry:1
 
bool bUseColor:1
 
SvxTPFilterpTPFilter
 
SvxTPViewpTPView
 
SvxRedlinTablepTheView
 
std::unique_ptr< weld::Containerm_xContentArea
 
std::unique_ptr< weld::Menum_xPopup
 
std::unique_ptr< weld::Menum_xSortMenu
 
std::unique_ptr< SvxAcceptChgCtrm_xAcceptChgCtr
 

Additional Inherited Members

- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 

Detailed Description

Definition at line 48 of file acredlin.hxx.

Constructor & Destructor Documentation

◆ ScAcceptChgDlg()

ScAcceptChgDlg::ScAcceptChgDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData ptrViewData 
)

◆ ~ScAcceptChgDlg()

ScAcceptChgDlg::~ScAcceptChgDlg ( )
overridevirtual

Member Function Documentation

◆ AcceptFiltered()

void ScAcceptChgDlg::AcceptFiltered ( )
private

◆ AppendChangeAction()

std::unique_ptr< weld::TreeIter > ScAcceptChgDlg::AppendChangeAction ( const ScChangeAction pScChangeAction,
bool  bCreateOnDemand,
const weld::TreeIter pParent = nullptr,
bool  bDelMaster = false,
bool  bDisabled = false 
)
private

◆ AppendChanges()

void ScAcceptChgDlg::AppendChanges ( const ScChangeTrack pChanges,
sal_uLong  nStartAction,
sal_uLong  nEndAction 
)
private

◆ AppendFilteredAction()

std::unique_ptr< weld::TreeIter > ScAcceptChgDlg::AppendFilteredAction ( const ScChangeAction pScChangeAction,
ScChangeActionState  eState,
bool  bCreateOnDemand,
const weld::TreeIter pParent = nullptr,
bool  bDelMaster = false,
bool  bDisabled = false 
)
private

◆ ClearView()

void ScAcceptChgDlg::ClearView ( )
private

◆ ColCompareHdl()

int ScAcceptChgDlg::ColCompareHdl ( const weld::TreeIter rLeft,
const weld::TreeIter rRight 
) const
private

◆ DECL_LINK() [1/13]

ScAcceptChgDlg::DECL_LINK ( AcceptAllHandle  ,
SvxTPView ,
void   
)
private

◆ DECL_LINK() [2/13]

ScAcceptChgDlg::DECL_LINK ( AcceptHandle  ,
SvxTPView ,
void   
)
private

◆ DECL_LINK() [3/13]

ScAcceptChgDlg::DECL_LINK ( ChgTrackModHdl  ,
ScChangeTrack ,
void   
)
private

◆ DECL_LINK() [4/13]

ScAcceptChgDlg::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)
private

◆ DECL_LINK() [5/13]

ScAcceptChgDlg::DECL_LINK ( ExpandingHandle  ,
const weld::TreeIter ,
bool   
)
private

◆ DECL_LINK() [6/13]

ScAcceptChgDlg::DECL_LINK ( FilterHandle  ,
SvxTPFilter ,
void   
)
private

◆ DECL_LINK() [7/13]

ScAcceptChgDlg::DECL_LINK ( RefHandle  ,
SvxTPFilter ,
void   
)
private

◆ DECL_LINK() [8/13]

ScAcceptChgDlg::DECL_LINK ( RefInfoHandle  ,
const OUString *  ,
void   
)
private

◆ DECL_LINK() [9/13]

ScAcceptChgDlg::DECL_LINK ( RejectAllHandle  ,
SvxTPView ,
void   
)
private

◆ DECL_LINK() [10/13]

ScAcceptChgDlg::DECL_LINK ( RejectHandle  ,
SvxTPView ,
void   
)
private

◆ DECL_LINK() [11/13]

ScAcceptChgDlg::DECL_LINK ( ReOpenTimerHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [12/13]

ScAcceptChgDlg::DECL_LINK ( SelectHandle  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [13/13]

ScAcceptChgDlg::DECL_LINK ( UpdateSelectionHdl  ,
Timer ,
void   
)
private

◆ Expand()

bool ScAcceptChgDlg::Expand ( const ScChangeTrack pChanges,
const ScChangeAction pScChangeAction,
const weld::TreeIter rEntry,
bool  bFilter = false 
)
private

◆ FillInfo()

void ScAcceptChgDlg::FillInfo ( SfxChildWinInfo rInfo) const
overridevirtual

◆ GetDependents()

void ScAcceptChgDlg::GetDependents ( const ScChangeAction pScChangeAction,
ScChangeActionMap aActionMap,
const weld::TreeIter rEntry 
)
private

◆ Init()

void ScAcceptChgDlg::Init ( void  )
private

Definition at line 183 of file acredlin.cxx.

References aChangeViewSet, ScChangeViewSettings::AdjustDateMode(), aRangeList, SvxTPFilter::CheckAuthor(), SvxTPFilter::CheckComment(), SvxTPFilter::CheckDate(), SvxTPFilter::CheckRange(), SvxTPFilter::ClearAuthors(), DateTime::EMPTY, ScRangeList::empty(), ScRange::Format(), ScRangeList::front(), ScDocument::GetChangeTrack(), ScDocument::GetChangeViewSettings(), SvxTPFilter::GetComment(), SvxTPFilter::GetDateMode(), SvxTPFilter::GetFirstDate(), SvxTPFilter::GetFirstTime(), SvxTPFilter::GetLastDate(), SvxTPFilter::GetLastTime(), SvxTPFilter::GetSelectedAuthor(), ScChangeViewSettings::GetTheAuthorToShow(), ScChangeViewSettings::GetTheComment(), ScChangeViewSettings::GetTheDateMode(), ScChangeViewSettings::GetTheFirstDateTime(), ScChangeViewSettings::GetTheLastDateTime(), ScChangeViewSettings::GetTheRangeList(), ScChangeTrack::GetUser(), ScChangeTrack::GetUserCollection(), ScChangeViewSettings::HasAuthor(), ScChangeViewSettings::HasComment(), ScChangeViewSettings::HasDate(), ScChangeViewSettings::HasRange(), SvxTPFilter::InsertAuthor(), SvxTPFilter::IsAuthor(), SvxTPFilter::IsComment(), SvxTPFilter::IsDate(), SvxTPFilter::IsRange(), LINK, pDoc, pTheView, pTPFilter, pViewData, RANGE_ABS_3D, utl::SearchParam::Regexp, SvxTPFilter::SelectAuthor(), SvxTPFilter::SelectedAuthorPos(), SvxRedlinTable::SetAuthor(), SvxTPFilter::SetComment(), SvxRedlinTable::SetCommentParams(), SvxTPFilter::SetDateMode(), SvxRedlinTable::SetDateTimeMode(), SvxRedlinTable::SetFilterAuthor(), SvxRedlinTable::SetFilterComment(), SvxRedlinTable::SetFilterDate(), SvxRedlinTable::SetFirstDate(), SvxTPFilter::SetFirstDate(), SvxRedlinTable::SetFirstTime(), SvxTPFilter::SetFirstTime(), SvxRedlinTable::SetLastDate(), SvxTPFilter::SetLastDate(), SvxRedlinTable::SetLastTime(), SvxTPFilter::SetLastTime(), ScChangeTrack::SetModifiedLink(), SvxTPFilter::SetRange(), ScChangeViewSettings::SetTheAuthorToShow(), and SvxRedlinTable::UpdateFilterTest().

Referenced by ScAcceptChgDlg().

◆ Initialize()

void ScAcceptChgDlg::Initialize ( SfxChildWinInfo pInfo)

◆ InsertAcceptedORejected()

bool ScAcceptChgDlg::InsertAcceptedORejected ( const weld::TreeIter rParent)
private

◆ InsertChangeActionContent()

std::unique_ptr< weld::TreeIter > ScAcceptChgDlg::InsertChangeActionContent ( const ScChangeActionContent pScChangeAction,
const weld::TreeIter rParent,
sal_uLong  nSpecial 
)
private

◆ InsertChildren()

bool ScAcceptChgDlg::InsertChildren ( ScChangeActionMap pActionMap,
const weld::TreeIter rParent 
)
private

◆ InsertContentChildren()

bool ScAcceptChgDlg::InsertContentChildren ( ScChangeActionMap pActionMap,
const weld::TreeIter rParent 
)
private

◆ InsertDeletedChildren()

bool ScAcceptChgDlg::InsertDeletedChildren ( const ScChangeAction pChangeAction,
ScChangeActionMap pActionMap,
const weld::TreeIter rParent 
)
private

◆ IsValidAction()

bool ScAcceptChgDlg::IsValidAction ( const ScChangeAction pScChangeAction)
private

◆ MakeTypeString()

OUString * ScAcceptChgDlg::MakeTypeString ( ScChangeActionType  eType)
private

◆ ReInit()

void ScAcceptChgDlg::ReInit ( ScViewData ptrViewData)

◆ RejectFiltered()

void ScAcceptChgDlg::RejectFiltered ( )
private

◆ RemoveEntries()

void ScAcceptChgDlg::RemoveEntries ( sal_uLong  nStartAction,
sal_uLong  nEndAction 
)
private

◆ UpdateEntries()

void ScAcceptChgDlg::UpdateEntries ( const ScChangeTrack pChgTrack,
sal_uLong  nStartAction,
sal_uLong  nEndAction 
)
private

◆ UpdateView()

void ScAcceptChgDlg::UpdateView ( )
private

Member Data Documentation

◆ aChangeViewSet

ScChangeViewSettings ScAcceptChgDlg::aChangeViewSet
private

Definition at line 55 of file acredlin.hxx.

Referenced by Init().

◆ aRangeList

ScRangeList ScAcceptChgDlg::aRangeList
private

◆ aReOpenIdle

Idle ScAcceptChgDlg::aReOpenIdle
private

Definition at line 51 of file acredlin.hxx.

Referenced by ScAcceptChgDlg().

◆ aSelectionIdle

Idle ScAcceptChgDlg::aSelectionIdle
private

Definition at line 50 of file acredlin.hxx.

Referenced by ScAcceptChgDlg().

◆ aStrAllAccepted

OUString ScAcceptChgDlg::aStrAllAccepted
private

Definition at line 65 of file acredlin.hxx.

Referenced by InsertAcceptedORejected(), and UpdateView().

◆ aStrAllRejected

OUString ScAcceptChgDlg::aStrAllRejected
private

Definition at line 66 of file acredlin.hxx.

Referenced by InsertAcceptedORejected(), and UpdateView().

◆ aStrChildContent

OUString ScAcceptChgDlg::aStrChildContent
private

Definition at line 69 of file acredlin.hxx.

Referenced by InsertChangeActionContent().

◆ aStrChildOrgContent

OUString ScAcceptChgDlg::aStrChildOrgContent
private

Definition at line 70 of file acredlin.hxx.

Referenced by InsertChangeActionContent().

◆ aStrContent

OUString ScAcceptChgDlg::aStrContent
private

Definition at line 63 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrContentWithChild

OUString ScAcceptChgDlg::aStrContentWithChild
private

Definition at line 68 of file acredlin.hxx.

Referenced by AppendChangeAction(), and AppendFilteredAction().

◆ aStrDeleteCols

OUString ScAcceptChgDlg::aStrDeleteCols
private

Definition at line 59 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrDeleteRows

OUString ScAcceptChgDlg::aStrDeleteRows
private

Definition at line 60 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrDeleteTabs

OUString ScAcceptChgDlg::aStrDeleteTabs
private

Definition at line 61 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrEmpty

OUString ScAcceptChgDlg::aStrEmpty
private

Definition at line 71 of file acredlin.hxx.

Referenced by InsertChangeActionContent().

◆ aStrInsertCols

OUString ScAcceptChgDlg::aStrInsertCols
private

Definition at line 56 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrInsertRows

OUString ScAcceptChgDlg::aStrInsertRows
private

Definition at line 57 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrInsertTabs

OUString ScAcceptChgDlg::aStrInsertTabs
private

Definition at line 58 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrMove

OUString ScAcceptChgDlg::aStrMove
private

Definition at line 62 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aStrNoEntry

OUString ScAcceptChgDlg::aStrNoEntry
private

Definition at line 67 of file acredlin.hxx.

◆ aStrReject

OUString ScAcceptChgDlg::aStrReject
private

Definition at line 64 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ aUnknown

OUString ScAcceptChgDlg::aUnknown
private

Definition at line 72 of file acredlin.hxx.

Referenced by MakeTypeString().

◆ bHasFilterEntry

bool ScAcceptChgDlg::bHasFilterEntry
private

◆ bIgnoreMsg

bool ScAcceptChgDlg::bIgnoreMsg
private

Definition at line 75 of file acredlin.hxx.

Referenced by ReInit().

◆ bNoSelection

bool ScAcceptChgDlg::bNoSelection
private

Definition at line 76 of file acredlin.hxx.

Referenced by ReInit().

◆ bUseColor

bool ScAcceptChgDlg::bUseColor
private

Definition at line 78 of file acredlin.hxx.

Referenced by AppendChangeAction(), AppendChanges(), and UpdateView().

◆ m_xAcceptChgCtr

std::unique_ptr<SvxAcceptChgCtr> ScAcceptChgDlg::m_xAcceptChgCtr
private

Definition at line 86 of file acredlin.hxx.

Referenced by ScAcceptChgDlg().

◆ m_xContentArea

std::unique_ptr<weld::Container> ScAcceptChgDlg::m_xContentArea
private

Definition at line 84 of file acredlin.hxx.

Referenced by ScAcceptChgDlg().

◆ m_xPopup

std::unique_ptr<weld::Menu> ScAcceptChgDlg::m_xPopup
private

Definition at line 85 of file acredlin.hxx.

◆ m_xSortMenu

std::unique_ptr<weld::Menu> ScAcceptChgDlg::m_xSortMenu
private

Definition at line 85 of file acredlin.hxx.

◆ nAcceptCount

sal_uLong ScAcceptChgDlg::nAcceptCount
private

Definition at line 73 of file acredlin.hxx.

Referenced by AppendChanges(), ClearView(), ReInit(), ScAcceptChgDlg(), and UpdateView().

◆ nRejectCount

sal_uLong ScAcceptChgDlg::nRejectCount
private

Definition at line 74 of file acredlin.hxx.

Referenced by AppendChanges(), ClearView(), ReInit(), ScAcceptChgDlg(), and UpdateView().

◆ pDoc

ScDocument* ScAcceptChgDlg::pDoc
private

◆ pTheView

SvxRedlinTable* ScAcceptChgDlg::pTheView
private

◆ pTPFilter

SvxTPFilter* ScAcceptChgDlg::pTPFilter
private

◆ pTPView

SvxTPView* ScAcceptChgDlg::pTPView
private

Definition at line 81 of file acredlin.hxx.

Referenced by AppendChanges(), ScAcceptChgDlg(), and UpdateView().

◆ pViewData

ScViewData* ScAcceptChgDlg::pViewData
private

Definition at line 52 of file acredlin.hxx.

Referenced by Init(), and ReInit().


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