20#ifndef INCLUDED_SVX_CTREDLIN_HXX
21#define INCLUDED_SVX_CTREDLIN_HXX
23#include <rtl/ustring.hxx>
27#include <tools/datetime.hxx>
81 std::unique_ptr<comphelper::string::NaturalStringSorter>
xSorter;
103 std::unique_ptr<weld::TreeView> xCalcControl);
111 void SetFilterDate(
bool bFlag);
113 void SetFirstDate(
const Date&);
114 void SetLastDate(
const Date&);
117 void SetFilterAuthor(
bool bFlag);
118 void SetAuthor(
const OUString &);
119 void SetFilterComment(
bool bFlag);
122 void UpdateFilterTest();
126 void SetWriterView();
128 bool IsValidEntry(std::u16string_view rAuthor,
const DateTime &rDateTime,
const OUString &rComment);
129 bool IsValidEntry(std::u16string_view rAuthor,
const DateTime &rDateTime);
130 bool IsValidComment(
const OUString &rComment);
143 virtual void ActivatePage();
191 void EnableDateLine1(
bool bFlag);
192 void EnableDateLine2(
bool bFlag);
198 void DeactivatePage();
201 Date GetFirstDate()
const;
202 void SetFirstDate(
const Date &aDate);
206 Date GetLastDate()
const;
207 void SetLastDate(
const Date &aDate);
211 void SetDateMode(sal_uInt16 nMode);
215 void InsertAuthor(
const OUString& rString );
216 OUString GetSelectedAuthor()
const;
217 void SelectedAuthorPos(sal_Int32 nPos);
218 sal_Int32 SelectAuthor(
const OUString& aString);
219 void SetComment(
const OUString& rComment);
220 OUString GetComment()
const;
223 void SetRange(
const OUString& rString);
224 OUString GetRange()
const;
225 void HideRange(
bool bHide=
true);
226 void SetFocusToRange();
230 bool IsAuthor()
const;
231 bool IsRange()
const;
232 bool IsAction()
const;
233 bool IsComment()
const;
235 void ShowAction(
bool bShow=
true);
237 void CheckDate(
bool bFlag);
238 void CheckAuthor(
bool bFlag);
239 void CheckRange(
bool bFlag);
240 void CheckAction(
bool bFlag);
241 void CheckComment(
bool bFlag);
251 void Enable(
bool bEnable =
true );
290 void EnableAccept(
bool bFlag);
291 void EnableAcceptAll(
bool bFlag);
292 void EnableReject(
bool bFlag);
293 void EnableRejectAll(
bool bFlag);
294 void EnableClearFormat(
bool bFlag);
295 void EnableClearFormatAll(
bool bFlag);
296 void EnableUndo(
bool bFlag=
true);
310 virtual void ActivatePage()
override;
311 void DeactivatePage();
331 void ShowFilterPage();
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< SvxTPView > m_xTPView
SvxTPFilter * GetFilterPage()
std::unique_ptr< weld::Notebook > m_xTabCtrl
DECL_DLLPRIVATE_LINK(DeactivatePageHdl, const OUString &, bool)
SvxTPView * GetViewPage()
DECL_DLLPRIVATE_LINK(ActivatePageHdl, const OUString &, void)
std::unique_ptr< SvxTPFilter > m_xTPFilter
std::unique_ptr< comphelper::string::NaturalStringSorter > xSorter
DECL_LINK(HeaderBarClick, int, void)
weld::TreeView * pTreeView
std::unique_ptr< weld::TreeView > xCalcTreeView
DateTime aDaTiFilterFirst
std::unique_ptr< utl::TextSearch > pCommentSearcher
SvxRedlinDateMode nDaTiMode
std::unique_ptr< weld::TreeView > xWriterTreeView
weld::TreeView & GetWidget()
Tabpage with the filter text entries etc.
std::unique_ptr< weld::ComboBox > m_xLbAction
DECL_DLLPRIVATE_LINK(SelDateHdl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xCbComment
DECL_DLLPRIVATE_LINK(ModifyListBoxHdl, weld::ComboBox &, void)
DECL_DLLPRIVATE_LINK(RowEnableHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xCbDate
DECL_DLLPRIVATE_LINK(TimeHdl, weld::Button &, void)
std::unique_ptr< SvtCalendarBox > m_xDfDate2
std::unique_ptr< weld::Entry > m_xEdComment
std::unique_ptr< weld::Button > m_xBtnRange
Link< SvxTPFilter *, void > aReadyLink
std::unique_ptr< weld::Entry > m_xEdRange
std::unique_ptr< weld::ComboBox > m_xLbAuthor
void SetRefHdl(const Link< SvxTPFilter *, void > &rLink)
DECL_DLLPRIVATE_LINK(ModifyTime, weld::FormattedSpinButton &, void)
weld::ComboBox * GetLbAction()
std::unique_ptr< weld::TimeFormatter > m_xTfDateFormatter
std::unique_ptr< weld::CheckButton > m_xCbAction
std::unique_ptr< weld::ComboBox > m_xLbDate
void SetReadyHdl(const Link< SvxTPFilter *, void > &rLink)
std::unique_ptr< weld::CheckButton > m_xCbAuthor
std::unique_ptr< weld::FormattedSpinButton > m_xTfDate2
std::unique_ptr< weld::Label > m_xFtDate2
DECL_DLLPRIVATE_LINK(RefHandle, weld::Button &, void)
std::unique_ptr< weld::Button > m_xIbClock
std::unique_ptr< weld::TimeFormatter > m_xTfDate2Formatter
SvxRedlinTable * m_pRedlinTable
std::unique_ptr< weld::CheckButton > m_xCbRange
std::unique_ptr< weld::FormattedSpinButton > m_xTfDate
DECL_DLLPRIVATE_LINK(ModifyHdl, weld::Entry &, void)
DECL_DLLPRIVATE_LINK(ModifyDate, SvtCalendarBox &, void)
Link< SvxTPFilter *, void > aRefLink
std::unique_ptr< SvtCalendarBox > m_xDfDate
std::unique_ptr< weld::Button > m_xIbClock2
Tabpage with the redlining entries.
Link< SvxTPView *, void > AcceptClickLk
std::unique_ptr< SvxRedlinTable > m_xViewData
Link< SvxTPView *, void > RejectClickLk
SvxRedlinTable * GetTableControl()
void SetRejectClickHdl(const Link< SvxTPView *, void > &rLink)
Link< SvxTPView *, void > UndoClickLk
bool bEnableClearFormatAll
void SetUndoClickHdl(const Link< SvxTPView *, void > &rLink)
void SetRejectAllClickHdl(const Link< SvxTPView *, void > &rLink)
Link< SvxTPView *, void > RejectAllClickLk
Link< SvxTPView *, void > AcceptAllClickLk
void SetAcceptClickHdl(const Link< SvxTPView *, void > &rLink)
DECL_DLLPRIVATE_LINK(PbClickHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xRejectAll
std::unique_ptr< weld::Button > m_xAccept
std::unique_ptr< weld::Button > m_xReject
void SetAcceptAllClickHdl(const Link< SvxTPView *, void > &rLink)
std::unique_ptr< weld::Button > m_xUndo
std::unique_ptr< weld::Button > m_xAcceptAll
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< weld::Container > m_xContainer
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName) override
Reference< XNameAccess > m_xContainer