2
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; version 2 of the
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
#ifndef _WF_HYPERTEXT_H_
21
#define _WF_HYPERTEXT_H_
23
#include "mforms/hypertext.h"
31
* Windows wrapper class for the mforms hypertext control.
33
public ref class HyperTextImpl : public ViewImpl
36
static bool create(mforms::HyperText *self);
37
static void set_markup_text(mforms::HyperText *self, const std::string &text);
39
static void LinkClicked(Object^ sender, UrlClickEventArgs^ args);
41
HyperTextImpl(mforms::HyperText *self);
43
void SetMarkupText(const std::string &text);
45
static void init(Manager ^mgr)
47
::mforms::ControlFactory *f= ::mforms::ControlFactory::get_instance();
49
DEF_CALLBACK1(bool, mforms::HyperText*, mgr, f->_hypertext_impl, HyperTextImpl, create);
50
DEF_CALLBACK2(void, mforms::HyperText*, const std::string&, mgr, f->_hypertext_impl, HyperTextImpl, set_markup_text);
58
#endif // _WF_HYPERTEXT_H_