diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:58:22 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:58:22 +0000 |
commit | 1e534f1289fb82c648139cc9e5af971661a36f83 (patch) | |
tree | 352617a41bcc107e58aba9fa0bb20652d0f7dbec /chart2/source/controller/inc/dlg_DataEditor.hxx | |
parent | 584e5faf5ae702d9faf5c0f17404eff849d84701 (diff) |
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED
2006/12/13 15:36:16 bm 1.1.2.6: apply pending changes on window close
2006/07/19 15:55:24 bm 1.1.2.5: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role
2006/03/08 10:38:53 bm 1.1.2.4: new UI for DataEditor. Define TEST_NEW_UI in dlg_DataEditor.hrc to activate
2005/10/11 09:20:24 bm 1.1.2.3: license header change
2005/08/19 14:28:57 bm 1.1.2.2: enable icons in the toolbox
2005/08/17 16:53:38 bm 1.1.2.1: data editor for standalone data (first approach)
Diffstat (limited to 'chart2/source/controller/inc/dlg_DataEditor.hxx')
-rw-r--r-- | chart2/source/controller/inc/dlg_DataEditor.hxx | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/chart2/source/controller/inc/dlg_DataEditor.hxx b/chart2/source/controller/inc/dlg_DataEditor.hxx new file mode 100644 index 000000000000..7370128bcfa6 --- /dev/null +++ b/chart2/source/controller/inc/dlg_DataEditor.hxx @@ -0,0 +1,142 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: dlg_DataEditor.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-05-22 17:58:22 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SCH_DGRDATA_HXX +#define _SCH_DGRDATA_HXX + +#ifndef _SFXLSTNER_HXX +#include <svtools/lstner.hxx> +#endif +#ifndef _STDCTRL_HXX +#include <svtools/stdctrl.hxx> +#endif +#ifndef _SV_TOOLBOX_HXX +#include <vcl/toolbox.hxx> +#endif +#ifndef _COMPHELPER_STLTYPES_HXX_ +#include <comphelper/stl_types.hxx> +#endif +#ifndef _SV_DIALOG_HXX +#include <vcl/dialog.hxx> +#endif + +#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_ +#include <com/sun/star/uno/XComponentContext.hpp> +#endif + +#include <memory> + +namespace com { namespace sun { namespace star { + namespace chart2 { + class XChartDocument; + } +}}} + +namespace chart +{ + +class DataBrowser; + +class DataEditor : public ModalDialog +{ +public: + DataEditor( Window* pParent, + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XChartDocument > & xChartDoc, + const ::com::sun::star::uno::Reference< + ::com::sun::star::uno::XComponentContext > & xContext ); + virtual ~DataEditor(); + + // Window + virtual void Resize(); + + // Dialog + virtual BOOL Close(); + + void SetReadOnly( bool bReadOnly ); + void ApplyChangesToModel(); + +private: + bool m_bReadOnly; + ::std::auto_ptr< DataBrowser > m_apBrwData; + ToolBox m_aTbxData; + ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XChartDocument > m_xChartDoc; + ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > + m_xContext; + ImageList m_aToolboxImageList; + ImageList m_aToolboxImageListHighContrast; + + /// handles actions of the toolbox + DECL_LINK( ToolboxHdl, void* ); + /// is called, if the cursor of the table has moved + DECL_LINK( BrowserCursorMovedHdl, void*); + /// this is called if MiscOptions change, esp. High-Contrast mode + DECL_LINK( MiscHdl, void* ); + /// is called when the contents of the edit cell changes + DECL_LINK( CellModified, void* ); + /// is called when the width of any column in the edit browsebox has changed + DECL_LINK( BrowserColumnResized, void* ); + /// is called when the browser view was scrolled, @todo: only call on horizontal scroll + DECL_LINK( BrowserContentScrolled, void* ); + + void UpdateData(); + void ApplyImageList(); + /// moved and resizes the series name control etc. to fit the dimensions of the edit browsebox +// void ImplAdjustHeaderControls( bool bRefreshFromModel ); + + /** notifySystemWindow adds or remove the given window pToRegister at the Systemwindow found when search pWindow. + @param pWindow + The window which is used to search for the SystemWindow. + @param pToRegister + The window which should be added or removed on the TaskPaneList. + @param rMemFunc + The member function which should be called at the SystemWindow when found. + Possible values are: + ::comphelper::mem_fun(&TaskPaneList::AddWindow) + ::comphelper::mem_fun(&TaskPaneList::RemoveWindow) + + @note this code is taken from dbaccess/source/ui/inc/UITools.hxx + */ + void notifySystemWindow( Window* pWindow, + Window* pToRegister, + ::comphelper::mem_fun1_t< TaskPaneList, Window* > rMemFunc ); + + void AdaptBrowseBoxSize(); +}; + +} // namespace chart + +#endif // _SCH_DGRDATA_HXX |