LibreOffice Module reportdesign (master) 1
Macros | Functions
ReportController.cxx File Reference
#include <ReportController.hxx>
#include <ReportDefinition.hxx>
#include <CondFormat.hxx>
#include <UITools.hxx>
#include <AddField.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <DateTime.hxx>
#include <sfx2/filedlghelper.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <rptui_slotid.hrc>
#include <reportformula.hxx>
#include <comphelper/documentconstants.hxx>
#include <unotools/mediadescriptor.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/types.hxx>
#include <connectivity/dbtools.hxx>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/report/XImageControl.hpp>
#include <com/sun/star/report/XFixedLine.hpp>
#include <com/sun/star/report/Function.hpp>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/sdb/XParametersSupplier.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/embed/EmbedMapUnits.hpp>
#include <com/sun/star/awt/FontWeight.hpp>
#include <com/sun/star/awt/FontUnderline.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/status/FontHeight.hpp>
#include <com/sun/star/report/ReportEngine.hpp>
#include <com/sun/star/report/XFormattedField.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/document/XUndoManagerSupplier.hpp>
#include <vcl/svapp.hxx>
#include <i18nutil/paper.hxx>
#include <svx/fmview.hxx>
#include <editeng/memberids.h>
#include <svx/svxids.hrc>
#include <svx/svdobj.hxx>
#include <svx/unomid.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <svx/xflgrit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xsflclit.hxx>
#include <svx/xflbckit.hxx>
#include <svx/xflbmpit.hxx>
#include <svx/xflbmsli.hxx>
#include <svx/xflbmsxy.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/xflboxy.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xflbtoxy.hxx>
#include <svx/xfltrit.hxx>
#include <svx/xgrscit.hxx>
#include <editeng/svxenum.hxx>
#include <svx/pageitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/sizeitem.hxx>
#include <sfx2/zoomitem.hxx>
#include <svx/zoomslideritem.hxx>
#include <editeng/brushitem.hxx>
#include <svx/flagsdef.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svxdlg.hxx>
#include <core_resource.hxx>
#include <DesignView.hxx>
#include <RptObject.hxx>
#include <RptUndo.hxx>
#include <strings.hxx>
#include <RptDef.hxx>
#include <ReportSection.hxx>
#include <SectionView.hxx>
#include <UndoActions.hxx>
#include <dlgpage.hxx>
#include <strings.hrc>
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <svtools/cliplistener.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/viewoptions.hxx>
#include <unotools/localedatawrapper.hxx>
#include <osl/mutex.hxx>
#include <PropertyForward.hxx>
#include <SectionWindow.hxx>
#include <toolkit/helper/convert.hxx>
#include <GroupsSorting.hxx>
#include <PageNumber.hxx>
#include <UndoEnv.hxx>
#include <memory>
#include <string_view>
#include <cppuhelper/exc_hlp.hxx>
#include <unotools/confignode.hxx>
#include <ReportControllerObserver.hxx>
Include dependency graph for ReportController.cxx:

Go to the source code of this file.

Macros

#define MAX_ROWS_FOR_PREVIEW   20
 
#define RPTUI_ID_LRSPACE   TypedWhichId<SvxLRSpaceItem>(XATTR_FILL_FIRST - 8)
 
#define RPTUI_ID_ULSPACE   TypedWhichId<SvxULSpaceItem>(XATTR_FILL_FIRST - 7)
 
#define RPTUI_ID_PAGE   TypedWhichId<SvxPageItem>(XATTR_FILL_FIRST - 6)
 
#define RPTUI_ID_SIZE   TypedWhichId<SvxSizeItem>(XATTR_FILL_FIRST - 5)
 
#define RPTUI_ID_PAGE_MODE   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 4)
 
#define RPTUI_ID_START   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 3)
 
#define RPTUI_ID_END   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 2)
 
#define RPTUI_ID_BRUSH   TypedWhichId<SvxBrushItem>(XATTR_FILL_FIRST - 1)
 
#define RPTUI_ID_METRIC   TypedWhichId<SfxUInt16Item>(XATTR_FILL_LAST)
 Note that we deliberately overlap an existing item id, so that we can have contiguous item ids for the static defaults. More...
 
#define PROPERTY_ID_ZOOMVALUE   1
 

Functions

static void lcl_getReportControlFormat (const Sequence< PropertyValue > &aArgs, ODesignView *_pView, uno::Reference< awt::XWindow > &_xWindow, ::std::vector< uno::Reference< uno::XInterface > > &_rControlsFormats)
 
 IMPL_LINK (OReportController, OnCreateHdl, OAddFieldWindow &, _rAddFieldDlg, void)
 
static sal_uInt16 lcl_getNonVisibleGroupsBefore (const uno::Reference< report::XGroups > &_xGroups, sal_Int32 _nGroupPos,::std::function< bool(OGroupHelper *)> const &_pGroupMemberFunction)
 
 IMPL_LINK_NOARG (OReportController, OnClipboardChanged, TransferableDataHelper *, void)
 
 IMPL_LINK_NOARG (OReportController, OnExecuteReport, void *, void)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * reportdesign_OReportController_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Macro Definition Documentation

◆ MAX_ROWS_FOR_PREVIEW

#define MAX_ROWS_FOR_PREVIEW   20

Definition at line 143 of file ReportController.cxx.

◆ PROPERTY_ID_ZOOMVALUE

#define PROPERTY_ID_ZOOMVALUE   1

Definition at line 251 of file ReportController.cxx.

◆ RPTUI_ID_BRUSH

#define RPTUI_ID_BRUSH   TypedWhichId<SvxBrushItem>(XATTR_FILL_FIRST - 1)

Definition at line 152 of file ReportController.cxx.

◆ RPTUI_ID_END

#define RPTUI_ID_END   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 2)

Definition at line 151 of file ReportController.cxx.

◆ RPTUI_ID_LRSPACE

#define RPTUI_ID_LRSPACE   TypedWhichId<SvxLRSpaceItem>(XATTR_FILL_FIRST - 8)

Definition at line 145 of file ReportController.cxx.

◆ RPTUI_ID_METRIC

#define RPTUI_ID_METRIC   TypedWhichId<SfxUInt16Item>(XATTR_FILL_LAST)

Note that we deliberately overlap an existing item id, so that we can have contiguous item ids for the static defaults.

Definition at line 155 of file ReportController.cxx.

◆ RPTUI_ID_PAGE

#define RPTUI_ID_PAGE   TypedWhichId<SvxPageItem>(XATTR_FILL_FIRST - 6)

Definition at line 147 of file ReportController.cxx.

◆ RPTUI_ID_PAGE_MODE

#define RPTUI_ID_PAGE_MODE   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 4)

Definition at line 149 of file ReportController.cxx.

◆ RPTUI_ID_SIZE

#define RPTUI_ID_SIZE   TypedWhichId<SvxSizeItem>(XATTR_FILL_FIRST - 5)

Definition at line 148 of file ReportController.cxx.

◆ RPTUI_ID_START

#define RPTUI_ID_START   TypedWhichId<SfxUInt16Item>(XATTR_FILL_FIRST - 3)

Definition at line 150 of file ReportController.cxx.

◆ RPTUI_ID_ULSPACE

#define RPTUI_ID_ULSPACE   TypedWhichId<SvxULSpaceItem>(XATTR_FILL_FIRST - 7)

Definition at line 146 of file ReportController.cxx.

Function Documentation

◆ IMPL_LINK()

IMPL_LINK ( OReportController  ,
OnCreateHdl  ,
OAddFieldWindow &  ,
_rAddFieldDlg  ,
void   
)

Definition at line 1733 of file ReportController.cxx.

◆ IMPL_LINK_NOARG() [1/2]

IMPL_LINK_NOARG ( OReportController  ,
OnClipboardChanged  ,
TransferableDataHelper ,
void   
)

Definition at line 2314 of file ReportController.cxx.

◆ IMPL_LINK_NOARG() [2/2]

IMPL_LINK_NOARG ( OReportController  ,
OnExecuteReport  ,
void *  ,
void   
)

Definition at line 3088 of file ReportController.cxx.

◆ lcl_getNonVisibleGroupsBefore()

static sal_uInt16 lcl_getNonVisibleGroupsBefore ( const uno::Reference< report::XGroups > &  _xGroups,
sal_Int32  _nGroupPos,
::std::function< bool(OGroupHelper *)> const &  _pGroupMemberFunction 
)
static

Definition at line 2253 of file ReportController.cxx.

References i, and nCount.

Referenced by rptui::OReportController::groupChange().

◆ lcl_getReportControlFormat()

static void lcl_getReportControlFormat ( const Sequence< PropertyValue > &  aArgs,
ODesignView *  _pView,
uno::Reference< awt::XWindow > &  _xWindow,
::std::vector< uno::Reference< uno::XInterface > > &  _rControlsFormats 
)
static

◆ reportdesign_OReportController_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * reportdesign_OReportController_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 4356 of file ReportController.cxx.