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();
144 void Show() { m_xContainer->show(); }
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);
311 void DeactivatePage();
331 void ShowFilterPage();
337 #endif // INCLUDED_SVX_CTREDLIN_HXX
std::unique_ptr< weld::Button > m_xReject
SvxTPFilter * GetFilterPage()
DECL_LINK(CheckNameHdl, SvxNameDialog &, bool)
Link< SvxTPFilter *, void > aReadyLink
std::unique_ptr< utl::TextSearch > pCommentSearcher
std::unique_ptr< weld::Entry > m_xEdComment
std::unique_ptr< weld::TreeView > xCalcTreeView
void SetRejectAllClickHdl(const Link< SvxTPView *, void > &rLink)
Link< SvxTPView *, void > UndoClickLk
std::unique_ptr< weld::FormattedSpinButton > m_xTfDate
Link< SvxTPFilter *, void > aRefLink
std::unique_ptr< weld::CheckButton > m_xCbAction
std::unique_ptr< weld::ComboBox > m_xLbAction
std::unique_ptr< weld::Button > m_xAcceptAll
std::unique_ptr< weld::Button > m_xRejectAll
std::unique_ptr< SvxRedlinTable > m_xViewData
SvxRedlinDateMode nDaTiMode
std::unique_ptr< weld::CheckButton > m_xCbAuthor
std::unique_ptr< SvtCalendarBox > m_xDfDate
std::unique_ptr< comphelper::string::NaturalStringSorter > xSorter
std::unique_ptr< weld::Builder > m_xBuilder
void SetRejectClickHdl(const Link< SvxTPView *, void > &rLink)
std::unique_ptr< weld::Entry > m_xEdRange
std::unique_ptr< SvxTPView > m_xTPView
weld::ComboBox * GetLbAction()
void SetReadyHdl(const Link< SvxTPFilter *, void > &rLink)
std::unique_ptr< weld::TreeView > xWriterTreeView
std::unique_ptr< weld::ComboBox > m_xLbAuthor
Tabpage with the filter text entries etc.
DateTime aDaTiFilterFirst
std::unique_ptr< weld::CheckButton > m_xCbComment
std::unique_ptr< weld::Button > m_xBtnRange
std::unique_ptr< weld::ComboBox > m_xLbDate
Link< SvxTPView *, void > AcceptAllClickLk
std::unique_ptr< weld::Button > m_xIbClock2
std::unique_ptr< weld::Button > m_xIbClock
std::unique_ptr< weld::Button > m_xAccept
std::unique_ptr< weld::Button > m_xUndo
Link< SvxTPView *, void > RejectClickLk
weld::TreeView * pTreeView
std::unique_ptr< weld::Container > m_xContainer
SvxRedlinTable * m_pRedlinTable
std::unique_ptr< weld::FormattedSpinButton > m_xTfDate2
std::unique_ptr< weld::Label > m_xFtDate2
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< weld::CheckButton > m_xCbDate
void SetUndoClickHdl(const Link< SvxTPView *, void > &rLink)
Link< SvxTPView *, void > RejectAllClickLk
std::unique_ptr< weld::Notebook > m_xTabCtrl
Link< SvxTPView *, void > AcceptClickLk
std::unique_ptr< SvxTPFilter > m_xTPFilter
weld::TreeView & GetWidget()
Tabpage with the redlining entries.
void SetAcceptAllClickHdl(const Link< SvxTPView *, void > &rLink)
std::unique_ptr< SvtCalendarBox > m_xDfDate2
virtual void ActivatePage()
SvxRedlinTable * GetTableControl()
SvxTPView * GetViewPage()
void SetRefHdl(const Link< SvxTPFilter *, void > &rLink)
std::unique_ptr< weld::TimeFormatter > m_xTfDateFormatter
#define DECL_DLLPRIVATE_LINK(Member, ArgType, RetType)
std::unique_ptr< weld::CheckButton > m_xCbRange
bool bEnableClearFormatAll
std::unique_ptr< weld::TimeFormatter > m_xTfDate2Formatter
void SetAcceptClickHdl(const Link< SvxTPView *, void > &rLink)