blob: b8202064a0dd6fec4992099b58f266e92de17bdf [file] [log] [blame]
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef _SVX_FMPAGE_HXX
#define _SVX_FMPAGE_HXX
#include <svx/svdpage.hxx>
#include <comphelper/uno3.hxx>
#include "svx/svxdllapi.h"
class StarBASIC;
class FmFormModel;
class FmFormPageImpl; // haelt die Liste aller Forms
FORWARD_DECLARE_INTERFACE(container,XNameContainer)
class SdrView;
class SfxJSArray;
class HelpEvent;
class SVX_DLLPUBLIC FmFormPage : public SdrPage
{
friend class FmFormObj;
FmFormPageImpl* m_pImpl;
String m_sPageName;
StarBASIC* m_pBasic;
public:
TYPEINFO();
FmFormPage(FmFormModel& rModel,StarBASIC*, FASTBOOL bMasterPage=sal_False);
FmFormPage(const FmFormPage& rPage);
~FmFormPage();
virtual void SetModel(SdrModel* pNewModel);
virtual SdrPage* Clone() const;
using SdrPage::Clone;
virtual void InsertObject(SdrObject* pObj, sal_uLong nPos = CONTAINER_APPEND,
const SdrInsertReason* pReason=NULL);
virtual SdrObject* RemoveObject(sal_uLong nObjNum);
// Zugriff auf alle Formulare
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer>& GetForms( bool _bForceCreate = true ) const;
#ifndef SVX_LIGHT
FmFormPageImpl& GetImpl() const { return *m_pImpl; }
#endif // SVX_LIGHT
public:
const String& GetName() const { return m_sPageName; }
void SetName( const String& rName ) { m_sPageName = rName; }
StarBASIC* GetBasic() const { return m_pBasic; }
sal_Bool RequestHelp(
Window* pWin,
SdrView* pView,
const HelpEvent& rEvt );
};
#endif // _SVX_FMPAGE_HXX