LibreOffice Module reportdesign (master) 1
|
#include <DesignView.hxx>
Public Member Functions | |
ODesignView (vcl::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &, OReportController &_rController) | |
virtual | ~ODesignView () override |
virtual void | dispose () override |
virtual void | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | PreNotify (NotifyEvent &rNEvt) override |
virtual void | GetFocus () override |
virtual void | initialize () override |
OReportController & | getController () const |
void | SetMode (DlgEdMode m_eMode) |
void | SetInsertObj (SdrObjKind eObj, const OUString &_sShapeType=OUString()) |
SdrObjKind | GetInsertObj () const |
OUString const & | GetInsertObjString () const |
DlgEdMode | GetMode () const |
void | Cut () |
cuts the current selection in this section More... | |
void | Copy () |
copies the current selection in this section More... | |
bool | IsPasteAllowed () const |
returns if paste is allowed More... | |
void | Paste () |
paste a new control in this section More... | |
void | Delete () |
Deletes the current selection in this section. More... | |
void | alignMarkedObjects (ControlModification _nControlModification, bool _bAlignAtSection) |
align all marked objects in all sections More... | |
void | SelectAll (const SdrObjKind _nObjectType) |
All objects will be marked. More... | |
bool | HasSelection () const |
checks if a selection exists More... | |
void | UpdatePropertyBrowserDelayed (OSectionView &_rView) |
sal_uInt16 | getSectionCount () const |
void | removeSection (sal_uInt16 _nPosition) |
removes the section at the given position. More... | |
void | addSection (const css::uno::Reference< css::report::XSection > &_xSection, const OUString &_sColorEntry, sal_uInt16 _nPosition=USHRT_MAX) |
adds a new section at position _nPosition. More... | |
const Size & | getGridSizeCoarse () const |
const Size & | getGridSizeFine () const |
void | setGridSnap (bool bOn) |
void | setDragStripes (bool bOn) |
void | toggleGrid (bool _bGridVisible) |
turns the grid on or off More... | |
void | togglePropertyBrowser (bool _bToggleOn) |
bool | isAddFieldVisible () const |
void | toggleAddField () |
bool | isReportExplorerVisible () const |
void | toggleReportExplorer () |
void | showRuler (bool _bShow) |
shows or hides the ruler. More... | |
void | unmarkAllObjects () |
unmark all objects on the views. More... | |
void | showProperties (const css::uno::Reference< css::uno::XInterface > &_xReportComponent) |
triggers the property browser with the section More... | |
css::uno::Any | getCurrentlyShownProperty () const |
css::uno::Reference< css::report::XSection > | getCurrentSection () const |
returns the current section or the detail section if no section was selected previously More... | |
css::uno::Reference< css::report::XReportComponent > | getCurrentControlModel () const |
returns the current control report model or <NULL> More... | |
OSectionWindow * | getMarkedSection (NearSectionAccess nsa=CURRENT) const override |
returns the section which is currently marked. More... | |
OSectionWindow * | getSectionWindow (const css::uno::Reference< css::report::XSection > &_xSection) const |
virtual void | markSection (const sal_uInt16 _nPos) override |
mark the section on the given position . More... | |
void | fillCollapsedSections (::std::vector< sal_uInt16 > &_rCollapsedPositions) const |
fills the positions of all collapsed sections. More... | |
void | collapseSections (const css::uno::Sequence< css::beans::PropertyValue > &_aCollapsedSections) |
collapse all sections given by their position More... | |
OUString | getCurrentPage () const |
void | setCurrentPage (const OUString &_sLastActivePage) |
bool | handleKeyEvent (const KeyEvent &_rEvent) |
checks if the keycode is known by the child windows More... | |
void | setMarked (const css::uno::Reference< css::report::XSection > &_xSection, bool _bMark) |
set the section as marked or not marked More... | |
void | setMarked (const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent > > &_xShape, bool _bMark) |
bool | isHandleEvent () const |
returns if the view handles the event by itself More... | |
sal_uInt32 | getMarkedObjectCount () const |
void | zoom (const Fraction &_aZoom) |
zoom the ruler and view windows More... | |
void | fillControlModelSelection (::std::vector< css::uno::Reference< css::uno::XInterface > > &_rSelection) const |
fills the vector with all selected control models /param _rSelection The vector will be filled and will not be cleared before. More... | |
sal_uInt16 | getZoomFactor (SvxZoomType _eType) const |
calculates the zoom factor. More... | |
Public Member Functions inherited from dbaui::ODataView | |
ODataView (vcl::Window *pParent, IController &_rController, const css::uno::Reference< css::uno::XComponentContext > &, WinBits nStyle=0) | |
virtual | ~ODataView () override |
virtual void | dispose () override |
virtual void | Construct () |
virtual void | initialize () |
virtual bool | PreNotify (NotifyEvent &rNEvt) override |
virtual void | StateChanged (StateChangedType nStateChange) override |
IController & | getCommandController () const |
const css::uno::Reference< css::uno::XComponentContext > & | getORB () const |
virtual void | Resize () override |
void | attachFrame (const css::uno::Reference< css::frame::XFrame > &_xFrame) |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
virtual OSectionWindow * | getMarkedSection (NearSectionAccess nsa=CURRENT) const =0 |
returns the section which is currently marked. More... | |
virtual void | markSection (const sal_uInt16 _nPos)=0 |
mark the section on the given position . More... | |
Protected Member Functions | |
virtual void | resizeDocumentView (tools::Rectangle &rRect) override |
virtual void | DataChanged (const DataChangedEvent &rDCEvt) override |
Protected Member Functions inherited from dbaui::ODataView | |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &_rRect) override |
virtual void | resizeAll (const tools::Rectangle &_rPlayground) |
virtual void | resizeDocumentView (tools::Rectangle &_rPlayground) |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Protected Member Functions inherited from rptui::IMarkedSection | |
~IMarkedSection () | |
Private Member Functions | |
DECL_LINK (MarkTimeout, Timer *, void) | |
DECL_LINK (SplitHdl, SplitWindow *, void) | |
void | ImplInitSettings () |
ODesignView (ODesignView const &)=delete | |
void | operator= (ODesignView const &)=delete |
Private Attributes | |
VclPtr< SplitWindow > | m_aSplitWin |
css::uno::Reference< css::uno::XInterface > | m_xReportComponent |
OReportController & | m_rReportController |
VclPtr< OScrollWindowHelper > | m_aScrollWindow |
VclPtr< vcl::Window > | m_pTaskPane |
VclPtr< PropBrw > | m_pPropWin |
std::shared_ptr< OAddFieldWindow > | m_xAddField |
OSectionView * | m_pCurrentView |
std::shared_ptr< ONavigator > | m_xReportExplorer |
Idle | m_aMarkIdle |
DlgEdMode | m_eMode |
SdrObjKind | m_eActObj |
Size | m_aGridSizeCoarse |
Size | m_aGridSizeFine |
bool | m_bDeleted |
Additional Inherited Members | |
Protected Attributes inherited from dbaui::ODataView | |
rtl::Reference< IController > | m_xController |
::std::unique_ptr< ::svt::AcceleratorExecute > | m_pAccel |
Definition at line 49 of file DesignView.hxx.
|
privatedelete |
rptui::ODesignView::ODesignView | ( | vcl::Window * | pParent, |
const css::uno::Reference< css::uno::XComponentContext > & | , | ||
OReportController & | _rController | ||
) |
|
overridevirtual |
Definition at line 120 of file DesignView.cxx.
void rptui::ODesignView::addSection | ( | const css::uno::Reference< css::report::XSection > & | _xSection, |
const OUString & | _sColorEntry, | ||
sal_uInt16 | _nPosition = USHRT_MAX |
||
) |
adds a new section at position _nPosition.
If the section is <NULL> nothing happens. If the position is grater than the current elements, the section will be appended.
Definition at line 378 of file DesignView.cxx.
void rptui::ODesignView::alignMarkedObjects | ( | ControlModification | _nControlModification, |
bool | _bAlignAtSection | ||
) |
align all marked objects in all sections
Definition at line 582 of file DesignView.cxx.
void rptui::ODesignView::collapseSections | ( | const css::uno::Sequence< css::beans::PropertyValue > & | _aCollapsedSections | ) |
collapse all sections given by their position
_aCollapsedSections | The position of the sections which should be collapsed. |
Definition at line 566 of file DesignView.cxx.
void rptui::ODesignView::Copy | ( | ) |
copies the current selection in this section
Definition at line 314 of file DesignView.cxx.
void rptui::ODesignView::Cut | ( | ) |
cuts the current selection in this section
Definition at line 307 of file DesignView.cxx.
|
overrideprotectedvirtual |
Definition at line 170 of file DesignView.cxx.
References DataChangedEvent::GetFlags(), and DataChangedEvent::GetType().
|
private |
|
private |
void rptui::ODesignView::Delete | ( | ) |
Deletes the current selection in this section.
Definition at line 325 of file DesignView.cxx.
|
overridevirtual |
Reimplemented from dbaui::ODataView.
Definition at line 125 of file DesignView.cxx.
References vcl::All, dbaui::ODataView::dispose(), Hide, m_pPropWin, rptui::notifySystemWindow(), TaskPaneList::RemoveWindow(), RET_CANCEL, SvtViewOptions::SetWindowState(), and UID_RPT_RPT_APP_VIEW.
void rptui::ODesignView::fillCollapsedSections | ( | ::std::vector< sal_uInt16 > & | _rCollapsedPositions | ) | const |
fills the positions of all collapsed sections.
_rCollapsedPositions | Out parameter which holds afterwards all positions of the collapsed sections. |
Definition at line 561 of file DesignView.cxx.
void rptui::ODesignView::fillControlModelSelection | ( | ::std::vector< css::uno::Reference< css::uno::XInterface > > & | _rSelection | ) | const |
fills the vector with all selected control models /param _rSelection The vector will be filled and will not be cleared before.
Definition at line 647 of file DesignView.cxx.
|
inline |
Definition at line 97 of file DesignView.hxx.
References m_rReportController.
Referenced by rptui::OViewsWindow::EndDragObj(), rptui::OViewsWindow::MouseButtonDown(), rptui::OReportWindow::OReportWindow(), and rptui::OReportWindow::Resize().
uno::Reference< report::XReportComponent > rptui::ODesignView::getCurrentControlModel | ( | ) | const |
returns the current control report model or <NULL>
Definition at line 536 of file DesignView.cxx.
References xModel.
uno::Any rptui::ODesignView::getCurrentlyShownProperty | ( | ) | const |
Definition at line 626 of file DesignView.cxx.
References aSeq, rptui::OReportSection::fillControlModelSelection(), and rptui::OSectionWindow::getReportSection().
OUString rptui::ODesignView::getCurrentPage | ( | ) | const |
Definition at line 571 of file DesignView.cxx.
References m_pPropWin.
uno::Reference< report::XSection > rptui::ODesignView::getCurrentSection | ( | ) | const |
returns the current section or the detail section if no section was selected previously
Definition at line 527 of file DesignView.cxx.
|
overridevirtual |
Definition at line 383 of file DesignView.cxx.
References vcl::Window::GrabFocus().
|
inline |
Definition at line 157 of file DesignView.hxx.
References m_aGridSizeCoarse.
Referenced by rptui::OReportSection::fill().
|
inline |
Definition at line 158 of file DesignView.hxx.
References m_aGridSizeFine.
Referenced by rptui::OReportSection::fill().
|
inline |
Definition at line 101 of file DesignView.hxx.
References m_eActObj.
OUString const & rptui::ODesignView::GetInsertObjString | ( | ) | const |
Definition at line 301 of file DesignView.cxx.
sal_uInt32 rptui::ODesignView::getMarkedObjectCount | ( | ) | const |
Definition at line 668 of file DesignView.cxx.
|
overridevirtual |
returns the section which is currently marked.
Implements rptui::IMarkedSection.
Definition at line 546 of file DesignView.cxx.
|
inline |
Definition at line 103 of file DesignView.hxx.
References m_eMode.
sal_uInt16 rptui::ODesignView::getSectionCount | ( | ) | const |
Definition at line 363 of file DesignView.cxx.
OSectionWindow * rptui::ODesignView::getSectionWindow | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) | const |
Definition at line 551 of file DesignView.cxx.
sal_uInt16 rptui::ODesignView::getZoomFactor | ( | SvxZoomType | _eType | ) | const |
calculates the zoom factor.
_eType | which kind of zoom is needed |
Definition at line 678 of file DesignView.cxx.
bool rptui::ODesignView::handleKeyEvent | ( | const KeyEvent & | _rEvent | ) |
checks if the keycode is known by the child windows
_rCode | the keycode |
Definition at line 587 of file DesignView.cxx.
References m_pPropWin.
bool rptui::ODesignView::HasSelection | ( | ) | const |
checks if a selection exists
Definition at line 330 of file DesignView.cxx.
|
private |
Definition at line 395 of file DesignView.cxx.
References Application::GetSettings().
|
overridevirtual |
Reimplemented from dbaui::ODataView.
Definition at line 163 of file DesignView.cxx.
bool rptui::ODesignView::isAddFieldVisible | ( | ) | const |
Definition at line 489 of file DesignView.cxx.
bool rptui::ODesignView::isHandleEvent | ( | ) | const |
returns if the view handles the event by itself
Definition at line 663 of file DesignView.cxx.
References m_pPropWin.
bool rptui::ODesignView::IsPasteAllowed | ( | ) | const |
returns if paste is allowed
Definition at line 336 of file DesignView.cxx.
bool rptui::ODesignView::isReportExplorerVisible | ( | ) | const |
Definition at line 467 of file DesignView.cxx.
|
overridevirtual |
mark the section on the given position .
_nPos | the position is zero based. |
Implements rptui::IMarkedSection.
Definition at line 556 of file DesignView.cxx.
References _nPos.
|
overridevirtual |
Definition at line 616 of file DesignView.cxx.
References MouseEvent::IsLeft().
|
privatedelete |
void rptui::ODesignView::Paste | ( | ) |
paste a new control in this section
Definition at line 320 of file DesignView.cxx.
|
overridevirtual |
Reimplemented from dbaui::ODataView.
Definition at line 182 of file DesignView.cxx.
References KeyEvent::GetKeyCode(), NotifyEvent::GetKeyEvent(), NotifyEvent::GetType(), m_pPropWin, and svt::AcceleratorExecute::st_VCLKey2AWTKey().
void rptui::ODesignView::removeSection | ( | sal_uInt16 | _nPosition | ) |
removes the section at the given position.
_nPosition | Zero based. |
Definition at line 373 of file DesignView.cxx.
|
overrideprotectedvirtual |
Reimplemented from dbaui::ODataView.
Definition at line 215 of file DesignView.cxx.
References tools::Rectangle::BottomRight(), tools::Rectangle::GetSize(), StyleSettings::GetSplitSize(), tools::Rectangle::IsEmpty(), m_pPropWin, REPORT_ID, tools::Rectangle::Right(), tools::Rectangle::SetPos(), tools::Rectangle::SetSize(), Point::setX(), TASKPANE_ID, tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), and Point::X().
void rptui::ODesignView::SelectAll | ( | const SdrObjKind | _nObjectType | ) |
All objects will be marked.
Definition at line 416 of file DesignView.cxx.
void rptui::ODesignView::setCurrentPage | ( | const OUString & | _sLastActivePage | ) |
Definition at line 576 of file DesignView.cxx.
References m_pPropWin.
void rptui::ODesignView::setDragStripes | ( | bool | bOn | ) |
Definition at line 658 of file DesignView.cxx.
void rptui::ODesignView::setGridSnap | ( | bool | bOn | ) |
Definition at line 652 of file DesignView.cxx.
void rptui::ODesignView::SetInsertObj | ( | SdrObjKind | eObj, |
const OUString & | _sShapeType = OUString() |
||
) |
Definition at line 295 of file DesignView.cxx.
void rptui::ODesignView::setMarked | ( | const css::uno::Reference< css::report::XSection > & | _xSection, |
bool | _bMark | ||
) |
set the section as marked or not marked
_pSectionView | the section where to set the marked flag |
_bMark | the marked flag |
void rptui::ODesignView::setMarked | ( | const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent > > & | _xShape, |
bool | _bMark | ||
) |
void rptui::ODesignView::SetMode | ( | DlgEdMode | m_eMode | ) |
Definition at line 286 of file DesignView.cxx.
void rptui::ODesignView::showProperties | ( | const css::uno::Reference< css::uno::XInterface > & | _xReportComponent | ) |
triggers the property browser with the section
_xReportComponent | the report component |
Definition at line 455 of file DesignView.cxx.
void rptui::ODesignView::showRuler | ( | bool | _bShow | ) |
shows or hides the ruler.
Definition at line 368 of file DesignView.cxx.
void rptui::ODesignView::toggleAddField | ( | ) |
Definition at line 494 of file DesignView.cxx.
References SvtViewOptions::Exists(), GetFrameWeld(), rptui::OReportController::getReportDefinition(), rptui::OReportController::getRowSet(), SvtViewOptions::GetWindowState(), LINK, RET_CANCEL, weld::DialogController::runAsync(), and UID_RPT_RPT_APP_VIEW.
void rptui::ODesignView::toggleGrid | ( | bool | _bGridVisible | ) |
void rptui::ODesignView::togglePropertyBrowser | ( | bool | _bToggleOn | ) |
Definition at line 426 of file DesignView.cxx.
References TaskPaneList::AddWindow(), COLSET_ID, VclPtr< class reference_type >::Create(), m_pPropWin, rptui::notifySystemWindow(), SPLITWINDOW_APPEND, START_SIZE_TASKPANE, and TASKPANE_ID.
void rptui::ODesignView::toggleReportExplorer | ( | ) |
Definition at line 472 of file DesignView.cxx.
References SvtViewOptions::Exists(), GetFrameWeld(), SvtViewOptions::GetWindowState(), RET_CANCEL, and weld::DialogController::runAsync().
void rptui::ODesignView::unmarkAllObjects | ( | ) |
unmark all objects on the views.
Definition at line 421 of file DesignView.cxx.
void rptui::ODesignView::UpdatePropertyBrowserDelayed | ( | OSectionView & | _rView | ) |
Definition at line 342 of file DesignView.cxx.
References rptui::RPTUI_HINT_SELECTIONCHANGED.
void rptui::ODesignView::zoom | ( | const Fraction & | _aZoom | ) |
zoom the ruler and view windows
Definition at line 673 of file DesignView.cxx.
|
private |
Definition at line 65 of file DesignView.hxx.
Referenced by getGridSizeCoarse().
|
private |
Definition at line 66 of file DesignView.hxx.
Referenced by getGridSizeFine().
|
private |
Definition at line 62 of file DesignView.hxx.
|
private |
Definition at line 56 of file DesignView.hxx.
|
private |
Definition at line 52 of file DesignView.hxx.
|
private |
Definition at line 67 of file DesignView.hxx.
|
private |
Definition at line 64 of file DesignView.hxx.
Referenced by GetInsertObj().
|
private |
Definition at line 63 of file DesignView.hxx.
Referenced by GetMode().
|
private |
Definition at line 60 of file DesignView.hxx.
Definition at line 58 of file DesignView.hxx.
|
private |
Definition at line 57 of file DesignView.hxx.
|
private |
Definition at line 55 of file DesignView.hxx.
Referenced by getController().
|
private |
Definition at line 59 of file DesignView.hxx.
|
private |
Definition at line 54 of file DesignView.hxx.
|
private |
Definition at line 61 of file DesignView.hxx.