19#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_VIEWSWINDOW_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_VIEWSWINDOW_HXX
22#include <com/sun/star/report/XSection.hpp>
57 return lhs.
Top() < rhs.
Top();
106 virtual void dispose()
override;
109 virtual void Resize()
override;
125 void addSection(
const css::uno::Reference< css::report::XSection >& _xSection
126 ,
const OUString& _sColorEntry
127 ,sal_uInt16 _nPosition);
202 void setMarked(
const css::uno::Reference< css::report::XSection>& _xSection,
bool _bMark);
203 void setMarked(
const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent> >& _xShape,
bool _bMark);
207 virtual void markSection(
const sal_uInt16 _nPos)
override;
276 void collapseSections(
const css::uno::Sequence< css::beans::PropertyValue>& _aCollapsedSections);
constexpr tools::Long Y() const
constexpr tools::Long X() const
const OUString & GetInsertObjString() const
void Delete()
Deletes the current selection in this section.
bool HasSelection() const
returns <TRUE> when an object is marked
void createDefault()
creates a default object
void showRuler(bool _bShow)
shows or hides the ruler.
void BegDragObj(const Point &_aPnt, SdrHdl *_pHdl, const OSectionView *_pSection)
void resize(const OSectionWindow &_rSectionWindow)
void collectRectangles(TRectangleMap &_rMap)
const OUString & getShapeType() const
returns the currently set shape type.
void setMarked(OSectionView const *_pSectionView, bool _bMark)
the section as marked or not marked
void SetMode(DlgEdMode m_eMode)
void toggleGrid(bool _bVisible)
turns the grid on or off
svtools::ColorConfig m_aColorConfig
void setMarked(const css::uno::Reference< css::report::XSection > &_xSection, bool _bMark)
void fillCollapsedSections(::std::vector< sal_uInt16 > &_rCollapsedPositions) const
fills the positions of all collapsed sections.
void addSection(const css::uno::Reference< css::report::XSection > &_xSection, const OUString &_sColorEntry, sal_uInt16 _nPosition)
adds a new section at position _nPosition.
void Paste()
paste a new control in this section
void zoom(const Fraction &_aZoom)
zoom the ruler and view windows
void setDragStripes(bool bOn)
sal_uInt32 getMarkedObjectCount() const
TSectionsMap::iterator getIteratorAtPos(sal_uInt16 _nPos)
returns the iterator at pos _nPos or the end()
OSectionWindow * getSectionWindow(const sal_uInt16 _nPos) const
return the section at the given position
OViewsWindow(OViewsWindow const &)=delete
sal_Int32 getTotalHeight() const
returns the total accumulated height of all sections until _pSection is reached
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
void BegDragObj_createInvisibleObjectAtPosition(const tools::Rectangle &_aRect, const OSectionView &_rSection)
bool IsPasteAllowed() const
returns if paste is allowed
void impl_resizeSectionWindow(OSectionWindow &_rSectionWindow, Point &_rStartPoint, bool _bSet)
virtual ~OViewsWindow() override
void removeSection(sal_uInt16 _nPosition)
removes the section at the given position.
virtual void Paint(vcl::RenderContext &, const tools::Rectangle &rRect) override
OSectionWindow * getMarkedSection(NearSectionAccess nsa=CURRENT) const override
returns the section which is currently marked.
virtual void ConfigurationChanged(utl::ConfigurationBroadcaster *, ConfigurationHints) override
void ForceMarkedToAnotherPage()
virtual void markSection(const sal_uInt16 _nPos) override
mark the section on the given position .
void scrollChildren(const Point &_aThumbPos)
VclPtr< OReportWindow > m_pParent
OReportWindow * getView() const
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
sal_uInt16 getSectionCount() const
void EndDragObj_removeInvisibleObjects()
void BegMarkObj(const Point &_aPnt, const OSectionView *_pSection)
OSectionWindow * getSectionWindow(const css::uno::Reference< css::report::XSection > &_xSection) const
returns the report section window for the given xsection
sal_uInt16 getPosition(const OSectionWindow *_pSectionWindow) const
returns the current position in the list
void setMarked(const css::uno::Sequence< css::uno::Reference< css::report::XReportComponent > > &_xShape, bool _bMark)
void SetInsertObj(SdrObjKind eObj, const OUString &_sShapeType)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
void setGridSnap(bool bOn)
void MovAction(const Point &rPnt, const OSectionView *_pSection, bool _bControlKeySet)
::std::vector< VclPtr< OSectionWindow > > TSectionsMap
void alignMarkedObjects(ControlModification _nControlModification, bool _bAlignAtSection)
align all marked objects in all sections
void collapseSections(const css::uno::Sequence< css::beans::PropertyValue > &_aCollapsedSections)
collapse all sections given by their position
void Copy()
copies the current selection in this section
void handleKey(const vcl::KeyCode &_rCode)
static void collectBoundResizeRect(const TRectangleMap &_rSortRectangles, ControlModification _nControlModification, bool _bAlignAtSection, tools::Rectangle &_rBound, tools::Rectangle &_rResize)
::std::multimap< tools::Rectangle,::std::pair< SdrObject *, OSectionView * >, RectangleLess > TRectangleMap
bool handleKeyEvent(const KeyEvent &_rEvent)
checks if the keycode is known by the child windows
OSectionView * getSectionRelativeToPosition(const OSectionView *_pSection, Point &_rPnt)
return the section at the given point which is relative to the given section
void operator=(OViewsWindow const &)=delete
virtual void Resize() override
void EndDragObj(bool _bDragIntoNewSection, const OSectionView *_pSection, const Point &_aPnt)
void BrkAction()
calls on every section BrkAction
void unmarkAllObjects(OSectionView const *_pSectionView)
unmark all objects on the views without the given one.
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...
::std::vector< SdrObject * > m_aBegDragTempList
void SelectAll(const SdrObjKind _nObjectType)
All objects will be marked.
virtual void dispose() override
RectangleLess(CompareMode _eCompareMode, const Point &_rRefPoint)
bool operator()(const tools::Rectangle &lhs, const tools::Rectangle &rhs) const
CompareMode m_eCompareMode