diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-10 16:07:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-10 16:08:29 +0100 |
commit | 40796af946498d7fb69396dc7b07be40790863df (patch) | |
tree | 541b5bfe1f3ffc91706430f0cef1aa7c29653be6 /vcl/source | |
parent | 940db0cb1b3d0c4c38493c002cff2ad24f59afee (diff) |
map GtkTextView to VCLMultiLineEdit
Change-Id: I05c4b4d50400035a2542e375a773ed6d867187e6
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/edit.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index eb40448dda4f..d27105193c3e 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -230,8 +230,10 @@ void Edit::SetMaxWidthInChars(sal_Int32 nMinWidthInChars) bool Edit::set_property(const rtl::OString &rKey, const rtl::OString &rValue) { - if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("width-chars"))) + if (rKey == "width-chars") SetMaxWidthInChars(rValue.toInt32()); + else if (rKey == "editable") + SetReadOnly(!toBool(rValue)); else return Control::set_property(rKey, rValue); return true; diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 5ab64b3c7881..40c0b71c9cf6 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -22,6 +22,7 @@ #include <vcl/svapp.hxx> #include <vcl/tabctrl.hxx> #include <vcl/tabpage.hxx> +#include <vcl/vclmedit.hxx> #include <svdata.hxx> #include <svids.hrc> #include <window.h> @@ -698,6 +699,8 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri pWindow = new TabControl(pParent, WB_STDTABCONTROL|WB_3DLOOK); else if (name == "GtkDrawingArea") pWindow = new Window(pParent); + else if (name == "GtkTextView") + pWindow = new VCLMultiLineEdit(pParent); else { sal_Int32 nDelim = name.indexOf(':'); |