2005-03-18 09:56:57 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
2008-04-10 16:24:26 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2005-03-18 09:56:57 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 13:14:10 -05:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sd.hxx"
|
|
|
|
|
2005-03-18 09:56:57 -06:00
|
|
|
#include "taskpane/TaskPaneControlFactory.hxx"
|
|
|
|
|
|
|
|
#include <vos/diagnose.hxx>
|
|
|
|
|
|
|
|
namespace sd { namespace toolpanel {
|
|
|
|
|
|
|
|
ControlFactory::ControlFactory (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ControlFactory::~ControlFactory (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-22 07:19:00 -05:00
|
|
|
::std::auto_ptr<TreeNode> ControlFactory::CreateControl( ::Window& i_rParent )
|
2005-03-18 09:56:57 -06:00
|
|
|
{
|
2010-03-22 07:19:00 -05:00
|
|
|
TreeNode* pNewNode = InternalCreateControl( i_rParent );
|
slidecopy: initial version of a "Tool Panel"
At the moment, this implementation is parallel to the existing TaskPane implementation, but on the medium term, it is
intended to replace it. No change in functionality is planned for the moment, just the panel selection is done via
a tab bar, instead of the the "jumping drawers".
Pending tasks (as known so far):
- Accessibility. No implementation at all, yet.
- showing/hiding tool panels from the "View" drop down menu
- connection to the resource framework. At the moment, de/activating panels completely bypasses the resource
framework.
- alternative implementation of the PanelDeckLayouter which mimics the old design. To be activated by default, for
the moment.
- removal of the (old, by then) TaskPane implementation. Care needs to be taken that the framework API stays
unchanged, i.e., the current ToolPanel resource must be renamed back to RightPane when RightPane is not
occupied anymore by the old implementation. Same for other resource names.
2010-03-15 07:53:19 -05:00
|
|
|
return ::std::auto_ptr<TreeNode>( pNewNode );
|
2005-03-18 09:56:57 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
} } // end of namespace ::sd::toolpanel
|