LibreOffice Module sc (master) 1
|
#include <conflictsdlg.hxx>
Public Member Functions | |
ScConflictsDlg (weld::Window *pParent, ScViewData *pViewData, ScDocument *pSharedDoc, ScConflictsList &rConflictsList) | |
virtual | ~ScConflictsDlg () override |
void | UpdateView () |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
OUString | GetConflictString (const ScConflictsListEntry &rConflictEntry) |
void | SetActionString (const ScChangeAction *pAction, ScDocument *pDoc, const weld::TreeIter &rEntry) |
void | HandleListBoxSelection () |
void | SetConflictAction (const weld::TreeIter &rRootEntry, ScConflictAction eConflictAction) |
void | KeepHandler (bool bMine) |
void | KeepAllHandler (bool bMine) |
DECL_LINK (SelectHandle, weld::TreeView &, void) | |
DECL_LINK (UpdateSelectionHdl, Timer *, void) | |
DECL_LINK (KeepMineHandle, weld::Button &, void) | |
DECL_LINK (KeepOtherHandle, weld::Button &, void) | |
DECL_LINK (KeepAllMineHandle, weld::Button &, void) | |
DECL_LINK (KeepAllOthersHandle, weld::Button &, void) | |
Private Attributes | |
OUString | maStrUnknownUser |
ScViewData *const | mpViewData |
ScDocument * | mpOwnDoc |
ScChangeTrack * | mpOwnTrack |
ScDocument *const | mpSharedDoc |
ScChangeTrack * | mpSharedTrack |
ScConflictsList & | mrConflictsList |
Idle | maSelectionIdle |
bool | mbInSelectHdl |
std::unique_ptr< weld::Button > | m_xBtnKeepMine |
std::unique_ptr< weld::Button > | m_xBtnKeepOther |
std::unique_ptr< weld::Button > | m_xBtnKeepAllMine |
std::unique_ptr< weld::Button > | m_xBtnKeepAllOthers |
std::unique_ptr< SvxRedlinTable > | m_xLbConflicts |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 105 of file conflictsdlg.hxx.
ScConflictsDlg::ScConflictsDlg | ( | weld::Window * | pParent, |
ScViewData * | pViewData, | ||
ScDocument * | pSharedDoc, | ||
ScConflictsList & | rConflictsList | ||
) |
Definition at line 322 of file conflictsdlg.cxx.
References weld::TreeView::connect_changed(), weld::Widget::get_approximate_digit_width(), weld::TreeView::get_height_rows(), weld::TreeView::get_iter_first(), ScDocument::GetChangeTrack(), ScViewData::GetDocument(), LINK, m_xBtnKeepAllMine, m_xBtnKeepAllOthers, m_xBtnKeepMine, m_xBtnKeepOther, m_xLbConflicts, weld::TreeView::make_iterator(), maSelectionIdle, mpOwnDoc, mpOwnTrack, mpSharedDoc, mpSharedTrack, mpViewData, weld::TreeView::select(), weld::TreeView::set_column_fixed_widths(), weld::TreeView::set_selection_mode(), weld::Widget::set_size_request(), Timer::SetInvokeHandler(), and UpdateView().
|
overridevirtual |
Definition at line 377 of file conflictsdlg.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 381 of file conflictsdlg.cxx.
References ScRange::aStart, ScChangeTrack::GetAction(), ScChangeAction::GetBigRange(), ScDocument::GetName(), ScBigRange::MakeRange(), ScConflictsListEntry::maOwnActions, mpOwnDoc, mpOwnTrack, and ScAddress::Tab().
Referenced by UpdateView().
|
private |
Definition at line 420 of file conflictsdlg.cxx.
References weld::TreeView::get_cursor(), weld::TreeView::get_iter_depth(), weld::TreeView::get_selected(), weld::TreeView::is_selected(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), weld::TreeView::iter_parent(), m_xLbConflicts, weld::TreeView::make_iterator(), weld::TreeView::select(), and weld::TreeView::unselect_all().
|
private |
Definition at line 533 of file conflictsdlg.cxx.
References weld::TreeView::clear(), weld::Widget::freeze(), weld::TreeView::get_iter_depth(), weld::TreeView::get_iter_first(), weld::TreeView::iter_next_sibling(), weld::TreeView::iter_parent(), weld::GenericDialogController::m_xDialog, m_xLbConflicts, weld::TreeView::make_iterator(), RET_OK, SC_CONFLICT_ACTION_KEEP_MINE, SC_CONFLICT_ACTION_KEEP_OTHER, SetConflictAction(), and weld::Widget::thaw().
|
private |
Definition at line 514 of file conflictsdlg.cxx.
References weld::TreeView::get_iter_depth(), weld::TreeView::get_selected(), weld::TreeView::iter_parent(), weld::GenericDialogController::m_xDialog, m_xLbConflicts, weld::TreeView::make_iterator(), weld::TreeView::n_children(), weld::TreeView::remove(), RET_OK, SC_CONFLICT_ACTION_KEEP_MINE, SC_CONFLICT_ACTION_KEEP_OTHER, and SetConflictAction().
|
private |
Definition at line 396 of file conflictsdlg.cxx.
References LocaleDataWrapper::getDate(), ScChangeAction::GetDateTime(), ScChangeAction::GetDescription(), ScGlobal::getLocaleData(), LocaleDataWrapper::getTime(), ScChangeAction::GetUser(), m_xLbConflicts, maStrUnknownUser, weld::TreeView::set_text(), and comphelper::string::strip().
Referenced by UpdateView().
|
private |
Definition at line 503 of file conflictsdlg.cxx.
References weld::TreeView::get_id(), m_xLbConflicts, ScConflictsListEntry::meConflictAction, and RedlinData::pData.
Referenced by KeepAllHandler(), and KeepHandler().
void ScConflictsDlg::UpdateView | ( | ) |
Definition at line 580 of file conflictsdlg.cxx.
References weld::TreeView::expand_row(), ScChangeTrack::GetAction(), ScChangeAction::GetActionNumber(), GetConflictString(), ScChangeActionContent::GetNextContent(), ScChangeAction::GetType(), weld::TreeView::insert(), m_xLbConflicts, weld::TreeView::make_iterator(), mpOwnDoc, mpOwnTrack, mpSharedDoc, mpSharedTrack, mrConflictsList, SC_CAT_CONTENT, SC_CONFLICT_ACTION_NONE, SetActionString(), sId, and weld::toId().
Referenced by ScConflictsDlg().
|
private |
Definition at line 122 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 123 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 120 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 121 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 124 of file conflictsdlg.hxx.
Referenced by HandleListBoxSelection(), KeepAllHandler(), KeepHandler(), ScConflictsDlg(), SetActionString(), SetConflictAction(), and UpdateView().
|
private |
Definition at line 117 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 108 of file conflictsdlg.hxx.
Referenced by SetActionString().
|
private |
Definition at line 118 of file conflictsdlg.hxx.
|
private |
Definition at line 111 of file conflictsdlg.hxx.
Referenced by GetConflictString(), ScConflictsDlg(), and UpdateView().
|
private |
Definition at line 112 of file conflictsdlg.hxx.
Referenced by GetConflictString(), ScConflictsDlg(), and UpdateView().
|
private |
Definition at line 113 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg(), and UpdateView().
|
private |
Definition at line 114 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg(), and UpdateView().
|
private |
Definition at line 110 of file conflictsdlg.hxx.
Referenced by ScConflictsDlg().
|
private |
Definition at line 115 of file conflictsdlg.hxx.
Referenced by UpdateView().