LibreOffice Module reportdesign (master)  1
Classes | Typedefs | Enumerations | Functions | Variables
rptui Namespace Reference

Classes

class  AnyConverter
 
class  ColorChanger
 
struct  ColumnInfo
 
class  Condition
 
class  ConditionalExpression
 
class  ConditionalExpressionFactory
 
class  ConditionalFormattingDialog
 
class  ConditionColorWrapper
 
class  ConditionField
 
class  ConditionUpdater
 
class  DataProviderHandler
 
class  DefaultComponentInspectorModel
 
struct  DefaultFunction
 
class  DlgEdFactory
 
class  DlgEdFunc
 
class  DlgEdFuncInsert
 
class  DlgEdFuncSelect
 
class  DlgEdHint
 
class  FixedTextColor
 
class  FormatNormalizer
 
class  FormattedFieldBeautifier
 
class  FormulaDialog
 
class  FunctionCategory
 
class  FunctionDescription
 
class  FunctionManager
 
class  GeometryHandler
 
class  HelpIdUrl
 small helper to translate help ids into help urls More...
 
class  IConditionalFormatAction
 
class  IMarkedSection
 
class  IReportControllerObserver
 
class  OAddFieldWindow
 
class  OColorListener
 
class  OCommentUndoAction
 
class  OCustomShape
 
class  ODateTimeDialog
 
class  ODesignView
 
class  OEndMarker
 Defines the right side of a graphical section. More...
 
class  OFieldExpressionControl
 
class  OGroupExchange
 clipboard class for group rows in the groups and sorting dialog More...
 
class  OGroupHelper
 Helper class to allow std::mem_fun for SAL_CALL. More...
 
class  OGroupSectionUndo
 Undo action for the group header, footer. More...
 
class  OGroupsSortingDialog
 
class  OGroupUndo
 /class OGroupUndo More...
 
class  ONavigator
 
class  ONavigatorImpl
 
class  OObjectBase
 
class  OObjectListener
 
class  OOle2Obj
 
class  OPageNumberDialog
 
struct  OPropertyInfoImpl
 
class  OPropertyInfoService
 
class  OPropertyMediator
 This class ensures the communication between two XPropertySet instances. More...
 
class  OReportController
 
class  OReportExchange
 defines a clipboard format for copying selection elements. More...
 
class  OReportHelper
 Helper class to allow std::mem_fun for SAL_CALL. More...
 
class  OReportModel
 
class  OReportPage
 
class  OReportSection
 
class  OReportSectionUndo
 Undo action for the group header, footer, page header, footer. More...
 
class  OReportUndoFactory
 
class  OReportWindow
 
class  ORptPageDialog
 
class  ORptUndoPropertyAction
 
class  OScrollWindowHelper
 
class  OSectionUndo
 Undo class for section add and remove. More...
 
class  OSectionView
 
class  OSectionWindow
 
class  OStartMarker
 
class  OStatusbarController
 
class  OUndoContainerAction
 
class  OUndoGroupSectionAction
 
class  OUndoPropertyGroupSectionAction
 
class  OUndoPropertyReportSectionAction
 
class  OUndoReportSectionAction
 
class  OUnoObject
 
class  OViewsWindow
 
class  OXReportControllerObserver
 
class  OXReportControllerObserverImpl
 
class  OXUndoEnvironment
 
class  OXUndoEnvironmentImpl
 
class  PropBrw
 
struct  RectangleLess
 
class  ReportComponentHandler
 
class  ReportFormula
 
class  UndoContext
 
class  UndoSuppressor
 

Typedefs

typedef std::unordered_map< OUString, PropertyInfoPropertiesInfo
 
typedef ::std::map< Reference< XPropertySet >, ObjectInfo > PropertySetInfoCache
 
typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::lang::XServiceInfo > DataProviderHandler_Base
 
typedef ::cppu::WeakAggImplHelper3< css::inspection::XObjectInspectorModel, css::lang::XServiceInfo, css::lang::XInitialization > DefaultComponentInspectorModel_Base
 
typedef ::std::pair< css::uno::Reference< css::report::XFunction >, css::uno::Reference< css::report::XFunctionsSupplier > > TFunctionPair
 
typedef ::std::multimap< OUString, TFunctionPair,::comphelper::UStringMixLessTFunctions
 
typedef ::comphelper::OSimpleListenerContainer< css::beans::XPropertyChangeListener, css::beans::PropertyChangeEvent > PropertyChangeListeners
 
typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::beans::XPropertyChangeListener, css::lang::XServiceInfo > GeometryHandler_Base
 
typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::lang::XServiceInfo > ReportComponentHandler_Base
 
typedef ::dbaui::DBSubComponentController OReportController_BASE
 
typedef ::cppu::ImplHelper5< css::container::XContainerListener, css::beans::XPropertyChangeListener, css::view::XSelectionSupplier, css::util::XModeSelector, css::embed::XVisualObject > OReportController_Listener
 
typedef vcl::Window OScrollWindowHelper_BASE
 This class defines the scrollable area of the report design. More...
 
typedef ::cppu::ImplHelper1< css::lang::XServiceInfo > OStatusbarController_BASE
 
typedef std::map< OUString, bool > AllProperties
 
typedef std::shared_ptr< ConditionalExpressionPConditionalExpression
 
typedef ::std::map< ComparisonOperation, PConditionalExpressionConditionalExpressions
 
typedef ::cppu::WeakComponentImplHelper< css::beans::XPropertyChangeListener > OPropertyForward_Base
 
typedef ::std::pair< OUString, std::shared_ptr< AnyConverter > > TPropertyConverter
 
typedef std::map< OUString, TPropertyConverterTPropertyNamePair
 
typedef ::std::multimap< sal_Int16, OUString > IndexToNameMap
 

Enumerations

enum  NearSectionAccess {
  CURRENT = 0,
  PREVIOUS = -1,
  POST = 1
}
 
enum  DlgEdMode {
  DlgEdMode::Insert,
  DlgEdMode::Select
}
 
enum  ConditionType {
  eFieldValueComparison = 0,
  eExpression = 1
}
 
enum  ComparisonOperation {
  eBetween = 0,
  eNotBetween = 1,
  eEqualTo = 2,
  eNotEqualTo = 3,
  eGreaterThan = 4,
  eLessThan = 5,
  eGreaterOrEqual = 6,
  eLessOrEqual = 7
}
 
enum  ControlModification {
  ControlModification::NONE = 0,
  ControlModification::LEFT = 1,
  ControlModification::RIGHT = 2,
  ControlModification::TOP = 3,
  ControlModification::BOTTOM = 4,
  ControlModification::CENTER_HORIZONTAL = 5,
  ControlModification::CENTER_VERTICAL = 6,
  ControlModification::WIDTH_SMALLEST = 7,
  ControlModification::HEIGHT_SMALLEST = 8,
  ControlModification::WIDTH_GREATEST = 9,
  ControlModification::HEIGHT_GREATEST = 10
}
 
enum  DlgEdHintKind {
  RPTUI_HINT_WINDOWSCROLLED,
  RPTUI_HINT_SELECTIONCHANGED
}
 
enum  Action {
  Inserted = 1,
  Removed = 2
}
 

Functions

static std::unique_ptr< SdrUndoActionlcl_createUndo (SdrObject &rObject, Action _eAction, const char *pCommentId)
 
const TPropertyNamePairgetPropertyNameMap (sal_uInt16 _nObjectId)
 returns the property name map for the given property id More...
 
static uno::Reference< chart2::data::XDatabaseDataProvider > lcl_getDataProvider (const uno::Reference< embed::XEmbeddedObject > &_xObj)
 
uno::Reference< style::XStyle > getUsedStyle (const uno::Reference< report::XReportDefinition > &_xReport)
 
 IMPL_LINK (OAddFieldWindow, DragBeginHdl, bool &, rUnsetDragIcon, bool)
 
 IMPL_LINK_NOARG (OAddFieldWindow, FocusChangeHdl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (OAddFieldWindow, OnSelectHdl, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (OAddFieldWindow, OnDoubleClickHdl, weld::TreeView &, bool)
 
 IMPL_LINK (OAddFieldWindow, OnSortAction, const OString &, rCurItem, void)
 
 IMPL_LINK_NOARG (ConditionalFormattingDialog, OnScroll, weld::ScrolledWindow &, void)
 
 IMPL_LINK_NOARG (ConditionField, OnFormula, weld::Button &, void)
 
 IMPL_LINK (Condition, OnFormatAction, const OString &, rIdent, void)
 
 IMPL_LINK (Condition, OnConditionAction, weld::Button &, rClickedButton, void)
 
 IMPL_LINK_NOARG (Condition, OnTypeSelected, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (Condition, OnOperationSelected, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (ODateTimeDialog, CBClickHdl, weld::ToggleButton &, void)
 
 IMPL_LINK (FormulaDialog, OnClickHdl, OAddFieldWindow &, _rAddFieldDlg, void)
 
static void lcl_addToList_throw (weld::ComboBox &_rListBox,::std::vector< ColumnInfo > &o_aColumnList, const uno::Reference< container::XNameAccess > &i_xColumns)
 
 IMPL_LINK_NOARG (OFieldExpressionControl, CBChangeHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (OFieldExpressionControl, DelayedDelete, void *, void)
 
 IMPL_LINK_NOARG (OGroupsSortingDialog, OnControlFocusGot, weld::Widget &, void)
 
 IMPL_LINK (OGroupsSortingDialog, OnWidgetFocusGot, weld::Widget &, rControl, void)
 
 IMPL_LINK_NOARG (OGroupsSortingDialog, OnWidgetFocusLost, weld::Widget &, void)
 
 IMPL_LINK (OGroupsSortingDialog, OnFormatAction, const OString &, rCommand, void)
 
 IMPL_LINK (OGroupsSortingDialog, LBChangeHdl, weld::ComboBox &, rListBox, void)
 
static OUString lcl_getImageId (const uno::Reference< report::XReportComponent > &_xElement)
 
static OUString lcl_getName (const uno::Reference< beans::XPropertySet > &_xElement)
 
 IMPL_LINK (NavigatorTree, CommandHdl, const CommandEvent &, rEvt, bool)
 
 IMPL_LINK_NOARG (NavigatorTree, OnEntrySelDesel, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (ONavigator, FocusChangeHdl, weld::Widget &, void)
 
template<typename T >
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 More...
 
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 of the section More...
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexeraddStyleListener (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 More...
 
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 More...
 
bool openAreaDialog (const css::uno::Reference< css::report::XShape > &_xShape, const css::uno::Reference< css::awt::XWindow > &_xWindow)
 opens the area dialog for shapes More...
 
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 More...
 
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 More...
 
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 _pWindow. More...
 
SdrObjectisOver (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...
 
SdrObjectisOver (const tools::Rectangle &_rRect, SdrPage const &_rPage, SdrView const &_rView, bool _bAllObjects, std::unique_ptr< SdrUnoObj, SdrObjectFreeOp > _pIgnoreList[], int _nIgnoreListLength)
 
SdrObjectisOver (SdrObject const *_pObj, SdrPage const &_rPage, SdrView const &_rView)
 checks whether the given OUnoObject object rectangle overlapps another object in that view. More...
 
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 More...
 
void correctOverlapping (SdrObject *pControl, OReportSection const &_aReportSection, bool _bInsert=true)
 ensures that no control overlaps the given one. More...
 
tools::Rectangle getRectangleFromControl (SdrObject *pControl)
 returns a Rectangle of a given SdrObject More...
 
void setZoomFactor (const Fraction &_aZoom, vcl::Window &_rWindow)
 sets the map mode at the window More...
 
void adjustSectionName (const uno::Reference< report::XGroup > &_xGroup, sal_Int32 _nPos)
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexeraddStyleListener (const uno::Reference< report::XReportDefinition > &_xReportDefinition,::comphelper::OPropertyChangeListener *_pListener)
 
bool openCharDialog (const uno::Reference< report::XReportControlFormat > &_rxReportControlFormat, const uno::Reference< awt::XWindow > &_rxParentWindow, uno::Sequence< beans::NamedValue > &_out_rNewValues)
 
bool openAreaDialog (const uno::Reference< report::XShape > &_xShape, const uno::Reference< awt::XWindow > &_rxParentWindow)
 
void applyCharacterSettings (const uno::Reference< report::XReportControlFormat > &_rxReportControlFormat, const uno::Sequence< beans::NamedValue > &_rSettings)
 
static bool checkArrayForOccurrence (SdrObject const *_pObjToCheck, std::unique_ptr< SdrUnoObj, SdrObjectFreeOp > _pIgnore[], int _nListLength)
 
uno::Sequence< OUString > getParameterNames (const uno::Reference< sdbc::XRowSet > &_rxRowSet)
 
bool 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)
 
 IMPL_LINK_NOARG (ODesignView, MarkTimeout, Timer *, void)
 
 IMPL_LINK_NOARG (ODesignView, SplitHdl, SplitWindow *, void)
 
 IMPL_STATIC_LINK (DlgEdFactory, MakeObject, SdrObjCreatorParams, aParams, SdrObject *)
 
 IMPL_LINK_NOARG (DlgEdFunc, ScrollTimeout, Timer *, void)
 
static Color lcl_setColorOfObject (const uno::Reference< uno::XInterface > &_xObj, Color _nColorTRGB)
 
 IMPL_LINK_NOARG (PropBrw, OnAsyncGetFocus, void *, void)
 
 IMPL_LINK (OXReportControllerObserver, SettingsChanged, VclSimpleEvent &, _rEvt, void)
 
static Color lcl_getOverlappedControlColor ()
 
static void lcl_setScrollBar (sal_Int32 _nNewValue, const Point &_aPos, const Size &_aSize, ScrollBar &_rScrollBar)
 
 IMPL_LINK (OScrollWindowHelper, ScrollHdl, ScrollBar *,, void)
 
 IMPL_LINK (OSectionWindow, Collapsed, OColorListener &, _rMarker, void)
 
 IMPL_LINK_NOARG (OSectionWindow, StartSplitHdl, Splitter *, void)
 
 IMPL_LINK_NOARG (OSectionWindow, EndSplitHdl, Splitter *, void)
 
 IMPL_LINK (OSectionWindow, SplitHdl, Splitter *, _pSplitter, void)
 
static void lcl_scroll (vcl::Window &_rWindow, const Point &_aDelta)
 
static void lcl_setOrigin (vcl::Window &_rWindow, long _nX, long _nY)
 
static bool lcl_getNewRectSize (const tools::Rectangle &_aObjRect, long &_nXMov, long &_nYMov, SdrObject const *_pObj, SdrView const *_pView, ControlModification _nControlModification)
 
constexpr SdrLayerID RPT_LAYER_FRONT (0)
 
constexpr SdrLayerID RPT_LAYER_BACK (1)
 
constexpr SdrLayerID RPT_LAYER_HIDDEN (2)
 
REPORTDESIGN_DLLPUBLIC css::uno::Reference< css::style::XStyle > getUsedStyle (const css::uno::Reference< css::report::XReportDefinition > &_xReport)
 
template<typename T >
getStyleProperty (const css::uno::Reference< css::report::XReportDefinition > &_xReport, const OUString &_sPropertyName)
 

Variables

constexpr size_t MAX_CONDITIONS = 3
 
const sal_Int16 ISOVER_IGNORE_CUSTOMSHAPES = 1
 

Typedef Documentation

typedef std::map<OUString, bool> rptui::AllProperties

Definition at line 40 of file ReportControllerObserver.cxx.

Definition at line 88 of file conditionalexpression.hxx.

typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler , css::lang::XServiceInfo> rptui::DataProviderHandler_Base

Definition at line 41 of file DataProviderHandler.hxx.

typedef ::cppu::WeakAggImplHelper3< css::inspection::XObjectInspectorModel , css::lang::XServiceInfo , css::lang::XInitialization > rptui::DefaultComponentInspectorModel_Base

Definition at line 32 of file DefaultInspection.hxx.

typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler , css::beans::XPropertyChangeListener , css::lang::XServiceInfo> rptui::GeometryHandler_Base

Definition at line 65 of file GeometryHandler.hxx.

typedef ::std::multimap< sal_Int16, OUString > rptui::IndexToNameMap

Definition at line 37 of file RptObject.hxx.

typedef ::cppu::WeakComponentImplHelper< css::beans::XPropertyChangeListener > rptui::OPropertyForward_Base

Definition at line 35 of file PropertyForward.hxx.

Definition at line 63 of file ReportController.hxx.

typedef ::cppu::ImplHelper5< css::container::XContainerListener , css::beans::XPropertyChangeListener , css::view::XSelectionSupplier , css::util::XModeSelector , css::embed::XVisualObject > rptui::OReportController_Listener

Definition at line 71 of file ReportController.hxx.

This class defines the scrollable area of the report design.

It includes the h-ruler and the sections, and end marker. Not the start marker.

Definition at line 35 of file ScrollHelper.hxx.

typedef ::cppu::ImplHelper1< css::lang::XServiceInfo> rptui::OStatusbarController_BASE

Definition at line 30 of file statusbarcontroller.hxx.

Definition at line 87 of file conditionalexpression.hxx.

typedef std::unordered_map< OUString, PropertyInfo > rptui::PropertiesInfo

Definition at line 69 of file UndoEnv.cxx.

typedef ::comphelper::OSimpleListenerContainer< css::beans::XPropertyChangeListener , css::beans::PropertyChangeEvent > rptui::PropertyChangeListeners

Definition at line 62 of file GeometryHandler.hxx.

Definition at line 87 of file UndoEnv.cxx.

typedef ::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler , css::lang::XServiceInfo> rptui::ReportComponentHandler_Base

Definition at line 35 of file ReportComponentHandler.hxx.

typedef ::std::pair< css::uno::Reference< css::report::XFunction>, css::uno::Reference< css::report::XFunctionsSupplier> > rptui::TFunctionPair

Definition at line 57 of file GeometryHandler.hxx.

typedef ::std::multimap< OUString,TFunctionPair, ::comphelper::UStringMixLess > rptui::TFunctions

Definition at line 59 of file GeometryHandler.hxx.

typedef ::std::pair< OUString, std::shared_ptr<AnyConverter> > rptui::TPropertyConverter

Definition at line 82 of file RptDef.hxx.

Definition at line 83 of file RptDef.hxx.

Enumeration Type Documentation

Enumerator
Inserted 
Removed 

Definition at line 39 of file UndoActions.hxx.

Enumerator
eBetween 
eNotBetween 
eEqualTo 
eNotEqualTo 
eGreaterThan 
eLessThan 
eGreaterOrEqual 
eLessOrEqual 

Definition at line 75 of file conditionalexpression.hxx.

Enumerator
eFieldValueComparison 
eExpression 

Definition at line 66 of file conditionalexpression.hxx.

Enumerator
NONE 
LEFT 
RIGHT 
TOP 
BOTTOM 
CENTER_HORIZONTAL 
CENTER_VERTICAL 
WIDTH_SMALLEST 
HEIGHT_SMALLEST 
WIDTH_GREATEST 
HEIGHT_GREATEST 

Definition at line 58 of file RptDef.hxx.

Enumerator
RPTUI_HINT_WINDOWSCROLLED 
RPTUI_HINT_SELECTIONCHANGED 

Definition at line 38 of file RptObject.hxx.

enum rptui::DlgEdMode
strong
Enumerator
Insert 
Select 

Definition at line 24 of file ReportDefines.hxx.

Enumerator
CURRENT 
PREVIOUS 
POST 

Definition at line 29 of file MarkedSection.hxx.

Function Documentation

::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::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

Parameters
_xReportDefinition
_pListener
Returns

Referenced by rptui::OReportSection::fill(), rptui::OScrollWindowHelper::initialize(), and rptui::OReportWindow::OReportWindow().

::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::addStyleListener ( const uno::Reference< report::XReportDefinition > &  _xReportDefinition,
::comphelper::OPropertyChangeListener _pListener 
)
void rptui::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 of the section

Parameters
_xGroupthe group where the header/footer name is set by the expression of the group

Referenced by rptui::OFieldExpressionControl::SaveModified().

void rptui::adjustSectionName ( const uno::Reference< report::XGroup > &  _xGroup,
sal_Int32  _nPos 
)

Definition at line 173 of file UITools.cxx.

References RptResId(), and sName.

void rptui::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

Referenced by rptui::OReportController::Execute(), and rptui::GeometryHandler::setPropertyValue().

void rptui::applyCharacterSettings ( const uno::Reference< report::XReportControlFormat > &  _rxReportControlFormat,
const uno::Sequence< beans::NamedValue > &  _rSettings 
)
static bool rptui::checkArrayForOccurrence ( SdrObject const *  _pObjToCheck,
std::unique_ptr< SdrUnoObj, SdrObjectFreeOp _pIgnore[],
int  _nListLength 
)
static

Definition at line 925 of file UITools.cxx.

References i.

Referenced by isOver().

void rptui::correctOverlapping ( SdrObject pControl,
OReportSection const &  _aReportSection,
bool  _bInsert = true 
)

ensures that no control overlaps the given one.

Parameters
pControlthe control which should place in the section without overlapping
_pReportSectionthe section
_bInsertsal_True when the control should be inserted, otherwise not.

Definition at line 1025 of file UITools.cxx.

References tools::Rectangle::getHeight(), SdrObject::GetLogicRect(), rptui::OReportSection::getPage(), getRectangleFromControl(), SdrPaintView::GetSdrPageView(), rptui::OReportSection::getSectionView(), SdrObject::getUnoShape(), SdrEditView::InsertObjectAtView(), isOver(), tools::Rectangle::Move(), and tools::Rectangle::Top().

Referenced by rptui::OReportController::addPairControls(), rptui::OReportController::createControl(), and rptui::OReportSection::impl_adjustObjectSizePosition().

css::uno::Sequence< OUString > rptui::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

Referenced by rptui::GeometryHandler::inspect(), and rptui::OAddFieldWindow::Update().

uno::Sequence< OUString > rptui::getParameterNames ( const uno::Reference< sdbc::XRowSet > &  _rxRowSet)

Definition at line 977 of file UITools.cxx.

References count(), DBG_UNHANDLED_EXCEPTION, i, and PROPERTY_NAME.

template<typename T >
sal_Int32 rptui::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

Parameters
_xReportDefinitionthe report definition to get the groups
_xGroupthe group to search
Returns
returns the position of the group in the list, otherwise -1

Definition at line 52 of file UITools.hxx.

References i, and nCount.

Referenced by rptui::OReportController::Execute(), rptui::OReportController::getGroupPosition(), rptui::GeometryHandler::impl_fillScopeList_nothrow(), and rptui::OGroupUndo::OGroupUndo().

REPORTDESIGN_DLLPUBLIC const TPropertyNamePair & rptui::getPropertyNameMap ( sal_uInt16  _nObjectId)
tools::Rectangle rptui::getRectangleFromControl ( SdrObject pControl)
template<typename T >
T rptui::getStyleProperty ( const css::uno::Reference< css::report::XReportDefinition > &  _xReport,
const OUString &  _sPropertyName 
)

Definition at line 90 of file RptDef.hxx.

References getUsedStyle().

REPORTDESIGN_DLLPUBLIC css::uno::Reference< css::style::XStyle> rptui::getUsedStyle ( const css::uno::Reference< css::report::XReportDefinition > &  _xReport)
uno::Reference< style::XStyle> rptui::getUsedStyle ( const uno::Reference< report::XReportDefinition > &  _xReport)

Definition at line 1193 of file RptObject.cxx.

References aSeq.

Referenced by addStyleListener(), getStyleProperty(), and rptui::OReportController::openPageDialog().

rptui::IMPL_LINK ( OAddFieldWindow  ,
DragBeginHdl  ,
bool &  ,
rUnsetDragIcon  ,
bool   
)

Definition at line 49 of file AddField.cxx.

rptui::IMPL_LINK ( OXReportControllerObserver  ,
SettingsChanged  ,
VclSimpleEvent ,
_rEvt  ,
void   
)
rptui::IMPL_LINK ( Condition  ,
OnFormatAction  ,
const OString &  ,
rIdent  ,
void   
)

Definition at line 182 of file Condition.cxx.

References COL_AUTO().

rptui::IMPL_LINK ( Condition  ,
OnConditionAction  ,
weld::Button ,
rClickedButton  ,
void   
)

Definition at line 188 of file Condition.cxx.

rptui::IMPL_LINK ( OScrollWindowHelper  ,
ScrollHdl  ,
ScrollBar ,
void   
)

Definition at line 194 of file ScrollHelper.cxx.

rptui::IMPL_LINK ( FormulaDialog  ,
OnClickHdl  ,
OAddFieldWindow ,
_rAddFieldDlg  ,
void   
)

Definition at line 227 of file Formula.cxx.

References svx::ColumnName, RET_CANCEL, and sName.

rptui::IMPL_LINK ( NavigatorTree  ,
CommandHdl  ,
const CommandEvent ,
rEvt  ,
bool   
)

Definition at line 263 of file Navigator.cxx.

References Application::CreateBuilder(), i, nId, PROPERTY_GROUP, and SAL_N_ELEMENTS.

rptui::IMPL_LINK ( OSectionWindow  ,
Collapsed  ,
OColorListener ,
_rMarker  ,
void   
)

Definition at line 293 of file SectionWindow.cxx.

rptui::IMPL_LINK ( OAddFieldWindow  ,
OnSortAction  ,
const OString &  ,
rCurItem  ,
void   
)

Definition at line 322 of file AddField.cxx.

References SAL_N_ELEMENTS, and Update.

rptui::IMPL_LINK ( OSectionWindow  ,
SplitHdl  ,
Splitter ,
_pSplitter  ,
void   
)

Definition at line 325 of file SectionWindow.cxx.

References getView(), i, and nCount.

rptui::IMPL_LINK ( OGroupsSortingDialog  ,
OnWidgetFocusGot  ,
weld::Widget ,
rControl  ,
void   
)
rptui::IMPL_LINK ( OGroupsSortingDialog  ,
OnFormatAction  ,
const OString &  ,
rCommand  ,
void   
)

Definition at line 971 of file GroupsSorting.cxx.

References LINK, nIndex, NO_GROUP, and Application::PostUserEvent().

rptui::IMPL_LINK ( OGroupsSortingDialog  ,
LBChangeHdl  ,
weld::ComboBox ,
rListBox  ,
void   
)

Definition at line 1010 of file GroupsSorting.cxx.

References Name, NO_GROUP, PROPERTY_FOOTERON, PROPERTY_GROUP, and PROPERTY_HEADERON.

rptui::IMPL_LINK_NOARG ( ConditionField  ,
OnFormula  ,
weld::Button ,
void   
)
rptui::IMPL_LINK_NOARG ( DlgEdFunc  ,
ScrollTimeout  ,
Timer ,
void   
)

Definition at line 59 of file dlgedfunc.cxx.

rptui::IMPL_LINK_NOARG ( OAddFieldWindow  ,
FocusChangeHdl  ,
weld::Widget ,
void   
)

Definition at line 120 of file AddField.cxx.

References m_xDialog.

rptui::IMPL_LINK_NOARG ( ODateTimeDialog  ,
CBClickHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 170 of file DateTime.cxx.

rptui::IMPL_LINK_NOARG ( Condition  ,
OnTypeSelected  ,
weld::ComboBox ,
void   
)

Definition at line 205 of file Condition.cxx.

rptui::IMPL_LINK_NOARG ( Condition  ,
OnOperationSelected  ,
weld::ComboBox ,
void   
)

Definition at line 210 of file Condition.cxx.

rptui::IMPL_LINK_NOARG ( ConditionalFormattingDialog  ,
OnScroll  ,
weld::ScrolledWindow ,
void   
)

Definition at line 259 of file CondFormat.cxx.

References MAX_CONDITIONS.

rptui::IMPL_LINK_NOARG ( ODesignView  ,
MarkTimeout  ,
Timer ,
void   
)

Definition at line 267 of file DesignView.cxx.

References Resize.

rptui::IMPL_LINK_NOARG ( OAddFieldWindow  ,
OnSelectHdl  ,
weld::TreeView ,
void   
)

Definition at line 311 of file AddField.cxx.

rptui::IMPL_LINK_NOARG ( OSectionWindow  ,
StartSplitHdl  ,
Splitter ,
void   
)

Definition at line 314 of file SectionWindow.cxx.

References RptResId().

rptui::IMPL_LINK_NOARG ( OAddFieldWindow  ,
OnDoubleClickHdl  ,
weld::TreeView ,
bool   
)

Definition at line 316 of file AddField.cxx.

rptui::IMPL_LINK_NOARG ( OSectionWindow  ,
EndSplitHdl  ,
Splitter ,
void   
)

Definition at line 320 of file SectionWindow.cxx.

rptui::IMPL_LINK_NOARG ( NavigatorTree  ,
OnEntrySelDesel  ,
weld::TreeView ,
void   
)

Definition at line 332 of file Navigator.cxx.

rptui::IMPL_LINK_NOARG ( OFieldExpressionControl  ,
CBChangeHdl  ,
weld::ComboBox ,
void   
)

Definition at line 395 of file GroupsSorting.cxx.

rptui::IMPL_LINK_NOARG ( ODesignView  ,
SplitHdl  ,
SplitWindow ,
void   
)

Definition at line 399 of file DesignView.cxx.

References TASKPANE_ID, and Size::Width().

rptui::IMPL_LINK_NOARG ( PropBrw  ,
OnAsyncGetFocus  ,
void ,
void   
)

Definition at line 519 of file propbrw.cxx.

rptui::IMPL_LINK_NOARG ( OFieldExpressionControl  ,
DelayedDelete  ,
void ,
void   
)

Definition at line 771 of file GroupsSorting.cxx.

References DeleteRows.

rptui::IMPL_LINK_NOARG ( ONavigator  ,
FocusChangeHdl  ,
weld::Widget ,
void   
)

Definition at line 828 of file Navigator.cxx.

References m_pImpl, and m_xDialog.

rptui::IMPL_LINK_NOARG ( OGroupsSortingDialog  ,
OnControlFocusGot  ,
weld::Widget ,
void   
)

Definition at line 930 of file GroupsSorting.cxx.

References RptResId().

rptui::IMPL_LINK_NOARG ( OGroupsSortingDialog  ,
OnWidgetFocusLost  ,
weld::Widget ,
void   
)

Definition at line 962 of file GroupsSorting.cxx.

rptui::IMPL_STATIC_LINK ( DlgEdFactory  ,
MakeObject  ,
SdrObjCreatorParams  ,
aParams  ,
SdrObject  
)
SdrObject * rptui::isOver ( const tools::Rectangle _rRect,
SdrPage const &  _rPage,
SdrView const &  _rView,
bool  _bAllObjects = false,
SdrObject const *  _pIgnore = nullptr,
sal_Int16  _nIgnoreType = 0 
)
SdrObject * rptui::isOver ( const tools::Rectangle _rRect,
SdrPage const &  _rPage,
SdrView const &  _rView,
bool  _bAllObjects,
std::unique_ptr< SdrUnoObj, SdrObjectFreeOp _pIgnoreList[],
int  _nIgnoreListLength 
)
SdrObject * rptui::isOver ( SdrObject const *  _pObj,
SdrPage const &  _rPage,
SdrView const &  _rView 
)

checks whether the given OUnoObject object rectangle overlapps another object in that view.

Parameters
_pObj
_rPage
_rView
Returns
the object which is overlapped, otherwise <NULL>. If the given object is not of type OUnoObject <NULL> will be returned.

Definition at line 965 of file UITools.cxx.

References SdrObject::GetCurrentBoundRect(), and isOver().

static void rptui::lcl_addToList_throw ( weld::ComboBox _rListBox,
::std::vector< ColumnInfo > &  o_aColumnList,
const uno::Reference< container::XNameAccess > &  i_xColumns 
)
static
static std::unique_ptr<SdrUndoAction> rptui::lcl_createUndo ( SdrObject rObject,
Action  _eAction,
const char *  pCommentId 
)
static
static uno::Reference< chart2::data::XDatabaseDataProvider > rptui::lcl_getDataProvider ( const uno::Reference< embed::XEmbeddedObject > &  _xObj)
static
static OUString rptui::lcl_getImageId ( const uno::Reference< report::XReportComponent > &  _xElement)
static

Definition at line 56 of file Navigator.cxx.

References sId, and u.

static OUString rptui::lcl_getName ( const uno::Reference< beans::XPropertySet > &  _xElement)
static

Definition at line 73 of file Navigator.cxx.

References PROPERTY_DATAFIELD, PROPERTY_NAME, and sName.

static bool rptui::lcl_getNewRectSize ( const tools::Rectangle _aObjRect,
long &  _nXMov,
long &  _nYMov,
SdrObject const *  _pObj,
SdrView const *  _pView,
ControlModification  _nControlModification 
)
static
static Color rptui::lcl_getOverlappedControlColor ( )
static
static void rptui::lcl_scroll ( vcl::Window _rWindow,
const Point &  _aDelta 
)
static
static Color rptui::lcl_setColorOfObject ( const uno::Reference< uno::XInterface > &  _xObj,
Color  _nColorTRGB 
)
static
static void rptui::lcl_setOrigin ( vcl::Window _rWindow,
long  _nX,
long  _nY 
)
static
static void rptui::lcl_setScrollBar ( sal_Int32  _nNewValue,
const Point &  _aPos,
const Size _aSize,
ScrollBar _rScrollBar 
)
static
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.

Parameters
pWindowThe window which is used to search for the SystemWindow.
pToRegisterThe window which should be added or removed on the TaskPaneList.
rMemFuncThe member function which should be called at the SystemWindow when found. Possible values are: ::comphelper::mem_fun(&TaskPaneList::AddWindow) ::comphelper::mem_fun(&TaskPaneList::RemoveWindow)

Definition at line 885 of file UITools.cxx.

References vcl::Window::GetSystemWindow(), and SystemWindow::GetTaskPaneList().

Referenced by rptui::PropBrw::dispose(), rptui::ODesignView::dispose(), and rptui::ODesignView::togglePropertyBrowser().

bool rptui::openAreaDialog ( const css::uno::Reference< css::report::XShape > &  _xShape,
const css::uno::Reference< css::awt::XWindow > &  _xWindow 
)

opens the area dialog for shapes

Referenced by rptui::GeometryHandler::onInteractivePropertySelection().

bool rptui::openAreaDialog ( const uno::Reference< report::XShape > &  _xShape,
const uno::Reference< awt::XWindow > &  _rxParentWindow 
)
bool rptui::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

Referenced by rptui::OReportController::Execute(), and rptui::GeometryHandler::onInteractivePropertySelection().

bool rptui::openCharDialog ( const uno::Reference< report::XReportControlFormat > &  _rxReportControlFormat,
const uno::Reference< awt::XWindow > &  _rxParentWindow,
uno::Sequence< beans::NamedValue > &  _out_rNewValues 
)

Definition at line 599 of file UITools.cxx.

References aItemInfos, ASIAN, COL_BLACK, COL_DEFAULT_SHAPE_FILLING, COL_DEFAULT_SHAPE_STROKE, COL_WHITE, COMPLEX, XColorList::CreateStdColorList(), DBG_UNHANDLED_EXCEPTION, SfxItemPool::Free(), SfxItemPool::FreezeIdRanges(), Application::GetDefaultDevice(), Application::GetFrameWeld(), ITALIC_NONE, ITEMID_AUTOKERN, ITEMID_BLINK, ITEMID_BRUSH, ITEMID_CASEMAP, ITEMID_CHARHIDDEN, ITEMID_CHARRELIEF, ITEMID_CHARROTATE, ITEMID_CHARSCALE_W, ITEMID_COLOR, ITEMID_COLOR_TABLE, ITEMID_CONTOUR, ITEMID_CROSSEDOUT, ITEMID_EMPHASISMARK, ITEMID_ESCAPEMENT, ITEMID_FONT, ITEMID_FONT_ASIAN, ITEMID_FONT_COMPLEX, ITEMID_FONTHEIGHT, ITEMID_FONTHEIGHT_ASIAN, ITEMID_FONTHEIGHT_COMPLEX, ITEMID_FONTLIST, ITEMID_HORJUSTIFY, ITEMID_KERNING, ITEMID_LANGUAGE, ITEMID_LANGUAGE_ASIAN, ITEMID_LANGUAGE_COMPLEX, ITEMID_POSTURE, ITEMID_POSTURE_ASIAN, ITEMID_POSTURE_COMPLEX, ITEMID_SHADOWED, ITEMID_TWOLINES, ITEMID_UNDERLINE, ITEMID_VERJUSTIFY, ITEMID_WEIGHT, ITEMID_WEIGHT_ASIAN, ITEMID_WEIGHT_COMPLEX, ITEMID_WORDLINEMODE, LANGUAGE_GERMAN, LINESTYLE_NONE, RET_OK, SAL_N_ELEMENTS, STRIKEOUT_NONE, WEIGHT_NORMAL, WESTERN, XATTR_FILL_FIRST(), XATTR_FILLBACKGROUND(), XATTR_FILLBITMAP(), XATTR_FILLBMP_POS(), XATTR_FILLBMP_POSOFFSETX(), XATTR_FILLBMP_POSOFFSETY(), XATTR_FILLBMP_SIZELOG(), XATTR_FILLBMP_SIZEX(), XATTR_FILLBMP_SIZEY(), XATTR_FILLBMP_STRETCH(), XATTR_FILLBMP_TILE(), XATTR_FILLBMP_TILEOFFSETX(), XATTR_FILLBMP_TILEOFFSETY(), XATTR_FILLCOLOR(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), XATTR_FILLSTYLE(), XATTR_FILLTRANSPARENCE(), XATTR_GRADIENTSTEPCOUNT(), and XATTR_SECONDARYFILLCOLOR().

bool rptui::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

Parameters
_out_rFormulathe formula chosen by the user we're really inspecting a database report (well, a RowSet at least)
Returns
<TRUE> if and only if the user successfully chose a clause

Referenced by IMPL_LINK_NOARG(), and rptui::GeometryHandler::onInteractivePropertySelection().

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 
)
constexpr SdrLayerID rptui::RPT_LAYER_BACK ( )
constexpr SdrLayerID rptui::RPT_LAYER_FRONT ( )
constexpr SdrLayerID rptui::RPT_LAYER_HIDDEN ( )
void rptui::setZoomFactor ( const Fraction _aZoom,
vcl::Window _rWindow 
)

sets the map mode at the window

Parameters
_aZoomthe zoom scale
_rWindowwhere to set the map mode

Definition at line 1047 of file UITools.cxx.

References OutputDevice::GetMapMode(), and OutputDevice::SetMapMode().

Referenced by rptui::OReportController::impl_zoom_nothrow(), rptui::OStartMarker::zoom(), rptui::OSectionWindow::zoom(), and rptui::OViewsWindow::zoom().

Variable Documentation

const sal_Int16 rptui::ISOVER_IGNORE_CUSTOMSHAPES = 1

Definition at line 131 of file UITools.hxx.

Referenced by isOver(), and rptui::DlgEdFunc::isRectangleHit().

constexpr size_t rptui::MAX_CONDITIONS = 3