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-04-11 11:54:30 +00:00
|
|
|
|
2013-10-23 19:18:27 +02:00
|
|
|
#ifndef INCLUDED_BASIC_SBXFAC_HXX
|
|
|
|
#define INCLUDED_BASIC_SBXFAC_HXX
|
2007-04-11 11:54:30 +00:00
|
|
|
|
|
|
|
#include <basic/sbxdef.hxx>
|
2012-07-20 09:54:40 +01:00
|
|
|
#include <rtl/ustring.hxx>
|
2013-11-09 13:29:54 -06:00
|
|
|
#include <basic/basicdllapi.h>
|
2007-04-11 11:54:30 +00:00
|
|
|
|
|
|
|
class SbxBase;
|
|
|
|
class SbxObject;
|
|
|
|
|
2011-07-28 18:17:31 +02:00
|
|
|
class BASIC_DLLPUBLIC SbxFactory
|
2007-04-11 11:54:30 +00:00
|
|
|
{
|
2012-09-07 04:59:11 +09:00
|
|
|
bool bHandleLast; // true: Factory is asked at last because of its expensiveness
|
2007-04-11 11:54:30 +00:00
|
|
|
public:
|
2012-01-15 16:09:33 +01:00
|
|
|
virtual ~SbxFactory();
|
2012-09-07 04:59:11 +09:00
|
|
|
SbxFactory( bool bLast=false ) { bHandleLast = bLast; }
|
2015-04-14 12:44:47 +02:00
|
|
|
bool IsHandleLast() { return bHandleLast; }
|
2011-01-10 14:40:57 +01:00
|
|
|
virtual SbxBase* Create( sal_uInt16 nSbxId, sal_uInt32 = SBXCR_SBX );
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual SbxObject* CreateObject( const OUString& );
|
2007-04-11 11:54:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|