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 .
|
|
|
|
*/
|
2008-05-21 11:10:09 +00:00
|
|
|
|
2013-10-23 19:14:56 +02:00
|
|
|
#ifndef INCLUDED_SVTOOLS_EXTENSIONLISTBOX_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_EXTENSIONLISTBOX_HXX
|
2008-05-21 11:10:09 +00:00
|
|
|
|
|
|
|
#include <vcl/ctrl.hxx>
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2008-05-21 11:10:09 +00:00
|
|
|
namespace svt
|
|
|
|
{
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2008-05-21 11:10:09 +00:00
|
|
|
/** This abstract class provides methods to implement an extension list box.
|
|
|
|
This header is needed for the automatic test tool
|
|
|
|
*/
|
|
|
|
class IExtensionListBox: public Control
|
|
|
|
{
|
|
|
|
public:
|
2013-02-12 14:15:51 +01:00
|
|
|
enum { ENTRY_NOTFOUND = -1 };
|
|
|
|
|
2018-02-05 18:05:30 +01:00
|
|
|
IExtensionListBox( vcl::Window* pParent ): Control( pParent, WB_BORDER | WB_TABSTOP ){}
|
2008-05-21 11:10:09 +00:00
|
|
|
|
|
|
|
/** @return The count of the entries in the list box. */
|
|
|
|
virtual sal_Int32 getItemCount() const = 0;
|
|
|
|
|
|
|
|
/** @return The index of the first selected entry in the list box.
|
|
|
|
When nothing is selected, which is the case when getItemCount returns '0',
|
2013-02-12 14:15:51 +01:00
|
|
|
then this function returns ENTRY_NOTFOUND */
|
2008-05-21 11:10:09 +00:00
|
|
|
virtual sal_Int32 getSelIndex() const = 0;
|
|
|
|
|
|
|
|
};
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2008-05-21 11:10:09 +00:00
|
|
|
|
|
|
|
} // namespace svt
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2013-10-23 19:14:56 +02:00
|
|
|
#endif // INCLUDED_SVTOOLS_EXTENSIONLISTBOX_HXX
|
2008-05-21 11:10:09 +00:00
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|