19#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DESIGNVIEW_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DESIGNVIEW_HXX
23#include <com/sun/star/report/XSection.hpp>
24#include <com/sun/star/report/XReportComponent.hpp>
43 class OReportController;
45 class OAddFieldWindow;
85 const css::uno::Reference< css::uno::XComponentContext >&,
88 virtual void dispose()
override;
153 void addSection(
const css::uno::Reference< css::report::XSection >& _xSection
154 ,
const OUString& _sColorEntry
155 ,sal_uInt16 _nPosition = USHRT_MAX);
186 void showProperties(
const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
200 virtual void markSection(
const sal_uInt16 _nPos)
override;
212 void collapseSections(
const css::uno::Sequence< css::beans::PropertyValue>& _aCollapsedSections);
227 void setMarked(
const css::uno::Reference< css::report::XSection>& _xSection,
bool _bMark);
228 void setMarked(
const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent> >& _xShape,
bool _bMark);
DECL_LINK(SplitHdl, SplitWindow *, void)
void setMarked(const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent > > &_xShape, bool _bMark)
virtual ~ODesignView() override
void Delete()
Deletes the current selection in this section.
void Copy()
copies the current selection in this section
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
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.
bool handleKeyEvent(const KeyEvent &_rEvent)
checks if the keycode is known by the child windows
DECL_LINK(MarkTimeout, Timer *, void)
virtual void resizeDocumentView(tools::Rectangle &rRect) override
OUString const & GetInsertObjString() const
void SetInsertObj(SdrObjKind eObj, const OUString &_sShapeType=OUString())
void unmarkAllObjects()
unmark all objects on the views.
void setCurrentPage(const OUString &_sLastActivePage)
std::shared_ptr< ONavigator > m_xReportExplorer
bool IsPasteAllowed() const
returns if paste is allowed
void setDragStripes(bool bOn)
virtual void GetFocus() override
ODesignView(ODesignView const &)=delete
bool isAddFieldVisible() const
bool HasSelection() const
checks if a selection exists
OSectionView * m_pCurrentView
void showRuler(bool _bShow)
shows or hides the ruler.
virtual void dispose() override
ODesignView(vcl::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &, OReportController &_rController)
void toggleReportExplorer()
void UpdatePropertyBrowserDelayed(OSectionView &_rView)
void showProperties(const css::uno::Reference< css::uno::XInterface > &_xReportComponent)
triggers the property browser with the section
OSectionWindow * getSectionWindow(const css::uno::Reference< css::report::XSection > &_xSection) const
void togglePropertyBrowser(bool _bToggleOn)
css::uno::Reference< css::uno::XInterface > m_xReportComponent
css::uno::Reference< css::report::XReportComponent > getCurrentControlModel() const
returns the current control report model or <NULL>
VclPtr< PropBrw > m_pPropWin
OUString getCurrentPage() const
sal_uInt16 getSectionCount() const
VclPtr< vcl::Window > m_pTaskPane
virtual void markSection(const sal_uInt16 _nPos) override
mark the section on the given position .
bool isHandleEvent() const
returns if the view handles the event by itself
OReportController & getController() const
sal_uInt16 getZoomFactor(SvxZoomType _eType) const
calculates the zoom factor.
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 wi...
SdrObjKind GetInsertObj() const
const Size & getGridSizeCoarse() const
void fillCollapsedSections(::std::vector< sal_uInt16 > &_rCollapsedPositions) const
fills the positions of all collapsed sections.
void alignMarkedObjects(ControlModification _nControlModification, bool _bAlignAtSection)
align all marked objects in all sections
void Cut()
cuts the current selection in this section
sal_uInt32 getMarkedObjectCount() const
VclPtr< SplitWindow > m_aSplitWin
std::shared_ptr< OAddFieldWindow > m_xAddField
void removeSection(sal_uInt16 _nPosition)
removes the section at the given position.
bool isReportExplorerVisible() const
css::uno::Any getCurrentlyShownProperty() const
DlgEdMode GetMode() const
void SetMode(DlgEdMode m_eMode)
VclPtr< OScrollWindowHelper > m_aScrollWindow
void SelectAll(const SdrObjKind _nObjectType)
All objects will be marked.
OSectionWindow * getMarkedSection(NearSectionAccess nsa=CURRENT) const override
returns the section which is currently marked.
void Paste()
paste a new control in this section
void zoom(const Fraction &_aZoom)
zoom the ruler and view windows
virtual void initialize() override
void setGridSnap(bool bOn)
virtual bool PreNotify(NotifyEvent &rNEvt) override
OReportController & m_rReportController
void collapseSections(const css::uno::Sequence< css::beans::PropertyValue > &_aCollapsedSections)
collapse all sections given by their position
css::uno::Reference< css::report::XSection > getCurrentSection() const
returns the current section or the detail section if no section was selected previously
void toggleGrid(bool _bGridVisible)
turns the grid on or off
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
void setMarked(const css::uno::Reference< css::report::XSection > &_xSection, bool _bMark)
set the section as marked or not marked
const Size & getGridSizeFine() const
void operator=(ODesignView const &)=delete