LibreOffice Module reportdesign (master) 1
Namespaces | Macros | Functions
UITools.cxx File Reference
#include <memory>
#include <toolkit/helper/convert.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <SectionView.hxx>
#include <UITools.hxx>
#include <Formula.hxx>
#include <FunctionHelper.hxx>
#include <reportformula.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/settings.hxx>
#include <vcl/syswin.hxx>
#include <vcl/svapp.hxx>
#include <vcl/unohelp.hxx>
#include <vcl/window.hxx>
#include <com/sun/star/lang/NullPointerException.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <svx/svdpool.hxx>
#include <editeng/charscaleitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/wrlmitem.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/blinkitem.hxx>
#include <editeng/flstitem.hxx>
#include <editeng/autokernitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/justifyitem.hxx>
#include <svx/drawitem.hxx>
#include <editeng/twolinesitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/charrotateitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <editeng/memberids.h>
#include <svx/xgrscit.hxx>
#include <svx/svditer.hxx>
#include <svx/xtable.hxx>
#include <svx/svdview.hxx>
#include <svx/svdpage.hxx>
#include <svx/svxdlg.hxx>
#include <svx/unoprov.hxx>
#include <svx/svxids.hrc>
#include <unotools/charclass.hxx>
#include <svtools/ctrltool.hxx>
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <svl/sharedstringpool.hxx>
#include <comphelper/propmultiplex.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <connectivity/dbexception.hxx>
#include <connectivity/dbtools.hxx>
#include <com/sun/star/style/VerticalAlignment.hpp>
#include <com/sun/star/report/XShape.hpp>
#include <com/sun/star/sdb/XParametersSupplier.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <dlgpage.hxx>
#include <strings.hxx>
#include <core_resource.hxx>
#include <RptObject.hxx>
#include <RptDef.hxx>
#include <strings.hrc>
#include <ReportDefinition.hxx>
#include <RptModel.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/xbtmpit.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xfltrit.hxx>
#include <svx/xflclit.hxx>
#include <svx/xflgrit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xsflclit.hxx>
Include dependency graph for UITools.cxx:

Go to the source code of this file.

Namespaces

namespace  rptui
 

Macros

#define ITEMID_FIRST   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 ITEMID_FONT   TypedWhichId<SvxFontItem>(ITEMID_FIRST)
 
#define ITEMID_FONTHEIGHT   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 1)
 
#define ITEMID_LANGUAGE   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 2)
 
#define ITEMID_POSTURE   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 3)
 
#define ITEMID_WEIGHT   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 4)
 
#define ITEMID_SHADOWED   TypedWhichId<SvxShadowedItem>(ITEMID_FIRST + 5)
 
#define ITEMID_WORDLINEMODE   TypedWhichId<SvxWordLineModeItem>(ITEMID_FIRST + 6)
 
#define ITEMID_CONTOUR   TypedWhichId<SvxContourItem>(ITEMID_FIRST + 7)
 
#define ITEMID_CROSSEDOUT   TypedWhichId<SvxCrossedOutItem>(ITEMID_FIRST + 8)
 
#define ITEMID_UNDERLINE   TypedWhichId<SvxUnderlineItem>(ITEMID_FIRST + 9)
 
#define ITEMID_COLOR   TypedWhichId<SvxColorItem>(ITEMID_FIRST + 10)
 
#define ITEMID_KERNING   TypedWhichId<SvxKerningItem>(ITEMID_FIRST + 11)
 
#define ITEMID_CASEMAP   TypedWhichId<SvxCaseMapItem>(ITEMID_FIRST + 12)
 
#define ITEMID_ESCAPEMENT   TypedWhichId<SvxEscapementItem>(ITEMID_FIRST + 13)
 
#define ITEMID_FONTLIST   ITEMID_FIRST + 14
 
#define ITEMID_AUTOKERN   TypedWhichId<SvxAutoKernItem>(ITEMID_FIRST + 15)
 
#define ITEMID_COLOR_TABLE   TypedWhichId<SvxColorListItem>(ITEMID_FIRST + 16)
 
#define ITEMID_BLINK   TypedWhichId<SvxBlinkItem>(ITEMID_FIRST + 17)
 
#define ITEMID_EMPHASISMARK   TypedWhichId<SvxEmphasisMarkItem>(ITEMID_FIRST + 18)
 
#define ITEMID_TWOLINES   TypedWhichId<SvxTwoLinesItem>(ITEMID_FIRST + 19)
 
#define ITEMID_CHARROTATE   TypedWhichId<SvxCharRotateItem>(ITEMID_FIRST + 20)
 
#define ITEMID_CHARSCALE_W   TypedWhichId<SvxCharScaleWidthItem>(ITEMID_FIRST + 21)
 
#define ITEMID_CHARRELIEF   TypedWhichId<SvxCharReliefItem>(ITEMID_FIRST + 22)
 
#define ITEMID_CHARHIDDEN   TypedWhichId<SvxCharHiddenItem>(ITEMID_FIRST + 23)
 
#define ITEMID_BRUSH   TypedWhichId<SvxBrushItem>(ITEMID_FIRST + 24)
 
#define ITEMID_HORJUSTIFY   TypedWhichId<SvxHorJustifyItem>(ITEMID_FIRST + 25)
 
#define ITEMID_VERJUSTIFY   TypedWhichId<SvxVerJustifyItem>(ITEMID_FIRST + 26)
 
#define ITEMID_FONT_ASIAN   TypedWhichId<SvxFontItem>(ITEMID_FIRST + 27)
 
#define ITEMID_FONTHEIGHT_ASIAN   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 28)
 
#define ITEMID_LANGUAGE_ASIAN   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 29)
 
#define ITEMID_POSTURE_ASIAN   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 30)
 
#define ITEMID_WEIGHT_ASIAN   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 31)
 
#define ITEMID_FONT_COMPLEX   TypedWhichId<SvxFontItem>(ITEMID_FIRST + 32)
 
#define ITEMID_FONTHEIGHT_COMPLEX   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 33)
 
#define ITEMID_LANGUAGE_COMPLEX   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 34)
 
#define ITEMID_POSTURE_COMPLEX   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 35)
 
#define ITEMID_WEIGHT_COMPLEX   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 36)
 
#define WESTERN   0
 
#define ASIAN   1
 
#define COMPLEX   2
 

Functions

void rptui::adjustSectionName (const uno::Reference< report::XGroup > &_xGroup, sal_Int32 _nPos)
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexerrptui::addStyleListener (const uno::Reference< report::XReportDefinition > &_xReportDefinition,::comphelper::OPropertyChangeListener *_pListener)
 
bool rptui::openCharDialog (const uno::Reference< report::XReportControlFormat > &_rxReportControlFormat, const uno::Reference< awt::XWindow > &_rxParentWindow, uno::Sequence< beans::NamedValue > &_out_rNewValues)
 
bool rptui::openAreaDialog (const uno::Reference< report::XShape > &_xShape, const uno::Reference< awt::XWindow > &_rxParentWindow)
 
void rptui::applyCharacterSettings (const uno::Reference< report::XReportControlFormat > &_rxReportControlFormat, const uno::Sequence< beans::NamedValue > &_rSettings)
 
void rptui::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 _pWindow. More...
 
SdrObjectrptui::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. More...
 
static bool rptui::checkArrayForOccurrence (SdrObject const *_pObjToCheck, rtl::Reference< SdrUnoObj > _pIgnore[], int _nListLength)
 
SdrObjectrptui::isOver (const tools::Rectangle &_rRect, SdrPage const &_rPage, SdrView const &_rView, bool _bAllObjects, rtl::Reference< SdrUnoObj > _pIgnoreList[], int _nIgnoreListLength)
 
SdrObjectrptui::isOver (SdrObject const *_pObj, SdrPage const &_rPage, SdrView const &_rView)
 checks whether the given OUnoObject object rectangle overlapps another object in that view. More...
 
uno::Sequence< OUString > rptui::getParameterNames (const uno::Reference< sdbc::XRowSet > &_rxRowSet)
 
tools::Rectangle rptui::getRectangleFromControl (SdrObject *pControl)
 returns a Rectangle of a given SdrObject More...
 
void rptui::correctOverlapping (SdrObject *pControl, OReportSection const &_aReportSection, bool _bInsert=true)
 ensures that no control overlaps the given one. More...
 
void rptui::setZoomFactor (const Fraction &_aZoom, vcl::Window &_rWindow)
 sets the map mode at the window More...
 
bool rptui::openDialogFormula_nothrow (OUString &_in_out_rFormula, const css::uno::Reference< css::uno::XComponentContext > &_xContext, const uno::Reference< awt::XWindow > &_xInspectorWindow, const css::uno::Reference< css::beans::XPropertySet > &_xRowSet)
 

Macro Definition Documentation

◆ ASIAN

#define ASIAN   1

Definition at line 171 of file UITools.cxx.

◆ COMPLEX

#define COMPLEX   2

Definition at line 172 of file UITools.cxx.

◆ ITEMID_AUTOKERN

#define ITEMID_AUTOKERN   TypedWhichId<SvxAutoKernItem>(ITEMID_FIRST + 15)

Definition at line 145 of file UITools.cxx.

◆ ITEMID_BLINK

#define ITEMID_BLINK   TypedWhichId<SvxBlinkItem>(ITEMID_FIRST + 17)

Definition at line 147 of file UITools.cxx.

◆ ITEMID_BRUSH

#define ITEMID_BRUSH   TypedWhichId<SvxBrushItem>(ITEMID_FIRST + 24)

Definition at line 154 of file UITools.cxx.

◆ ITEMID_CASEMAP

#define ITEMID_CASEMAP   TypedWhichId<SvxCaseMapItem>(ITEMID_FIRST + 12)

Definition at line 141 of file UITools.cxx.

◆ ITEMID_CHARHIDDEN

#define ITEMID_CHARHIDDEN   TypedWhichId<SvxCharHiddenItem>(ITEMID_FIRST + 23)

Definition at line 153 of file UITools.cxx.

◆ ITEMID_CHARRELIEF

#define ITEMID_CHARRELIEF   TypedWhichId<SvxCharReliefItem>(ITEMID_FIRST + 22)

Definition at line 152 of file UITools.cxx.

◆ ITEMID_CHARROTATE

#define ITEMID_CHARROTATE   TypedWhichId<SvxCharRotateItem>(ITEMID_FIRST + 20)

Definition at line 150 of file UITools.cxx.

◆ ITEMID_CHARSCALE_W

#define ITEMID_CHARSCALE_W   TypedWhichId<SvxCharScaleWidthItem>(ITEMID_FIRST + 21)

Definition at line 151 of file UITools.cxx.

◆ ITEMID_COLOR

#define ITEMID_COLOR   TypedWhichId<SvxColorItem>(ITEMID_FIRST + 10)

Definition at line 139 of file UITools.cxx.

◆ ITEMID_COLOR_TABLE

#define ITEMID_COLOR_TABLE   TypedWhichId<SvxColorListItem>(ITEMID_FIRST + 16)

Definition at line 146 of file UITools.cxx.

◆ ITEMID_CONTOUR

#define ITEMID_CONTOUR   TypedWhichId<SvxContourItem>(ITEMID_FIRST + 7)

Definition at line 135 of file UITools.cxx.

◆ ITEMID_CROSSEDOUT

#define ITEMID_CROSSEDOUT   TypedWhichId<SvxCrossedOutItem>(ITEMID_FIRST + 8)

Definition at line 136 of file UITools.cxx.

◆ ITEMID_EMPHASISMARK

#define ITEMID_EMPHASISMARK   TypedWhichId<SvxEmphasisMarkItem>(ITEMID_FIRST + 18)

Definition at line 148 of file UITools.cxx.

◆ ITEMID_ESCAPEMENT

#define ITEMID_ESCAPEMENT   TypedWhichId<SvxEscapementItem>(ITEMID_FIRST + 13)

Definition at line 143 of file UITools.cxx.

◆ ITEMID_FIRST

#define ITEMID_FIRST   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 125 of file UITools.cxx.

◆ ITEMID_FONT

#define ITEMID_FONT   TypedWhichId<SvxFontItem>(ITEMID_FIRST)

Definition at line 127 of file UITools.cxx.

◆ ITEMID_FONT_ASIAN

#define ITEMID_FONT_ASIAN   TypedWhichId<SvxFontItem>(ITEMID_FIRST + 27)

Definition at line 157 of file UITools.cxx.

◆ ITEMID_FONT_COMPLEX

#define ITEMID_FONT_COMPLEX   TypedWhichId<SvxFontItem>(ITEMID_FIRST + 32)

Definition at line 162 of file UITools.cxx.

◆ ITEMID_FONTHEIGHT

#define ITEMID_FONTHEIGHT   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 1)

Definition at line 128 of file UITools.cxx.

◆ ITEMID_FONTHEIGHT_ASIAN

#define ITEMID_FONTHEIGHT_ASIAN   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 28)

Definition at line 158 of file UITools.cxx.

◆ ITEMID_FONTHEIGHT_COMPLEX

#define ITEMID_FONTHEIGHT_COMPLEX   TypedWhichId<SvxFontHeightItem>(ITEMID_FIRST + 33)

Definition at line 163 of file UITools.cxx.

◆ ITEMID_FONTLIST

#define ITEMID_FONTLIST   ITEMID_FIRST + 14

Definition at line 144 of file UITools.cxx.

◆ ITEMID_HORJUSTIFY

#define ITEMID_HORJUSTIFY   TypedWhichId<SvxHorJustifyItem>(ITEMID_FIRST + 25)

Definition at line 155 of file UITools.cxx.

◆ ITEMID_KERNING

#define ITEMID_KERNING   TypedWhichId<SvxKerningItem>(ITEMID_FIRST + 11)

Definition at line 140 of file UITools.cxx.

◆ ITEMID_LANGUAGE

#define ITEMID_LANGUAGE   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 2)

Definition at line 129 of file UITools.cxx.

◆ ITEMID_LANGUAGE_ASIAN

#define ITEMID_LANGUAGE_ASIAN   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 29)

Definition at line 159 of file UITools.cxx.

◆ ITEMID_LANGUAGE_COMPLEX

#define ITEMID_LANGUAGE_COMPLEX   TypedWhichId<SvxLanguageItem>(ITEMID_FIRST + 34)

Definition at line 164 of file UITools.cxx.

◆ ITEMID_POSTURE

#define ITEMID_POSTURE   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 3)

Definition at line 131 of file UITools.cxx.

◆ ITEMID_POSTURE_ASIAN

#define ITEMID_POSTURE_ASIAN   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 30)

Definition at line 160 of file UITools.cxx.

◆ ITEMID_POSTURE_COMPLEX

#define ITEMID_POSTURE_COMPLEX   TypedWhichId<SvxPostureItem>(ITEMID_FIRST + 35)

Definition at line 165 of file UITools.cxx.

◆ ITEMID_SHADOWED

#define ITEMID_SHADOWED   TypedWhichId<SvxShadowedItem>(ITEMID_FIRST + 5)

Definition at line 133 of file UITools.cxx.

◆ ITEMID_TWOLINES

#define ITEMID_TWOLINES   TypedWhichId<SvxTwoLinesItem>(ITEMID_FIRST + 19)

Definition at line 149 of file UITools.cxx.

◆ ITEMID_UNDERLINE

#define ITEMID_UNDERLINE   TypedWhichId<SvxUnderlineItem>(ITEMID_FIRST + 9)

Definition at line 137 of file UITools.cxx.

◆ ITEMID_VERJUSTIFY

#define ITEMID_VERJUSTIFY   TypedWhichId<SvxVerJustifyItem>(ITEMID_FIRST + 26)

Definition at line 156 of file UITools.cxx.

◆ ITEMID_WEIGHT

#define ITEMID_WEIGHT   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 4)

Definition at line 132 of file UITools.cxx.

◆ ITEMID_WEIGHT_ASIAN

#define ITEMID_WEIGHT_ASIAN   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 31)

Definition at line 161 of file UITools.cxx.

◆ ITEMID_WEIGHT_COMPLEX

#define ITEMID_WEIGHT_COMPLEX   TypedWhichId<SvxWeightItem>(ITEMID_FIRST + 36)

Definition at line 166 of file UITools.cxx.

◆ ITEMID_WORDLINEMODE

#define ITEMID_WORDLINEMODE   TypedWhichId<SvxWordLineModeItem>(ITEMID_FIRST + 6)

Definition at line 134 of file UITools.cxx.

◆ WESTERN

#define WESTERN   0

Definition at line 170 of file UITools.cxx.