2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +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-01-29 14:04:09 +00:00
|
|
|
|
2013-10-23 19:18:27 +02:00
|
|
|
#ifndef INCLUDED_BASIC_MODSIZEEXCEEDED_HXX
|
|
|
|
#define INCLUDED_BASIC_MODSIZEEXCEEDED_HXX
|
2007-01-29 14:04:09 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
2016-12-06 20:42:22 +01:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2013-11-09 13:29:54 -06:00
|
|
|
#include <basic/basicdllapi.h>
|
2016-02-06 16:06:48 +02:00
|
|
|
#include <vector>
|
2007-01-29 14:04:09 +00:00
|
|
|
|
2016-12-06 20:42:22 +01:00
|
|
|
class BASIC_DLLPUBLIC ModuleSizeExceeded : public cppu::WeakImplHelper< css::task::XInteractionRequest >
|
2007-01-29 14:04:09 +00:00
|
|
|
{
|
2015-10-19 11:53:41 +02:00
|
|
|
// C++ interface
|
|
|
|
public:
|
2016-02-06 16:06:48 +02:00
|
|
|
ModuleSizeExceeded( const std::vector<OUString>& sModules );
|
2007-01-29 14:04:09 +00:00
|
|
|
|
2014-03-26 08:51:00 +02:00
|
|
|
bool isAbort() const;
|
|
|
|
bool isApprove() const;
|
2007-01-29 14:04:09 +00:00
|
|
|
|
2015-10-19 11:53:41 +02:00
|
|
|
// UNO interface
|
|
|
|
public:
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL getContinuations() override { return m_lContinuations; }
|
|
|
|
css::uno::Any SAL_CALL getRequest() override
|
2007-01-29 14:04:09 +00:00
|
|
|
{
|
|
|
|
return m_aRequest;
|
|
|
|
}
|
2009-04-25 00:18:20 +00:00
|
|
|
|
2015-10-19 11:53:41 +02:00
|
|
|
// member
|
|
|
|
private:
|
|
|
|
css::uno::Any m_aRequest;
|
|
|
|
css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > m_lContinuations;
|
|
|
|
css::uno::Reference< css::task::XInteractionContinuation > m_xAbort;
|
|
|
|
css::uno::Reference< css::task::XInteractionContinuation> m_xApprove;
|
2007-01-29 14:04:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|