19#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_UITOOLS_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_UITOOLS_HXX
22#include <com/sun/star/report/XGroup.hpp>
23#include <com/sun/star/report/XReportControlFormat.hpp>
24#include <com/sun/star/report/XShape.hpp>
25#include <com/sun/star/awt/XWindow.hpp>
26#include <com/sun/star/beans/NamedValue.hpp>
27#include <com/sun/star/container/XIndexAccess.hpp>
28#include <com/sun/star/sdbc/XRowSet.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
42 class OPropertyChangeMultiplexer;
43 class OPropertyChangeListener;
53 const css::uno::Reference< css::container::XIndexAccess >& _xCollection
54 ,
const css::uno::Reference< T >& _xSearch)
56 sal_Int32
nCount = _xCollection->getCount();
57 sal_Int32
i = (
nCount == 0) ? -1 : 0;
60 css::uno::Reference< T > xObject(_xCollection->getByIndex(
i),css::uno::UNO_QUERY);
61 if ( xObject == _xSearch )
70 void adjustSectionName(
const css::uno::Reference< css::report::XGroup >& _xGroup,sal_Int32 _nPos);
84 const css::uno::Reference< css::report::XReportControlFormat>& _xReportControlFormat,
85 const css::uno::Reference< css::awt::XWindow>& _xWindow,
86 css::uno::Sequence< css::beans::NamedValue >& _out_rNewValues
92 const css::uno::Reference< css::report::XShape >& _xShape
93 ,
const css::uno::Reference< css::awt::XWindow>& _xWindow
105 ,
const css::uno::Reference< css::uno::XComponentContext >& _xContext
106 ,
const css::uno::Reference< css::awt::XWindow>& _xWindow
107 ,
const css::uno::Reference < css::beans::XPropertySet >& _xRowSet
113 const css::uno::Reference< css::report::XReportControlFormat >& _rxReportControlFormat,
114 const css::uno::Sequence< css::beans::NamedValue >& _rSettings
155 css::uno::Sequence< OUString >
tools::Rectangle getRectangleFromControl(SdrObject *pControl)
returns a Rectangle of a given SdrObject
css::uno::Sequence< OUString > getParameterNames(const css::uno::Reference< css::sdbc::XRowSet > &_rxRowSet)
retrieves the names of the parameters of the command which the given RowSet is bound to
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > addStyleListener(const css::uno::Reference< css::report::XReportDefinition > &_xReportDefinition,::comphelper::OPropertyChangeListener *_pListener)
add a listener for the properties size, left margin, right margin to the page style
void correctOverlapping(SdrObject *pControl, OReportSection const &_aReportSection, bool _bInsert=true)
ensures that no control overlaps the given one.
void notifySystemWindow(vcl::Window const *pWindow, vcl::Window *pToRegister, const ::comphelper::mem_fun1_t< TaskPaneList, vcl::Window * > &rMemFunc)
notifySystemWindow adds or remove the given window _pToRegister at the Systemwindow found when search...
bool openDialogFormula_nothrow(OUString &_in_out_rFormula, const css::uno::Reference< css::uno::XComponentContext > &_xContext, const css::uno::Reference< css::awt::XWindow > &_xWindow, const css::uno::Reference< css::beans::XPropertySet > &_xRowSet)
opens the formula dialog
bool openAreaDialog(const css::uno::Reference< css::report::XShape > &_xShape, const css::uno::Reference< css::awt::XWindow > &_xWindow)
opens the area dialog for shapes
const sal_Int16 ISOVER_IGNORE_CUSTOMSHAPES
SdrObject * isOver(const tools::Rectangle &_rRect, SdrPage const &_rPage, SdrView const &_rView, bool _bAllObjects=false, SdrObject const *_pIgnore=nullptr, sal_Int16 _nIgnoreType=0)
checks whether the given rectangle overlapps another OUnoObject object in that view.
void adjustSectionName(const css::uno::Reference< css::report::XGroup > &_xGroup, sal_Int32 _nPos)
set the name of the header and footer of the group by the expression appended by the localized name o...
void setZoomFactor(const Fraction &_aZoom, vcl::Window &_rWindow)
sets the map mode at the window
void applyCharacterSettings(const css::uno::Reference< css::report::XReportControlFormat > &_rxReportControlFormat, const css::uno::Sequence< css::beans::NamedValue > &_rSettings)
applies the character settings previously obtained via openCharDialog
sal_Int32 getPositionInIndexAccess(const css::uno::Reference< css::container::XIndexAccess > &_xCollection, const css::uno::Reference< T > &_xSearch)
returns the position of the object inside the index container
bool openCharDialog(const css::uno::Reference< css::report::XReportControlFormat > &_xReportControlFormat, const css::uno::Reference< css::awt::XWindow > &_xWindow, css::uno::Sequence< css::beans::NamedValue > &_out_rNewValues)
opens the common character font dialog