2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-12 17:02:47 +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 .
|
|
|
|
*/
|
2000-09-29 10:02:42 +00:00
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
#ifndef BASCTL_BASDOC_HXX
|
|
|
|
#define BASCTL_BASDOC_HXX
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
#include <iderid.hxx>
|
2012-06-29 08:30:14 +02:00
|
|
|
#include <sfx2/docfac.hxx>
|
|
|
|
#include <sfx2/objsh.hxx>
|
2011-11-06 21:43:22 -05:00
|
|
|
#include <svx/ifaceids.hxx>
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
2000-09-29 10:02:42 +00:00
|
|
|
class SfxPrinter;
|
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
namespace basctl
|
|
|
|
{
|
|
|
|
|
|
|
|
class DocShell: public SfxObjectShell
|
2000-09-29 10:02:42 +00:00
|
|
|
{
|
2012-09-02 16:21:08 +02:00
|
|
|
boost::scoped_ptr<SfxPrinter> pPrinter;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
protected:
|
2004-10-04 18:39:21 +00:00
|
|
|
virtual void Draw( OutputDevice *, const JobSetup & rSetup,
|
2011-01-14 11:16:25 +01:00
|
|
|
sal_uInt16 nAspect = ASPECT_CONTENT );
|
2004-10-04 18:39:21 +00:00
|
|
|
virtual void FillClass( SvGlobalName * pClassName,
|
|
|
|
sal_uInt32 * pFormat,
|
2013-03-05 10:35:52 +01:00
|
|
|
OUString * pAppName,
|
|
|
|
OUString * pFullTypeName,
|
|
|
|
OUString * pShortTypeName,
|
2008-12-12 12:52:51 +00:00
|
|
|
sal_Int32 nVersion,
|
2012-08-07 08:36:40 +02:00
|
|
|
sal_Bool bTemplate = false ) const;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2001-06-15 07:45:19 +00:00
|
|
|
TYPEINFO();
|
|
|
|
|
2007-01-16 15:27:34 +00:00
|
|
|
using SotObject::GetInterface;
|
2004-10-04 18:39:21 +00:00
|
|
|
SFX_DECL_OBJECTFACTORY();
|
2007-01-16 15:27:34 +00:00
|
|
|
SFX_DECL_INTERFACE( SVX_INTERFACE_BASIDE_DOCSH )
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
DocShell();
|
|
|
|
~DocShell();
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
SfxPrinter* GetPrinter( bool bCreate );
|
2000-09-29 10:02:42 +00:00
|
|
|
void SetPrinter( SfxPrinter* pPrinter );
|
|
|
|
};
|
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
} // namespace basctl
|
|
|
|
|
|
|
|
// This typedef helps baside.sdi,
|
|
|
|
// because I don't know how to use nested names in it.
|
|
|
|
typedef basctl::DocShell basctl_DocShell;
|
|
|
|
|
|
|
|
#endif // BASCTL_BASDOC_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|