Kaydet (Commit) 40796af9 authored tarafından Caolán McNamara's avatar Caolán McNamara

map GtkTextView to VCLMultiLineEdit

Change-Id: I05c4b4d50400035a2542e375a773ed6d867187e6
üst 940db0cb
......@@ -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;
......
......@@ -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(':');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment