2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +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 .
|
|
|
|
*/
|
2013-11-05 02:18:53 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_UI_APP_APPDETAILPAGEHELPER_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_UI_APP_APPDETAILPAGEHELPER_HXX
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
|
2008-06-25 11:36:50 +00:00
|
|
|
#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp>
|
2004-08-02 14:28:58 +00:00
|
|
|
#include <com/sun/star/ucb/XContent.hpp>
|
|
|
|
#include "AppElementType.hxx"
|
2012-10-11 16:13:12 -04:00
|
|
|
#include <svtools/treelistbox.hxx>
|
2004-08-02 14:28:58 +00:00
|
|
|
#include <svtools/DocumentInfoPreview.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#include <vcl/toolbox.hxx>
|
|
|
|
#include <vcl/cvtgrf.hxx>
|
|
|
|
#include <vcl/graph.hxx>
|
2009-12-15 21:55:40 +01:00
|
|
|
#include <svtools/grfmgr.hxx>
|
2008-06-25 11:36:50 +00:00
|
|
|
#include "callbacks.hxx"
|
2004-08-02 14:28:58 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2006-06-20 01:54:20 +00:00
|
|
|
namespace com{ namespace sun { namespace star { namespace awt { class XWindow; } } } }
|
2013-03-22 09:24:15 +02:00
|
|
|
namespace com{ namespace sun { namespace star { namespace frame { class XFrame2; } } } }
|
2006-06-20 01:54:20 +00:00
|
|
|
namespace com{ namespace sun { namespace star { namespace io { class XPersist; } } } }
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2008-06-25 11:36:50 +00:00
|
|
|
#define ELEMENT_COUNT size_t(E_ELEMENT_TYPE_COUNT)
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
class OAppBorderWindow;
|
|
|
|
class DBTreeListBox;
|
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
class OPreviewWindow : public vcl::Window
|
2004-08-02 14:28:58 +00:00
|
|
|
{
|
|
|
|
GraphicObject m_aGraphicObj;
|
|
|
|
Rectangle m_aPreviewRect;
|
|
|
|
|
|
|
|
/** gets the graphic cnter rect
|
|
|
|
@param rGraphic
|
|
|
|
the graphic
|
|
|
|
@param rResultRect
|
|
|
|
the resulting rectangle
|
|
|
|
|
|
|
|
@return
|
2013-04-15 05:34:02 +02:00
|
|
|
<TRUE/> when successful
|
2004-08-02 14:28:58 +00:00
|
|
|
*/
|
2014-04-17 11:16:55 +02:00
|
|
|
bool ImplGetGraphicCenterRect( const Graphic& rGraphic, Rectangle& rResultRect ) const;
|
|
|
|
void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
|
2006-01-03 15:15:44 +00:00
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE;
|
2004-08-02 14:28:58 +00:00
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
OPreviewWindow(vcl::Window* _pParent);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2015-01-08 23:08:34 +01:00
|
|
|
// Window overrides
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Paint(const Rectangle& rRect) SAL_OVERRIDE;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
void setGraphic(const Graphic& _rGraphic ) { m_aGraphicObj.SetGraphic(_rGraphic); }
|
|
|
|
};
|
|
|
|
// A helper class for the controls in the detail page.
|
|
|
|
// Combines general functionality.
|
2014-09-23 11:20:40 +02:00
|
|
|
class OAppDetailPageHelper : public vcl::Window
|
2004-08-02 14:28:58 +00:00
|
|
|
{
|
2015-03-16 12:17:44 +02:00
|
|
|
VclPtr<DBTreeListBox> m_pLists[ELEMENT_COUNT];
|
2006-10-05 12:00:13 +00:00
|
|
|
OAppBorderWindow& m_rBorderWin;
|
2015-01-16 15:29:28 +02:00
|
|
|
VclPtr<FixedLine> m_aFL;
|
|
|
|
VclPtr<ToolBox> m_aTBPreview;
|
|
|
|
VclPtr<Window> m_aBorder;
|
|
|
|
VclPtr<OPreviewWindow> m_aPreview;
|
|
|
|
VclPtr<::svtools::ODocumentInfoPreview>
|
2015-02-27 10:09:37 +00:00
|
|
|
m_aDocumentInfo;
|
|
|
|
VclPtr<vcl::Window> m_pTablePreview;
|
2014-09-24 18:50:37 +02:00
|
|
|
::std::unique_ptr<PopupMenu> m_aMenu;
|
2004-08-02 14:28:58 +00:00
|
|
|
PreviewMode m_ePreviewMode;
|
2013-03-22 09:24:15 +02:00
|
|
|
::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
|
2004-08-02 14:28:58 +00:00
|
|
|
m_xFrame;
|
|
|
|
::com::sun::star::uno::Reference < ::com::sun::star::io::XPersist >
|
|
|
|
m_xDocInfo;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >
|
|
|
|
m_xWindow;
|
|
|
|
|
|
|
|
/// returns the index of the visible control
|
|
|
|
int getVisibleControlIndex() const;
|
|
|
|
|
|
|
|
/** sorts the entries in the tree list box.
|
|
|
|
@param _nPos
|
|
|
|
Which list should be sorted.
|
|
|
|
@param _eSortMode
|
|
|
|
How should be sorted.
|
|
|
|
*/
|
|
|
|
void sort(int _nPos,SvSortMode _eSortMode );
|
|
|
|
|
2004-10-22 11:00:15 +00:00
|
|
|
/** retrieves the resource ids of the images representing elements of the given type
|
|
|
|
*/
|
Merge commit 'ooo/DEV300_m101' into integration/dev300_m101
* commit 'ooo/DEV300_m101': (76 commits)
masterfix DEV300: #i10000# usage of L10N build_type
removetooltypes01: Fix build problems after rebase to DEV300m99 in basctl, cui, reportdesign, sw
hr75: #i116747#: remove obsolete copyright notices
gnumake3: remove comphelper version; fix including extract.hxx
removetooltypes01: #i112600# Replace missing tools types replacement
removetooltypes01: #i112600# remove tooltypes from reportdesign
removetooltypes01: #i112600# remove tooltypes from dbaccess
undoapi: don't use deprecated JUnit API, this seems to fail now (but didn't before the rebase)
undoapi: those two classes do not belong into JAVATESTFILES, but JAVAFILES only
undoapi: (I|Sfx)UndoManager now working with size_t instead of USHORT
gridsort: give the UnoControl(Model/Base) classes a ctor taking a service factory, so we have access to the factory which created us, and don't need to resort to the process'es service factory
dba34b: #109956# notify column value in correct order
dba34b: #i114309# set default values for bit boolean and reset when we are on the insertrow
undoapi: assert unknown slots in ImplInvalidateFeature
dba34b: #i110907# check if design handle event
dba34b: #i109956# notify column values when row is refreshed
dba34b: #i115753# add test again
undoapi: renamed Undo.* to RptUndo.*, to not confuse a certain IDE with different same-named files in the source tree ...
undoapi: migrated report designer to use an own, model-bound UndoManager, instead of the UndoManager formerly bound to the controller
undoapi: split OSingleDocumentController into DBSubComponentController (which the report design's controller will be derived from) and the still-so-named OSingleDocumentController. Module reportdesign does not compile with this change, this is yet to come.
...
Conflicts:
dbaccess/inc/IEnvironment.hxx
dbaccess/inc/dataview.hxx
dbaccess/qa/complex/dbaccess/RowSet.java
dbaccess/source/core/api/CacheSet.cxx
dbaccess/source/core/api/KeySet.hxx
dbaccess/source/core/api/OptimisticSet.hxx
dbaccess/source/core/api/RowSet.cxx
dbaccess/source/core/api/RowSetCache.cxx
dbaccess/source/ext/adabas/Acomponentmodule.cxx
dbaccess/source/ext/adabas/Aservices.cxx
dbaccess/source/filter/migration/cfgimport.cxx
dbaccess/source/filter/migration/cfgimport.hxx
dbaccess/source/filter/migration/cfgservices.cxx
dbaccess/source/filter/migration/makefile.mk
dbaccess/source/inc/cfg_reghelper.hxx
dbaccess/source/sdbtools/misc/sdbt_services.cxx
dbaccess/source/shared/cfg_reghelper.cxx
dbaccess/source/shared/cfgstrings.cxx
dbaccess/source/shared/registrationhelper.cxx
dbaccess/source/ui/app/AppController.cxx
dbaccess/source/ui/app/AppDetailPageHelper.cxx
dbaccess/source/ui/app/AppDetailPageHelper.hxx
dbaccess/source/ui/app/AppDetailView.cxx
dbaccess/source/ui/app/AppIconControl.cxx
dbaccess/source/ui/app/AppSwapWindow.cxx
dbaccess/source/ui/browser/brwctrlr.cxx
dbaccess/source/ui/browser/dataview.cxx
dbaccess/source/ui/browser/unodatbr.cxx
dbaccess/source/ui/control/dbtreelistbox.cxx
dbaccess/source/ui/control/opendoccontrols.cxx
dbaccess/source/ui/control/tabletree.cxx
dbaccess/source/ui/dlg/ConnectionHelper.cxx
dbaccess/source/ui/dlg/ConnectionPage.src
dbaccess/source/ui/dlg/ExtensionNotPresent.cxx
dbaccess/source/ui/dlg/ExtensionNotPresent.hrc
dbaccess/source/ui/dlg/ExtensionNotPresent.src
dbaccess/source/ui/dlg/TablesSingleDlg.cxx
dbaccess/source/ui/dlg/adodatalinks.hxx
dbaccess/source/ui/dlg/dbadmin2.src
dbaccess/source/ui/dlg/dbadminsetup.src
dbaccess/source/ui/dlg/dlgattr.cxx
dbaccess/source/ui/dlg/dlgsize.src
dbaccess/source/ui/dlg/makefile.mk
dbaccess/source/ui/dlg/sqlmessage.cxx
dbaccess/source/ui/inc/ExtensionNotPresent.hxx
dbaccess/source/ui/inc/TokenWriter.hxx
dbaccess/source/ui/inc/imageprovider.hxx
dbaccess/source/ui/misc/DExport.cxx
dbaccess/source/ui/misc/HtmlReader.cxx
dbaccess/source/ui/misc/RowSetDrop.cxx
dbaccess/source/ui/misc/RtfReader.cxx
dbaccess/source/ui/misc/TokenWriter.cxx
dbaccess/source/ui/misc/imageprovider.cxx
dbaccess/source/ui/misc/linkeddocuments.cxx
dbaccess/source/ui/misc/singledoccontroller.cxx
dbaccess/source/ui/querydesign/ConnectionData.hxx
dbaccess/source/ui/querydesign/JoinTableView.cxx
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
dbaccess/source/ui/querydesign/TableConnectionData.cxx
dbaccess/source/ui/querydesign/TableWindowListBox.cxx
dbaccess/source/ui/relationdesign/RelationController.cxx
dbaccess/source/ui/relationdesign/RelationTableView.cxx
dbaccess/source/ui/tabledesign/table.src
reportdesign/inc/RptPage.hxx
reportdesign/qa/complex/reportdesign/ReportDesignerTest.java
reportdesign/source/core/api/ReportDefinition.cxx
reportdesign/source/core/sdr/ReportUndoFactory.cxx
reportdesign/source/core/sdr/UndoEnv.cxx
reportdesign/source/filter/xml/xmlservices.cxx
reportdesign/source/ui/dlg/GroupsSorting.cxx
reportdesign/source/ui/dlg/Navigator.cxx
reportdesign/source/ui/inspection/metadata.cxx
reportdesign/source/ui/misc/RptUndo.cxx
reportdesign/source/ui/misc/UITools.cxx
reportdesign/source/ui/misc/rptuiservices.cxx
reportdesign/source/ui/report/DesignView.cxx
reportdesign/source/ui/report/FixedTextColor.cxx
reportdesign/source/ui/report/ReportController.cxx
reportdesign/source/ui/report/ReportSection.cxx
reportdesign/source/ui/report/SectionView.cxx
reportdesign/source/ui/report/SectionWindow.cxx
reportdesign/source/ui/report/StartMarker.cxx
reportdesign/source/ui/report/ViewsWindow.cxx
reportdesign/source/ui/report/dlgedfunc.cxx
reportdesign/source/ui/report/report.src
2011-03-09 23:17:51 -06:00
|
|
|
void getElementIcons( ElementType _eType, sal_uInt16& _rImageId);
|
2004-10-22 11:00:15 +00:00
|
|
|
|
2004-08-02 14:28:58 +00:00
|
|
|
/** fills the names in the listbox
|
|
|
|
@param _xContainer
|
|
|
|
This can either be the queries, forms or report names.
|
2008-06-25 11:36:50 +00:00
|
|
|
@param _eType
|
|
|
|
the type of elements which are being filled
|
2004-10-22 11:00:15 +00:00
|
|
|
@param _nImageId
|
|
|
|
the resource id of the image to use for non-container entries
|
2004-08-02 14:28:58 +00:00
|
|
|
@param _pParent
|
|
|
|
The parent of the entries to be inserted.
|
|
|
|
*/
|
2008-06-25 11:36:50 +00:00
|
|
|
void fillNames( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _xContainer,
|
|
|
|
const ElementType _eType,
|
2011-01-14 15:00:11 +01:00
|
|
|
const sal_uInt16 _nImageId,
|
2012-10-18 16:28:20 +02:00
|
|
|
SvTreeListEntry* _pParent );
|
2008-06-25 11:36:50 +00:00
|
|
|
|
2004-08-02 14:28:58 +00:00
|
|
|
/** sets the detail page
|
|
|
|
@param _pWindow
|
|
|
|
The control which should be visible.
|
|
|
|
*/
|
2014-09-23 11:20:40 +02:00
|
|
|
void setDetailPage(vcl::Window* _pWindow);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** sets all HandleCallbacks
|
|
|
|
@param _pTreeView
|
|
|
|
The newly created DBTreeListBox
|
2006-10-05 12:00:13 +00:00
|
|
|
@param _rImage
|
|
|
|
the resource id of the default icon
|
2004-08-02 14:28:58 +00:00
|
|
|
@return
|
|
|
|
The new tree.
|
|
|
|
*/
|
2010-11-13 16:52:28 +00:00
|
|
|
DBTreeListBox* createTree( DBTreeListBox* _pTreeView, const Image& _rImage );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** creates the tree and sets all HandleCallbacks
|
|
|
|
@param _nHelpId
|
|
|
|
The help id of the control
|
|
|
|
@param _nCollapsedBitmap
|
2006-10-05 12:00:13 +00:00
|
|
|
The image to use in high contrast mode.
|
2004-08-02 14:28:58 +00:00
|
|
|
@return
|
|
|
|
The new tree.
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
DBTreeListBox* createSimpleTree( const OString& _sHelpId, const Image& _rImage);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
DECL_LINK( OnEntryDoubleClick, SvTreeListBox* );
|
2008-12-01 12:31:27 +00:00
|
|
|
DECL_LINK( OnEntrySelChange, void* );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2008-12-01 12:31:27 +00:00
|
|
|
DECL_LINK( OnCutEntry, void* );
|
|
|
|
DECL_LINK( OnCopyEntry, void* );
|
|
|
|
DECL_LINK( OnPasteEntry, void* );
|
|
|
|
DECL_LINK( OnDeleteEntry, void* );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
DECL_LINK(PreviewChangeHdl, void*);
|
|
|
|
// click a TB slot
|
2004-09-09 08:39:24 +00:00
|
|
|
DECL_LINK(OnDropdownClickHdl, ToolBox*);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2006-10-05 12:00:13 +00:00
|
|
|
inline OAppBorderWindow& getBorderWin() const { return m_rBorderWin; }
|
2006-06-20 01:54:20 +00:00
|
|
|
void ImplInitSettings();
|
2008-06-25 11:36:50 +00:00
|
|
|
|
2004-08-02 14:28:58 +00:00
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
OAppDetailPageHelper(vcl::Window* _pParent,OAppBorderWindow& _rBorderWin,PreviewMode _ePreviewMode);
|
2004-08-02 14:28:58 +00:00
|
|
|
virtual ~OAppDetailPageHelper();
|
2015-01-16 15:29:28 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2015-01-08 23:08:34 +01:00
|
|
|
// Window overrides
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Resize() SAL_OVERRIDE;
|
|
|
|
virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** creates the tables page
|
|
|
|
@param _xConnection
|
|
|
|
The connection to get the table names
|
|
|
|
*/
|
|
|
|
void createTablesPage(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection);
|
|
|
|
|
|
|
|
/** creates the page for the specific type.
|
|
|
|
@param _eType
|
|
|
|
The type which should be created. E_TABLE isn't allowed.
|
|
|
|
@param _xContainer
|
|
|
|
The container of the elements to be inserted.
|
|
|
|
*/
|
|
|
|
void createPage(ElementType _eType,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _xContainer);
|
|
|
|
|
|
|
|
/** returns the current visible tree list box
|
|
|
|
*/
|
|
|
|
inline DBTreeListBox* getCurrentView() const
|
|
|
|
{
|
|
|
|
ElementType eType = getElementType();
|
2015-03-16 12:17:44 +02:00
|
|
|
return (eType != E_NONE ) ? m_pLists[static_cast<sal_Int32>(eType)].get() : NULL;
|
2004-08-02 14:28:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// select all entries in the visible control
|
|
|
|
void selectAll();
|
|
|
|
|
|
|
|
/// returns <TRUE/> if it sorts ascending
|
2014-04-17 11:16:55 +02:00
|
|
|
bool isSortUp() const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/// sorts all entries ascending
|
|
|
|
void sortDown();
|
|
|
|
|
|
|
|
/// sorts all entries descending
|
|
|
|
void sortUp();
|
|
|
|
|
|
|
|
/** returns the element names which are selected
|
|
|
|
@param _rNames
|
|
|
|
The list will be filled.
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void getSelectionElementNames( ::std::vector< OUString>& _rNames ) const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2008-06-25 11:36:50 +00:00
|
|
|
/** describes the current selection for the given control
|
|
|
|
*/
|
|
|
|
void describeCurrentSelectionForControl(
|
|
|
|
const Control& _rControl,
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
|
|
|
|
);
|
|
|
|
|
|
|
|
/** describes the current selection for the given ElementType
|
|
|
|
*/
|
|
|
|
void describeCurrentSelectionForType(
|
|
|
|
const ElementType _eType,
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
|
|
|
|
);
|
|
|
|
|
2007-09-26 13:47:15 +00:00
|
|
|
/** select all names on the currently selected container. Non existence names where ignored.
|
|
|
|
*
|
|
|
|
* \param _aNames the element names
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void selectElements(const ::com::sun::star::uno::Sequence< OUString>& _aNames);
|
2007-09-26 13:47:15 +00:00
|
|
|
|
2004-08-02 14:28:58 +00:00
|
|
|
/** return the qualified name.
|
|
|
|
@param _pEntry
|
|
|
|
The entry of a table, or query, form, report to get the qualified name.
|
|
|
|
If the entry is <NULL/>, the first selected is chosen.
|
|
|
|
@return
|
|
|
|
the qualified name
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString getQualifiedName( SvTreeListEntry* _pEntry ) const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/// return the element of currently select entry
|
|
|
|
ElementType getElementType() const;
|
|
|
|
|
|
|
|
/// returns the count of selected entries
|
|
|
|
sal_Int32 getSelectionCount();
|
|
|
|
|
|
|
|
/// returns the count of entries
|
|
|
|
sal_Int32 getElementCount();
|
|
|
|
|
|
|
|
/** returns if an entry is a leaf
|
|
|
|
@param _pEntry
|
|
|
|
The entry to check
|
|
|
|
@return
|
|
|
|
<TRUE/> if the entry is a leaf, otherwise <FALSE/>
|
|
|
|
*/
|
2012-10-18 16:28:20 +02:00
|
|
|
bool isLeaf(SvTreeListEntry* _pEntry) const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** returns if one of the selected entries is a leaf
|
|
|
|
@return
|
|
|
|
<TRUE/> if the entry is a leaf, otherwise <FALSE/>
|
|
|
|
*/
|
2014-04-17 11:16:55 +02:00
|
|
|
bool isALeafSelected() const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2012-10-18 16:28:20 +02:00
|
|
|
SvTreeListEntry* getEntry( const Point& _aPosPixel ) const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/// clears the detail pages
|
|
|
|
void clearPages();
|
|
|
|
|
|
|
|
/// returns <TRUE/> when a detail page was filled
|
2014-04-17 11:16:55 +02:00
|
|
|
bool isFilled() const;
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** adds a new object to the detail page.
|
|
|
|
@param _eType
|
|
|
|
The type where the entry shold be appended.
|
|
|
|
@param _rName
|
|
|
|
The name of the object to be inserted
|
|
|
|
@param _rObject
|
|
|
|
The object to add.
|
|
|
|
@param _rxConn
|
|
|
|
If we insert a table, the connection must be set.
|
|
|
|
*/
|
2012-10-18 16:28:20 +02:00
|
|
|
SvTreeListEntry* elementAdded(ElementType eType
|
2013-04-07 12:06:47 +02:00
|
|
|
,const OUString& _rName
|
2006-10-05 12:00:13 +00:00
|
|
|
,const ::com::sun::star::uno::Any& _rObject );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** replaces a objects name with a new one
|
|
|
|
@param _eType
|
|
|
|
The type where the entry shold be appended.
|
|
|
|
@param _rOldName
|
|
|
|
The old name of the object to be replaced
|
|
|
|
@param _rNewName
|
|
|
|
The new name of the object to be replaced
|
|
|
|
@param _rxConn
|
|
|
|
If we insert a table, the connection must be set.
|
|
|
|
*/
|
|
|
|
void elementReplaced(ElementType eType
|
2013-04-07 12:06:47 +02:00
|
|
|
,const OUString& _rOldName
|
|
|
|
,const OUString& _rNewName );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** removes an element from the detail page.
|
2005-01-21 16:06:34 +00:00
|
|
|
@param _eType
|
|
|
|
The type where the entry shold be appended.
|
2004-08-02 14:28:58 +00:00
|
|
|
@param _rName
|
|
|
|
The name of the element to be removed.
|
|
|
|
@param _rxConn
|
|
|
|
If we remove a table, the connection must be set.
|
|
|
|
*/
|
2005-01-21 16:06:34 +00:00
|
|
|
void elementRemoved(ElementType _eType
|
2013-04-07 12:06:47 +02:00
|
|
|
,const OUString& _rName );
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/// returns the preview mode
|
2014-06-09 10:09:42 +02:00
|
|
|
PreviewMode getPreviewMode() { return m_ePreviewMode;}
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/// <TRUE/> if the preview is enabled
|
2014-04-17 11:16:55 +02:00
|
|
|
bool isPreviewEnabled();
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** switches to the given preview mode
|
|
|
|
@param _eMode
|
|
|
|
the mode to set for the preview
|
|
|
|
@param _bForce
|
|
|
|
Force the preview to be resetted
|
|
|
|
*/
|
2014-04-17 11:16:55 +02:00
|
|
|
void switchPreview(PreviewMode _eMode,bool _bForce = false);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
|
|
|
/** shows the Preview of the content when it is enabled.
|
|
|
|
@param _xContent
|
|
|
|
The content which must support the "preview" command.
|
|
|
|
*/
|
|
|
|
void showPreview(const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _xContent);
|
|
|
|
|
|
|
|
/** shows the Preview of a table or query
|
|
|
|
@param _sDataSourceName
|
|
|
|
the name of the data source
|
|
|
|
@param _sName
|
|
|
|
the name of table or query
|
|
|
|
@param _bTable
|
|
|
|
<TRUE/> if it is a table, otherwise <FALSE/>
|
|
|
|
@return void
|
|
|
|
*/
|
2013-04-07 12:06:47 +02:00
|
|
|
void showPreview( const OUString& _sDataSourceName,
|
|
|
|
const OUString& _sName,
|
2014-04-17 11:16:55 +02:00
|
|
|
bool _bTable);
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2004-10-22 11:00:15 +00:00
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
|
2004-08-02 14:28:58 +00:00
|
|
|
};
|
|
|
|
}
|
2013-11-05 02:18:53 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_UI_APP_APPDETAILPAGEHELPER_HXX
|
2004-08-02 14:28:58 +00:00
|
|
|
|
2010-10-27 12:33:13 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|