LibreOffice Module sw (master) 1
|
#include <redlndlg.hxx>
Public Member Functions | |
SwRedlineAcceptDlg (std::shared_ptr< weld::Window > xParent, 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, bool bTableChanges=false, bool bRowChanges=false) |
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 |
std::vector< std::unique_ptr< RedlinData > > | m_RedlinData |
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 |
bool | m_bHasTrackedColumn |
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 | ( | std::shared_ptr< weld::Window > | xParent, |
weld::Builder * | pBuilder, | ||
weld::Container * | pContentArea, | ||
bool | bAutoFormat = false |
||
) |
Definition at line 143 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::EnableClearFormat(), SvxTPView::EnableClearFormatAll(), SvxTPView::EnableReject(), SvxTPView::EnableRejectAll(), SvxTPView::GetTableControl(), SvxRedlinTable::GetWidget(), HasRedlineAutoFormat(), 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 208 of file redlndlg.cxx.
void SwRedlineAcceptDlg::Activate | ( | ) |
Definition at line 366 of file redlndlg.cxx.
References CalcDiff(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SvxTPView::EnableAccept(), SvxTPView::EnableAcceptAll(), SvxTPView::EnableClearFormat(), SvxTPView::EnableClearFormatAll(), SvxTPView::EnableReject(), SvxTPView::EnableRejectAll(), GetActiveView(), SwRangeRedline::GetComment(), SwView::GetDocShell(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwRangeRedline::GetRedlineData(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, Init(), InitAuthors(), SfxObjectShell::IsReadOnly(), 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 491 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_bHasTrackedColumn, 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 968 of file redlndlg.cxx.
References ACCEPT_REDLINE, SwEditShell::AcceptRedline(), Activate(), SwRewriter::AddRule(), weld::TreeView::all_foreach(), SwRewriter::Apply(), SvxTPView::EnableUndo(), SwCursorShell::EndAction(), SwEditShell::EndUndo(), weld::TreeView::get_id(), weld::TreeView::get_iter_depth(), weld::TreeView::get_iter_index_in_parent(), GetActiveView(), SwView::GetDocShell(), SwEditShell::GetRedline(), GetRedlinePos(), SwRangeRedline::GetType(), SwWrtShell::GetView(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), weld::TreeView::iter_children(), weld::TreeView::iter_n_children(), weld::TreeView::iter_next_sibling(), m_bInhibitActivate, m_bOnlyFormatedRedlines, m_pTable, m_pTPView, weld::TreeView::make_iterator(), weld::TreeView::n_children(), nPos, SwRedlineTable::npos, pData, REJECT_REDLINE, SwEditShell::RejectRedline(), weld::TreeView::scroll_to_row(), weld::TreeView::select(), weld::TreeView::selected_foreach(), weld::TreeView::set_cursor(), SwCursorShell::StartAction(), SwEditShell::StartUndo(), SwResId(), and UndoArg1.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
SwRedlineAcceptDlg::DECL_LINK | ( | FilterChangedHdl | , |
SvxTPFilter * | , | ||
void | |||
) |
void SwRedlineAcceptDlg::FillInfo | ( | OUString & | rExtraData | ) | const |
Definition at line 1492 of file redlndlg.cxx.
References a, weld::TreeView::get_checkbox_column_width(), weld::TreeView::get_column_width(), SvxRedlinTable::GetWidget(), i, and m_pTable.
|
staticprivate |
Definition at line 316 of file redlndlg.cxx.
References SwRangeRedline::GetType(), SwRangeRedline::IsAnnotation(), and SwRangeRedline::IsMoved().
Referenced by InsertChildren(), and InsertParents().
|
private |
Definition at line 349 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 117 of file redlndlg.hxx.
|
private |
Definition at line 1116 of file redlndlg.cxx.
References SwEditShell::FindRedlineOfData(), weld::TreeView::get_id(), GetActiveView(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), m_pTable, SwRedlineTable::npos, and SwRedlineDataParent::pData.
Referenced by CallAcceptReject(), and InitAuthors().
|
inline |
Definition at line 118 of file redlndlg.hxx.
Referenced by CalcDiff(), InsertParents(), and SwRedlineAcceptDlg().
void SwRedlineAcceptDlg::Init | ( | SwRedlineTable::size_type | nStart = 0 | ) |
Definition at line 212 of file redlndlg.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), weld::TreeView::clear(), weld::Widget::freeze(), weld::TreeView::get_selected(), GetActiveView(), SvxRedlinTable::GetWidget(), InitAuthors(), InsertParents(), m_aUsedSeqNo, m_pTable, m_RedlinData, 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 242 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::GetDoc(), SwDoc::GetDocShell(), SwViewShell::getIDocumentRedlineAccess(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), IDocumentRedlineAccess::GetRedlinePassword(), GetRedlinePos(), SvxTPFilter::GetSelectedAuthor(), SwRangeRedline::GetStackCount(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, SvxTPFilter::InsertAuthor(), SfxObjectShell::IsReadOnly(), 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 1451 of file redlndlg.cxx.
References aStr, SvxRedlinTable::GetWidget(), i, m_pTable, n1, nCount, and weld::TreeView::set_column_fixed_widths().
|
private |
Definition at line 574 of file redlndlg.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), weld::TreeView::expand_row(), GetActionImage(), GetActionText(), GetAppLangDateTimeString(), SwRangeRedline::GetAuthorString(), SwRangeRedline::GetComment(), SwRangeRedline::GetRedlineData(), SwRedlineData::GetSeqNo(), SwRangeRedline::GetStackCount(), SwRangeRedline::GetTimeStamp(), SwRangeRedline::GetType(), SvxRedlinTable::GetWidget(), weld::TreeView::insert(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwRangeRedline::IsAutoFormat(), SvxRedlinTable::IsValidEntry(), m_aUsedSeqNo, m_pTable, m_RedlinData, 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, weld::toId(), SwRedlineDataChild::xTLBChild, and SwRedlineDataParent::xTLBParent.
Referenced by CalcDiff(), and InsertParents().
|
private |
Definition at line 756 of file redlndlg.cxx.
References SwRedlineData::CanCombine(), SwCursorShell::DeleteCurrent, weld::Widget::freeze(), weld::TreeView::get_selected(), GetActionImage(), GetActiveView(), GetAppLangDateTimeString(), SwRangeRedline::GetAuthorString(), SwRangeRedline::GetComment(), SwEditShell::GetCurrRedline(), SwPosition::GetNode(), SwTableBox::GetRedline(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwRangeRedline::GetRedlineData(), SwTableLine::GetRedlineType(), SwTableBox::GetRedlineType(), SwNode::GetTableBox(), SwRangeRedline::GetTimeStamp(), SwRangeRedline::GetType(), SwTableBox::GetUpper(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), HasRedlineAutoFormat(), i, weld::TreeView::insert(), InsertChildren(), SvxRedlinTable::IsSorted(), m_bHasTrackedColumn, m_pTable, m_RedlinData, m_RedlineParents, weld::TreeView::make_iterator(), weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), min(), 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, SwPaM::Start(), SW_MOD, weld::Widget::thaw(), weld::toId(), SwTableLine::UpdateTextChangesOnly(), and SwRedlineDataParent::xTLBParent.
Referenced by CalcDiff(), and Init().
|
privatedelete |
|
private |
Definition at line 673 of file redlndlg.cxx.
References a, weld::TreeView::connect_changed(), weld::Widget::freeze(), GetActiveView(), SwEditShell::GetRedlineCount(), SvxRedlinTable::GetWidget(), SwView::GetWrtShellPtr(), i, LINK, m_pTable, m_RedlineChildren, m_RedlineParents, min(), 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 66 of file redlndlg.hxx.
Referenced by SwRedlineAcceptDlg().
|
private |
Definition at line 65 of file redlndlg.hxx.
Referenced by Activate(), Init(), and InsertChildren().
|
private |
Definition at line 81 of file redlndlg.hxx.
Referenced by CalcDiff(), and InsertParents().
|
private |
Definition at line 78 of file redlndlg.hxx.
Referenced by Activate(), and CallAcceptReject().
|
private |
Definition at line 74 of file redlndlg.hxx.
Referenced by CallAcceptReject(), and InitAuthors().
|
private |
Definition at line 75 of file redlndlg.hxx.
|
private |
Definition at line 86 of file redlndlg.hxx.
Referenced by Activate(), CalcDiff(), CallAcceptReject(), FillInfo(), GetRedlinePos(), Init(), InitAuthors(), Initialize(), InsertChildren(), InsertParents(), RemoveParents(), and SwRedlineAcceptDlg().
|
private |
Definition at line 85 of file redlndlg.hxx.
Referenced by Activate(), CallAcceptReject(), InitAuthors(), and SwRedlineAcceptDlg().
|
private |
Definition at line 64 of file redlndlg.hxx.
Referenced by Init(), InsertChildren(), and InsertParents().
|
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 73 of file redlndlg.hxx.
Referenced by InsertChildren(), and SwRedlineAcceptDlg().
|
private |
Definition at line 68 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 72 of file redlndlg.hxx.
Referenced by InsertChildren().
|
private |
Definition at line 71 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 69 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 70 of file redlndlg.hxx.
Referenced by GetActionText(), and SwRedlineAcceptDlg().
|
private |
Definition at line 58 of file redlndlg.hxx.
|
private |
Definition at line 84 of file redlndlg.hxx.
|
private |
Definition at line 84 of file redlndlg.hxx.
|
private |
Definition at line 83 of file redlndlg.hxx.
Referenced by InitAuthors(), and SwRedlineAcceptDlg().