LibreOffice Module sw (master)
1
|
#include <redlndlg.hxx>
Public Member Functions | |
SwRedlineAcceptDlg (const std::shared_ptr< weld::Window > &rParent, weld::Builder *pBuilder, weld::Container *pContentArea, bool bAutoFormat=false) | |
~SwRedlineAcceptDlg () | |
DECL_LINK (FilterChangedHdl, SvxTPFilter *, void) | |
SvxAcceptChgCtr & | GetChgCtrl () |
bool | HasRedlineAutoFormat () const |
void | Init (SwRedlineTable::size_type nStart=0) |
void | CallAcceptReject (bool bSelect, bool bAccept) |
void | Initialize (OUString &rExtraData) |
void | FillInfo (OUString &rExtraData) const |
void | Activate () |
Static Private Member Functions | |
static SAL_DLLPRIVATE OUString | GetActionImage (const SwRangeRedline &rRedln, sal_uInt16 nStack=0) |
Private Attributes | |
std::shared_ptr< weld::Window > | m_xParentDlg |
std::vector< std::unique_ptr< SwRedlineDataParent > > | m_RedlineParents |
std::vector< std::unique_ptr< SwRedlineDataChild > > | m_RedlineChildren |
SwRedlineDataParentSortArr | m_aUsedSeqNo |
Timer | m_aSelectTimer |
OUString | m_sInserted |
OUString | m_sDeleted |
OUString | m_sFormated |
OUString | m_sTableChgd |
OUString | m_sFormatCollSet |
OUString | m_sFilterAction |
OUString | m_sAutoFormat |
bool | m_bOnlyFormatedRedlines |
bool | m_bRedlnAutoFormat |
bool | m_bInhibitActivate |
std::unique_ptr< SvxAcceptChgCtr > | m_xTabPagesCTRL |
std::unique_ptr< weld::Menu > | m_xPopup |
std::unique_ptr< weld::Menu > | m_xSortMenu |
SvxTPView * | m_pTPView |
SvxRedlinTable * | m_pTable |
Definition at line 56 of file redlndlg.hxx.
|
privatedelete |
SwRedlineAcceptDlg::SwRedlineAcceptDlg | ( | const std::shared_ptr< weld::Window > & | rParent, |
weld::Builder * | pBuilder, | ||
weld::Container * | pContentArea, | ||
bool | bAutoFormat = false |
||
) |
Definition at line 139 of file redlndlg.cxx.
References weld::ComboBox::append_text(), weld::TreeView::connect_changed(), weld::TreeView::connect_popup_menu(), SvxTPView::DisableUndo(), SvxTPView::EnableAccept(), SvxTPView::EnableAcceptAll(), SvxTPView::EnableReject(), SvxTPView::EnableRejectAll(), SvxTPView::GetTableControl(), SvxRedlinTable::GetWidget(), HasRedlineAutoFormat(), HID_REDLINE_CTRL, LINK, m_aSelectTimer, m_pTable, m_pTPView, m_sAutoFormat, m_sDeleted, m_sFormatCollSet, m_sFormated, m_sInserted, m_sTableChgd, m_xTabPagesCTRL, weld::ComboBox::set_active(), weld::TreeView::set_selection_mode(), SvxTPView::SetAcceptAllClickHdl(), SvxTPView::SetAcceptClickHdl(), Timer::SetInvokeHandler(), SvxTPView::SetRejectAllClickHdl(), SvxTPView::SetRejectClickHdl(), Timer::SetTimeout(), SvxTPView::SetUndoClickHdl(), SvxRedlinTable::SetWriterView(), and SvxTPView::ShowUndo().
SwRedlineAcceptDlg::~SwRedlineAcceptDlg | ( | ) |
Definition at line 201 of file redlndlg.cxx.
void SwRedlineAcceptDlg::Activate | ( | ) |
Definition at line 334 of file redlndlg.cxx.
References CalcDiff(), o3tl::sorted_vector< Value, Compare, Find, class >::clear(), SvxTPView::EnableAccept(), SvxTPView::EnableAcceptAll(), SvxTPView::EnableReject(), SvxTPView::EnableRejectAll(), GetActiveView(), SwRangeRedline::GetComment(), SwView::GetDocShell(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwRangeRedline::GetRedlineData(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, Init(), InitAuthors(), m_aUsedSeqNo, m_bInhibitActivate, m_pTable, m_pTPView, m_RedlineParents, nCount, SwRedlineData::Next(), SwRedlineTable::npos, SwRedlineDataChild::pChild, SwRedlineDataParent::pData, SwRedlineDataChild::pNext, SwRedlineDataParent::pNext, SwRedlineDataParent::sComment, weld::TreeView::set_text(), SW_MOD, and SwRedlineDataParent::xTLBParent.
Referenced by CallAcceptReject().
|
private |
Definition at line 443 of file redlndlg.cxx.
References weld::Widget::freeze(), GetActiveView(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwRangeRedline::GetRedlineData(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), HasRedlineAutoFormat(), i, Init(), InsertChildren(), InsertParents(), m_pTable, m_RedlineChildren, m_RedlineParents, nCount, SwRedlineTable::npos, pData, SwRedlineDataChild::pNext, SwRedlineDataParent::pNext, weld::TreeView::remove(), RemoveParents(), weld::Widget::thaw(), and SwRedlineDataChild::xTLBChild.
Referenced by Activate().
void SwRedlineAcceptDlg::CallAcceptReject | ( | bool | bSelect, |
bool | bAccept | ||
) |
Definition at line 785 of file redlndlg.cxx.
References ACCEPT_REDLINE, SwEditShell::AcceptRedline(), Activate(), SwRewriter::AddRule(), SwRewriter::Apply(), RedlinData::bDisabled, SvxTPView::EnableUndo(), SwCursorShell::EndAction(), SwEditShell::EndUndo(), weld::TreeView::get_iter_index_in_parent(), GetActiveView(), SwView::GetDocShell(), SwEditShell::GetRedline(), GetRedlinePos(), SwRangeRedline::GetType(), SwWrtShell::GetView(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), m_bInhibitActivate, m_bOnlyFormatedRedlines, m_pTable, m_pTPView, nPos, SwRedlineTable::npos, pData, REJECT_REDLINE, SwEditShell::RejectRedline(), SwCursorShell::StartAction(), SwEditShell::StartUndo(), SwResId(), and UndoArg1.
|
private |
|
private |
SwRedlineAcceptDlg::DECL_LINK | ( | FilterChangedHdl | , |
SvxTPFilter * | , | ||
void | |||
) |
void SwRedlineAcceptDlg::FillInfo | ( | OUString & | rExtraData | ) | const |
Definition at line 1217 of file redlndlg.cxx.
References a, assert(), weld::TreeView::get_checkbox_column_width(), weld::TreeView::get_column_width(), SvxRedlinTable::GetWidget(), i, and m_pTable.
|
staticprivate |
Definition at line 301 of file redlndlg.cxx.
References SwRangeRedline::GetType().
Referenced by InsertChildren(), and InsertParents().
|
private |
Definition at line 317 of file redlndlg.cxx.
References SwRangeRedline::GetType(), m_sDeleted, m_sFormatCollSet, m_sFormated, m_sInserted, and m_sTableChgd.
Referenced by InsertChildren().
|
inline |
Definition at line 110 of file redlndlg.hxx.
|
private |
Definition at line 893 of file redlndlg.cxx.
References SwEditShell::FindRedlineOfData(), weld::TreeView::get_id(), GetActiveView(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), m_pTable, and pData.
Referenced by CallAcceptReject(), and InitAuthors().
|
inline |
Definition at line 111 of file redlndlg.hxx.
Referenced by CalcDiff(), InsertParents(), and SwRedlineAcceptDlg().
void SwRedlineAcceptDlg::Init | ( | SwRedlineTable::size_type | nStart = 0 | ) |
Definition at line 205 of file redlndlg.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::clear(), weld::TreeView::clear(), weld::Widget::freeze(), weld::TreeView::get_selected(), GetActiveView(), SvxRedlinTable::GetWidget(), InitAuthors(), InsertParents(), m_aUsedSeqNo, m_pTable, m_RedlineChildren, m_RedlineParents, weld::TreeView::make_iterator(), RemoveParents(), weld::TreeView::scroll_to_row(), and weld::Widget::thaw().
Referenced by Activate(), and CalcDiff().
|
private |
Definition at line 232 of file redlndlg.cxx.
References SvxTPFilter::ClearAuthors(), SvxTPView::EnableAccept(), SvxTPView::EnableAcceptAll(), SvxTPView::EnableClearFormat(), SvxTPView::EnableClearFormatAll(), SvxTPView::EnableReject(), SvxTPView::EnableRejectAll(), weld::TreeView::get_selected(), GetActiveView(), SwRangeRedline::GetAuthorString(), SwViewShell::getIDocumentRedlineAccess(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), IDocumentRedlineAccess::GetRedlinePassword(), GetRedlinePos(), SvxTPFilter::GetSelectedAuthor(), SwRangeRedline::GetStackCount(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, SvxTPFilter::InsertAuthor(), m_bOnlyFormatedRedlines, m_pTable, m_pTPView, m_xTabPagesCTRL, weld::TreeView::n_children(), nCount, nPos, SwRedlineTable::npos, SvxTPFilter::SelectAuthor(), and weld::TreeView::selected_foreach().
Referenced by Activate(), and Init().
void SwRedlineAcceptDlg::Initialize | ( | OUString & | rExtraData | ) |
Definition at line 1176 of file redlndlg.cxx.
References SvxRedlinTable::GetWidget(), i, m_pTable, nCount, and weld::TreeView::set_column_fixed_widths().
|
private |
Definition at line 520 of file redlndlg.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::erase(), weld::TreeView::expand_row(), GetActionImage(), GetActionText(), GetAppLangDateTimeString(), SwRangeRedline::GetAuthorString(), SwRangeRedline::GetComment(), SwRangeRedline::GetRedlineData(), SwRedlineData::GetSeqNo(), SwRangeRedline::GetStackCount(), SwRangeRedline::GetTimeStamp(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), weld::TreeView::insert(), SwRangeRedline::IsAutoFormat(), SvxRedlinTable::IsValidEntry(), m_aUsedSeqNo, m_pTable, m_RedlineChildren, m_sAutoFormat, m_sFilterAction, weld::TreeView::make_iterator(), SwRedlineData::Next(), SwRedlineDataChild::pChild, pData, SwRedlineDataParent::pData, SwRedlineDataChild::pNext, SwRedlineDataParent::pNext, weld::TreeView::remove(), weld::TreeView::set_image(), weld::TreeView::set_text(), sId, SwRedlineDataChild::xTLBChild, and SwRedlineDataParent::xTLBParent.
Referenced by CalcDiff(), and InsertParents().
|
private |
Definition at line 694 of file redlndlg.cxx.
References SwCursorShell::DeleteCurrent, weld::Widget::freeze(), weld::TreeView::get_selected(), GetActionImage(), GetActiveView(), GetAppLangDateTimeString(), SwRangeRedline::GetAuthorString(), SwRangeRedline::GetComment(), SwEditShell::GetCurrRedline(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwRangeRedline::GetRedlineData(), SwRangeRedline::GetTimeStamp(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), HasRedlineAutoFormat(), i, weld::TreeView::insert(), InsertChildren(), SvxRedlinTable::IsSorted(), m_pTable, m_RedlineParents, weld::TreeView::make_iterator(), weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), nCount, SwRedlineTable::npos, pData, SwRedlineDataParent::pData, SwRedlineDataParent::pNext, SwRedlineDataParent::sComment, weld::TreeView::scroll_to_row(), weld::TreeView::select(), SwCursorShell::SelNextRedline(), SwCursorShell::SelPrevRedline(), weld::TreeView::set_cursor(), weld::TreeView::set_image(), weld::TreeView::set_text(), sId, SW_MOD, weld::Widget::thaw(), and SwRedlineDataParent::xTLBParent.
Referenced by CalcDiff(), and Init().
|
privatedelete |
|
private |
Definition at line 618 of file redlndlg.cxx.
References a, weld::TreeView::connect_changed(), weld::Widget::freeze(), GetActiveView(), SwEditShell::GetRedlineCount(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, weld::TreeView::iter_compare(), LINK, m_pTable, m_RedlineChildren, m_RedlineParents, nCount, nPos, SwRedlineDataChild::pNext, weld::TreeView::remove(), weld::TreeView::set_cursor(), weld::Widget::thaw(), and weld::TreeView::unselect_all().
Referenced by CalcDiff(), and Init().
|
private |
Definition at line 63 of file redlndlg.hxx.
Referenced by SwRedlineAcceptDlg().
|
private |
Definition at line 62 of file redlndlg.hxx.
Referenced by Activate(), Init(), and InsertChildren().
|
private |
Definition at line 75 of file redlndlg.hxx.
Referenced by Activate(), and CallAcceptReject().
|
private |
Definition at line 71 of file redlndlg.hxx.
Referenced by CallAcceptReject(), and InitAuthors().
|
private |
Definition at line 72 of file redlndlg.hxx.
|
private |
Definition at line 80 of file redlndlg.hxx.
Referenced by Activate(), CalcDiff(), CallAcceptReject(), FillInfo(), GetRedlinePos(), Init(), InitAuthors(), Initialize(), InsertChildren(), InsertParents(), RemoveParents(), and SwRedlineAcceptDlg().
|
private |
Definition at line 79 of file redlndlg.hxx.
Referenced by Activate(), CallAcceptReject(), InitAuthors(), and SwRedlineAcceptDlg().
|
private |
Definition at line 61 of file redlndlg.hxx.
Referenced by CalcDiff(), Init(), InsertChildren(), and RemoveParents().
|
private |
Definition at line 59 of file redlndlg.hxx.
Referenced by Activate(), CalcDiff(), Init(), InsertParents(), and RemoveParents().
|
private |
Definition at line 70 of file redlndlg.hxx.
Referenced by InsertChildren(), and SwRedlineAcceptDlg().
|
private |
Definition at line 65 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 69 of file redlndlg.hxx.
Referenced by InsertChildren().
|
private |
Definition at line 68 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 66 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 64 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 67 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 58 of file redlndlg.hxx.
|
private |
Definition at line 78 of file redlndlg.hxx.
|
private |
Definition at line 78 of file redlndlg.hxx.
|
private |
Definition at line 77 of file redlndlg.hxx.
Referenced by InitAuthors(), and SwRedlineAcceptDlg().