2010-10-27 07:11:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 06:30:48 -05: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 06:54:30 -05:00
|
|
|
|
|
|
|
#ifndef __SBX_SBX_FACTORY_HXX
|
|
|
|
#define __SBX_SBX_FACTORY_HXX
|
|
|
|
|
|
|
|
#include <basic/sbxdef.hxx>
|
2012-07-20 03:54:40 -05:00
|
|
|
#include <rtl/ustring.hxx>
|
2011-07-28 11:17:31 -05:00
|
|
|
#include "basicdllapi.h"
|
2007-04-11 06:54:30 -05:00
|
|
|
|
|
|
|
class SbxBase;
|
|
|
|
class SbxObject;
|
|
|
|
|
2011-07-28 11:17:31 -05:00
|
|
|
class BASIC_DLLPUBLIC SbxFactory
|
2007-04-11 06:54:30 -05:00
|
|
|
{
|
2012-09-06 14:59:11 -05:00
|
|
|
bool bHandleLast; // true: Factory is asked at last because of its expensiveness
|
2007-04-11 06:54:30 -05:00
|
|
|
public:
|
2012-01-15 09:09:33 -06:00
|
|
|
virtual ~SbxFactory();
|
2012-09-06 14:59:11 -05:00
|
|
|
SbxFactory( bool bLast=false ) { bHandleLast = bLast; }
|
|
|
|
bool IsHandleLast( void ) { return bHandleLast; }
|
2011-01-10 07:40:57 -06:00
|
|
|
virtual SbxBase* Create( sal_uInt16 nSbxId, sal_uInt32 = SBXCR_SBX );
|
2013-04-07 05:06:47 -05:00
|
|
|
virtual SbxObject* CreateObject( const OUString& );
|
2007-04-11 06:54:30 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 07:11:31 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|