/// Keeps information for a single redaction target struct RedactionTarget
{
OUString sName;
RedactionTargetType sType;
OUString sContent; bool bCaseSensitive; bool bWholeWords;
sal_uInt32 nID;
};
/// Used to display the targets list class TargetsTable
{
std::unique_ptr<weld::TreeView> m_xControl; int GetRowByTargetName(std::u16string_view sName);
void StartFileDialog(StartFileDialogType nType, const OUString& rTitle); /// Carry out proper addition both to the targets box, and to the tabletargets vector. void addTarget(std::unique_ptr<RedactionTarget> pTarget); /// Clear all targets both visually and from the targets vector void clearTargets();
/// Check if the dialog has any valid redaction targets. bool hasTargets() const; /// Check if the dialog is in a valid state. bool isValidState() const { return m_bIsValidState; } /** Copies targets vector *Doesashallowcopy. *Returnstrueifsuccessful.
*/ bool getTargets(std::vector<std::pair<RedactionTarget, OUString>>& r_aTargets);
};
class SfxAddTargetDialog final : public weld::GenericDialogController
{ private:
std::unique_ptr<weld::Entry> m_xName;
std::unique_ptr<weld::ComboBox> m_xType;
std::unique_ptr<weld::Label> m_xLabelContent;
std::unique_ptr<weld::Entry> m_xContent;
std::unique_ptr<weld::Label> m_xLabelPredefContent;
std::unique_ptr<weld::ComboBox> m_xPredefContent;
std::unique_ptr<weld::CheckButton> m_xCaseSensitive;
std::unique_ptr<weld::CheckButton> m_xWholeWords;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.