2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-15 17:28:16 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-07-23 11:59:18 +00:00
|
|
|
|
2012-08-06 20:52:37 +02:00
|
|
|
#include "unoiface.hxx"
|
2002-07-23 11:59:18 +00:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
MultiLineEdit::MultiLineEdit( vcl::Window* pParent, WinBits nWinStyle )
|
2012-10-10 23:57:22 +01:00
|
|
|
: VclMultiLineEdit( pParent,nWinStyle )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
}
|
2001-10-31 10:27:38 +00:00
|
|
|
|
2002-07-23 11:59:18 +00:00
|
|
|
// virtual
|
2013-04-02 09:01:37 +02:00
|
|
|
css::uno::Reference< css::awt::XWindowPeer >
|
2014-09-10 08:35:26 +02:00
|
|
|
MultiLineEdit::GetComponentInterface(bool bCreate)
|
2002-07-23 11:59:18 +00:00
|
|
|
{
|
2013-04-02 09:01:37 +02:00
|
|
|
css::uno::Reference< css::awt::XWindowPeer > xPeer(
|
2012-10-10 23:57:22 +01:00
|
|
|
VclMultiLineEdit::GetComponentInterface(false));
|
2002-07-23 11:59:18 +00:00
|
|
|
if (!xPeer.is() && bCreate)
|
|
|
|
{
|
2016-05-26 16:02:39 +02:00
|
|
|
rtl::Reference< VCLXMultiLineEdit > xVCLMEdit(new VCLXMultiLineEdit);
|
2012-08-06 20:52:37 +02:00
|
|
|
xVCLMEdit->SetWindow(this);
|
2016-05-26 16:02:39 +02:00
|
|
|
xPeer = xVCLMEdit.get();
|
2002-07-23 11:59:18 +00:00
|
|
|
SetComponentInterface(xPeer);
|
|
|
|
}
|
|
|
|
return xPeer;
|
|
|
|
}
|
2004-09-17 12:42:17 +00:00
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|