summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-04 12:08:32 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-05 13:20:18 +0100
commit8747abf7708e06d6f989258b1cf102c144162cfa (patch)
tree50fa74bd3cc7298db6eecd1d7b2137c0a21b85dc /include
parent30c10ae1b38342ced95889b33d95fe39c7cf6679 (diff)
TSCP: disable OK button if no category is present in text edit
Change-Id: I638f04e904a642e4fd6700e625732e5a9a2e44de Reviewed-on: https://gerrit.libreoffice.org/44292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/ClassificationDialog.hxx4
-rw-r--r--include/svx/ClassificationEditView.hxx10
2 files changed, 14 insertions, 0 deletions
diff --git a/include/svx/ClassificationDialog.hxx b/include/svx/ClassificationDialog.hxx
index 164701d2c3a4..0033126f5e93 100644
--- a/include/svx/ClassificationDialog.hxx
+++ b/include/svx/ClassificationDialog.hxx
@@ -37,6 +37,7 @@ protected:
class SVX_DLLPUBLIC ClassificationDialog : public ModalDialog
{
private:
+ VclPtr<PushButton> m_pOkButton;
VclPtr<ClassificationEditView> m_pEditWindow;
VclPtr<PushButton> m_pSignButton;
VclPtr<PushButton> m_pBoldButton;
@@ -65,6 +66,8 @@ private:
DECL_LINK(SelectIPPartNumbersHdl, ListBox&, void);
DECL_LINK(SelectRecentlyUsedHdl, ListBox&, void);
DECL_LINK(SelectIPPartHdl, ListBox&, void);
+ DECL_LINK(EditWindowModifiedHdl, LinkParamNone*, void);
+
void insertField(ClassificationType eType, OUString const & rString, OUString const & rFullString, OUString const & rIdentifier = OUString());
@@ -74,6 +77,7 @@ private:
void readIn(std::vector<ClassificationResult> const & rInput);
void readRecentlyUsed();
void writeRecentlyUsed();
+ void toggleWidgetsDependingOnCategory();
public:
ClassificationDialog(vcl::Window* pParent, bool bPerParagraph, const std::function<void()>& rParagraphSignHandler = [](){});
diff --git a/include/svx/ClassificationEditView.hxx b/include/svx/ClassificationEditView.hxx
index 2231aa63eb48..576fe8044af2 100644
--- a/include/svx/ClassificationEditView.hxx
+++ b/include/svx/ClassificationEditView.hxx
@@ -49,6 +49,16 @@ public:
std::unique_ptr<ClassificationEditEngine> pEdEngine;
std::unique_ptr<EditView> pEdView;
+ const ClassificationEditEngine& getEditEngine()
+ {
+ return *pEdEngine.get();
+ }
+
+ void SetModifyHdl(const Link<LinkParamNone*,void>& rLink)
+ {
+ pEdEngine->SetModifyHdl(rLink);
+ }
+
protected:
virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
virtual void MouseMove( const MouseEvent& rMEvt ) override;