19#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_REPORTWINDOW_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_REPORTWINDOW_HXX
22#include <com/sun/star/report/XSection.hpp>
38 class OScrollWindowHelper;
52 std::unique_ptr<DlgEdFactory, o3tl::default_delete<DlgEdFactory>>
m_pObjFac;
64 virtual void _propertyChanged(
const css::beans::PropertyChangeEvent& _rEvent)
override;
68 virtual void dispose()
override;
71 virtual void Resize()
override;
121 void addSection(
const css::uno::Reference< css::report::XSection >& _xSection
122 ,
const OUString& _sColorEntry
123 ,sal_uInt16 _nPosition);
162 void showProperties(
const css::uno::Reference< css::report::XSection>& _xReportComponent);
175 void setMarked(
const css::uno::Reference< css::report::XSection>& _xSection,
bool _bMark);
176 void setMarked(
const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent> >& _xShape,
bool _bMark);
181 virtual void markSection(
const sal_uInt16 _nPos)
override;
194 void collapseSections(
const css::uno::Sequence< css::beans::PropertyValue>& _aCollapsedSections);
sal_uInt16 getSectionCount() const
VclPtr< ODesignView > m_pView
VclPtr< Ruler > m_aHRuler
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
void setMarked(const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent > > &_xShape, bool _bMark)
sal_Int32 GetTotalWidth() const
returns the total width of the first section
void ScrollChildren(const Point &_aThumbPos)
bool handleKeyEvent(const KeyEvent &_rEvent)
checks if the keycode is known by the child windows
rtl::Reference< comphelper::OPropertyChangeMultiplexer > m_pReportListener
virtual void markSection(const sal_uInt16 _nPos) override
mark the section on the given position .
void addSection(const css::uno::Reference< css::report::XSection > &_xSection, const OUString &_sColorEntry, sal_uInt16 _nPosition)
adds a new section at position _nPosition.
bool HasSelection() const
returns <TRUE> when an object is marked
bool IsPasteAllowed() const
returns if paste is allowed
void setMarked(OSectionView const *_pSectionView, bool _bMark)
the section as marked or not marked
OScrollWindowHelper * getScrollWindow() const
void showRuler(bool _bShow)
shows the ruler
void SetMode(DlgEdMode m_eMode)
void zoom(const Fraction &_aZoom)
zoom the ruler and view windows
void SetInsertObj(SdrObjKind eObj, const OUString &_sShapeType)
virtual void Resize() override
void operator=(OReportWindow const &)=delete
void Delete()
Deletes the current selection in this section.
std::unique_ptr< DlgEdFactory, o3tl::default_delete< DlgEdFactory > > m_pObjFac
OSectionWindow * getMarkedSection(NearSectionAccess nsa=CURRENT) const override
returns the section which is currently marked.
void Copy()
copies the current selection in this section
virtual ~OReportWindow() override
sal_uInt32 getMarkedObjectCount() const
sal_Int32 getMaxMarkerWidth() const
calculate the max width of the markers The end marker will not be used for calculation.
void unmarkAllObjects()
unmark all objects on the views without the given one.
void SelectAll(const SdrObjKind _nObjectType)
All objects will be marked.
void removeSection(sal_uInt16 _nPosition)
removes the section at the given position.
sal_Int32 getRulerHeight() const
ODesignView * getReportView() const
VclPtr< OViewsWindow > m_aViewsWindow
VclPtr< OScrollWindowHelper > m_pParent
sal_Int32 GetTotalHeight() const
OSectionWindow * getSectionWindow(const css::uno::Reference< css::report::XSection > &_xSection) const
void showProperties(const css::uno::Reference< css::report::XSection > &_xReportComponent)
triggers the property browser with the report component or section
virtual void dispose() override
void fillCollapsedSections(::std::vector< sal_uInt16 > &_rCollapsedPositions) const
fills the positions of all collapsed sections.
OUString const & GetInsertObjString() const
sal_uInt16 getZoomFactor(SvxZoomType _eType) const
calculates the zoom factor.
Point getThumbPos() const
void alignMarkedObjects(ControlModification _nControlModification, bool _bAlignAtSection)
align all marked objects in all sections
virtual void _propertyChanged(const css::beans::PropertyChangeEvent &_rEvent) override
void setGridSnap(bool bOn)
void setMarked(const css::uno::Reference< css::report::XSection > &_xSection, bool _bMark)
void Paste()
paste a new control in this section
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...
sal_Int32 impl_getRealPixelWidth() const
void setDragStripes(bool bOn)
void collapseSections(const css::uno::Sequence< css::beans::PropertyValue > &_aCollapsedSections)
collapse all sections given by their position
void toggleGrid(bool _bVisible)
turns the grid on or off
OReportWindow(OReportWindow const &)=delete