2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01: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 .
|
|
|
|
*/
|
2007-06-27 11:22:27 +00:00
|
|
|
|
2014-04-18 22:47:44 +02:00
|
|
|
#ifndef INCLUDED_TOOLKIT_SOURCE_CONTROLS_TREE_TREECONTROL_HXX
|
|
|
|
#define INCLUDED_TOOLKIT_SOURCE_CONTROLS_TREE_TREECONTROL_HXX
|
2007-06-27 11:22:27 +00:00
|
|
|
|
|
|
|
#include <toolkit/controls/unocontrols.hxx>
|
|
|
|
#include <toolkit/controls/unocontrolmodel.hxx>
|
|
|
|
#include <toolkit/helper/servicenames.hxx>
|
|
|
|
#include <toolkit/helper/listenermultiplexer.hxx>
|
|
|
|
|
|
|
|
namespace toolkit {
|
|
|
|
|
2014-02-25 22:29:44 +01:00
|
|
|
|
2007-06-27 11:22:27 +00:00
|
|
|
// = UnoTreeModel
|
2014-02-25 22:29:44 +01:00
|
|
|
|
2007-06-27 11:22:27 +00:00
|
|
|
class UnoTreeModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
2015-10-12 16:04:04 +02:00
|
|
|
css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2007-06-27 11:22:27 +00:00
|
|
|
|
|
|
|
public:
|
2015-11-09 09:05:08 +02:00
|
|
|
explicit UnoTreeModel( const css::uno::Reference< css::uno::XComponentContext >& i_factory );
|
2007-06-27 11:22:27 +00:00
|
|
|
UnoTreeModel( const UnoTreeModel& rModel );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
UnoControlModel* Clone() const override;
|
2007-06-27 11:22:27 +00:00
|
|
|
|
2015-11-09 09:05:08 +02:00
|
|
|
// css::beans::XMultiPropertySet
|
|
|
|
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception) override;
|
2007-06-27 11:22:27 +00:00
|
|
|
|
2015-11-09 09:05:08 +02:00
|
|
|
// css::io::XPersistObject
|
|
|
|
OUString SAL_CALL getServiceName() throw(css::uno::RuntimeException, std::exception) override;
|
2007-06-27 11:22:27 +00:00
|
|
|
|
|
|
|
// XServiceInfo
|
2015-03-17 12:25:11 +01:00
|
|
|
OUString SAL_CALL getImplementationName()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) override
|
2015-03-17 12:25:11 +01:00
|
|
|
{ return OUString("stardiv.Toolkit.TreeControlModel"); }
|
|
|
|
|
|
|
|
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) override
|
2015-03-17 12:25:11 +01:00
|
|
|
{
|
|
|
|
auto s(UnoControlModel::getSupportedServiceNames());
|
|
|
|
s.realloc(s.getLength() + 1);
|
|
|
|
s[s.getLength() - 1] = "com.sun.star.awt.tree.TreeControlModel";
|
|
|
|
return s;
|
|
|
|
}
|
2007-06-27 11:22:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // toolkit
|
|
|
|
|
2014-04-18 22:47:44 +02:00
|
|
|
#endif // _ INCLUDED_TOOLKIT_SOURCE_CONTROLS_TREE_TREECONTROL_HXX
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|