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);
105 void set_size_request(
int nWidth,
int nHeight);
113 void SetFilterDate(
bool bFlag);
115 void SetFirstDate(
const Date&);
116 void SetLastDate(
const Date&);
119 void SetFilterAuthor(
bool bFlag);
120 void SetAuthor(
const OUString &);
121 void SetFilterComment(
bool bFlag);
124 void UpdateFilterTest();
128 void SetWriterView();
130 bool IsValidEntry(std::u16string_view rAuthor,
const DateTime &rDateTime,
const OUString &rComment);
131 bool IsValidEntry(std::u16string_view rAuthor,
const DateTime &rDateTime);
132 bool IsValidComment(
const OUString &rComment);
145 virtual void ActivatePage();
146 void Show() { m_xContainer->show(); }
193 void EnableDateLine1(
bool bFlag);
194 void EnableDateLine2(
bool bFlag);
200 void DeactivatePage();
203 Date GetFirstDate()
const;
204 void SetFirstDate(
const Date &aDate);
208 Date GetLastDate()
const;
209 void SetLastDate(
const Date &aDate);
213 void SetDateMode(sal_uInt16 nMode);
217 void InsertAuthor(
const OUString& rString );
218 OUString GetSelectedAuthor()
const;
219 void SelectedAuthorPos(sal_Int32 nPos);
220 sal_Int32 SelectAuthor(
const OUString& aString);
221 void SetComment(
const OUString& rComment);
222 OUString GetComment()
const;
225 void SetRange(
const OUString& rString);
226 OUString GetRange()
const;
227 void HideRange(
bool bHide=
true);
228 void SetFocusToRange();
232 bool IsAuthor()
const;
233 bool IsRange()
const;
234 bool IsAction()
const;
235 bool IsComment()
const;
237 void ShowAction(
bool bShow=
true);
239 void CheckDate(
bool bFlag);
240 void CheckAuthor(
bool bFlag);
241 void CheckRange(
bool bFlag);
242 void CheckAction(
bool bFlag);
243 void CheckComment(
bool bFlag);
253 void Enable(
bool bEnable =
true );
287 void EnableClearFormatButton(
weld::Button&,
bool bFlag);
294 void EnableAccept(
bool bFlag);
295 void EnableAcceptAll(
bool bFlag);
296 void EnableReject(
bool bFlag);
297 void EnableRejectAll(
bool bFlag);
298 void EnableClearFormat(
bool bFlag);
299 void EnableClearFormatAll(
bool bFlag);
300 void EnableUndo(
bool bFlag=
true);
315 void DeactivatePage();
335 void ShowFilterPage();
340 void set_help_id(
const OString& rId) { m_xTabCtrl->set_help_id(rId); }
343 #endif // INCLUDED_SVX_CTREDLIN_HXX
std::unique_ptr< weld::Button > m_xReject
SvxTPFilter * GetFilterPage()
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
#define DECL_LINK(Member, ArgType, RetType)
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.
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
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)
void set_help_id(const OString &rId)