summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/ReportWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/ui/report/ReportWindow.cxx')
-rw-r--r--reportdesign/source/ui/report/ReportWindow.cxx92
1 files changed, 46 insertions, 46 deletions
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx
index edacb4d4b192..08d500985730 100644
--- a/reportdesign/source/ui/report/ReportWindow.cxx
+++ b/reportdesign/source/ui/report/ReportWindow.cxx
@@ -55,7 +55,7 @@ using namespace ::comphelper;
//==================================================================
// class OReportWindow
//==================================================================
-//------------------------------------------------------------------------------
+
OReportWindow::OReportWindow(OScrollWindowHelper* _pParent,ODesignView* _pView)
: Window(_pParent,WB_DIALOGCONTROL)
, ::comphelper::OPropertyChangeListener(m_aMutex)
@@ -83,41 +83,41 @@ OReportWindow::OReportWindow(OScrollWindowHelper* _pParent,ODesignView* _pView)
ImplInitSettings();
m_pReportListener = addStyleListener(_pView->getController().getReportDefinition(),this);
}
-//------------------------------------------------------------------------------
+
OReportWindow::~OReportWindow()
{
if ( m_pReportListener.is() )
m_pReportListener->dispose();
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::initialize()
{
m_aViewsWindow.initialize();
}
-//----------------------------------------------------------------------------
+
void OReportWindow::SetInsertObj( sal_uInt16 eObj,const OUString& _sShapeType )
{
m_aViewsWindow.SetInsertObj( eObj,_sShapeType);
}
-//----------------------------------------------------------------------------
+
OUString OReportWindow::GetInsertObjString() const
{
return m_aViewsWindow.GetInsertObjString();
}
-//------------------------------------------------------------------------------
+
void OReportWindow::SetMode( DlgEdMode eNewMode )
{
m_aViewsWindow.SetMode(eNewMode);
}
-//----------------------------------------------------------------------------
+
void OReportWindow::removeSection(sal_uInt16 _nPosition)
{
m_aViewsWindow.removeSection(_nPosition);
m_pParent->setTotalSize(GetTotalWidth(),GetTotalHeight());
m_aViewsWindow.Invalidate(INVALIDATE_TRANSPARENT);
}
-//----------------------------------------------------------------------------
+
void OReportWindow::addSection(const uno::Reference< report::XSection >& _xSection,const OUString& _sColorEntry,sal_uInt16 _nPosition)
{
if ( !_xSection.is() )
@@ -127,19 +127,19 @@ void OReportWindow::addSection(const uno::Reference< report::XSection >& _xSecti
m_pParent->setTotalSize(GetTotalWidth(),GetTotalHeight());
}
-//------------------------------------------------------------------------------
+
void OReportWindow::toggleGrid(sal_Bool _bVisible)
{
m_aViewsWindow.toggleGrid(_bVisible);
}
-//----------------------------------------------------------------------------
+
void OReportWindow::showRuler(sal_Bool _bShow)
{
m_aHRuler.Show(_bShow);
m_aViewsWindow.showRuler(_bShow);
}
-//------------------------------------------------------------------------------
+
sal_Int32 OReportWindow::getMaxMarkerWidth(sal_Bool _bWithEnd) const
{
Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH));
@@ -148,7 +148,7 @@ sal_Int32 OReportWindow::getMaxMarkerWidth(sal_Bool _bWithEnd) const
aStartWidth += Fraction(long(REPORT_ENDMARKER_WIDTH));
return sal_Int32((long)aStartWidth);
}
-//------------------------------------------------------------------------------
+
sal_Int32 OReportWindow::GetTotalWidth() const
{
sal_Int32 nWidth = 0;
@@ -165,7 +165,7 @@ sal_Int32 OReportWindow::GetTotalWidth() const
}
return nWidth;
}
-//------------------------------------------------------------------------------
+
void OReportWindow::Resize()
{
Window::Resize();
@@ -202,17 +202,17 @@ void OReportWindow::Resize()
m_aViewsWindow.SetPosSizePixel(aStartPoint,Size(aTotalOutputSize.Width(),nSectionsHeight));
}
}
-//------------------------------------------------------------------------------
+
Point OReportWindow::getThumbPos() const
{
return m_pParent->getThumbPos();
}
-//------------------------------------------------------------------------------
+
void OReportWindow::ImplInitSettings()
{
SetBackground( );
}
-//-----------------------------------------------------------------------------
+
void OReportWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
Window::DataChanged( rDCEvt );
@@ -224,12 +224,12 @@ void OReportWindow::DataChanged( const DataChangedEvent& rDCEvt )
Invalidate();
}
}
-//------------------------------------------------------------------------------
+
sal_Int32 OReportWindow::GetTotalHeight() const
{
return m_aViewsWindow.getTotalHeight();
}
-//------------------------------------------------------------------------------
+
void OReportWindow::ScrollChildren(const Point& _aThumbPos)
{
MapMode aMap = m_aHRuler.GetMapMode();
@@ -243,136 +243,136 @@ void OReportWindow::ScrollChildren(const Point& _aThumbPos)
m_aViewsWindow.scrollChildren(_aThumbPos);
}
-//----------------------------------------------------------------------------
+
sal_uInt16 OReportWindow::getSectionCount() const
{
return m_aViewsWindow.getSectionCount();
}
-//----------------------------------------------------------------------------
+
void OReportWindow::notifySizeChanged()
{
m_pParent->setTotalSize(GetTotalWidth(),GetTotalHeight());
}
-//----------------------------------------------------------------------------
+
sal_Bool OReportWindow::HasSelection() const
{
return m_aViewsWindow.HasSelection();
}
-//----------------------------------------------------------------------------
+
void OReportWindow::Delete()
{
m_aViewsWindow.Delete();
}
-//----------------------------------------------------------------------------
+
void OReportWindow::Copy()
{
m_aViewsWindow.Copy();
}
-//----------------------------------------------------------------------------
+
void OReportWindow::Paste()
{
m_aViewsWindow.Paste();
}
-//----------------------------------------------------------------------------
+
sal_Bool OReportWindow::IsPasteAllowed() const
{
return m_aViewsWindow.IsPasteAllowed();
}
-//-----------------------------------------------------------------------------
+
void OReportWindow::SelectAll(const sal_uInt16 _nObjectType)
{
m_aViewsWindow.SelectAll(_nObjectType);
}
-//-----------------------------------------------------------------------------
+
void OReportWindow::unmarkAllObjects(OSectionView* _pSectionView)
{
m_aViewsWindow.unmarkAllObjects(_pSectionView);
}
-//-----------------------------------------------------------------------------
+
void OReportWindow::showProperties(const uno::Reference< report::XSection>& _xReportComponent)
{
::boost::shared_ptr<OSectionWindow> pSectionWindow = m_aViewsWindow.getSectionWindow( _xReportComponent );
m_pView->UpdatePropertyBrowserDelayed(pSectionWindow->getReportSection().getSectionView());
}
-//------------------------------------------------------------------------------
+
sal_Bool OReportWindow::handleKeyEvent(const KeyEvent& _rEvent)
{
return m_aViewsWindow.handleKeyEvent(_rEvent);
}
-//------------------------------------------------------------------------
+
void OReportWindow::setMarked(OSectionView* _pSectionView,sal_Bool _bMark)
{
if ( _pSectionView )
m_aViewsWindow.setMarked(_pSectionView,_bMark);
}
-//------------------------------------------------------------------------
+
void OReportWindow::setMarked(const uno::Reference< report::XSection>& _xSection,sal_Bool _bMark)
{
m_aViewsWindow.setMarked(_xSection,_bMark);
}
-//------------------------------------------------------------------------
+
void OReportWindow::setMarked(const uno::Sequence< uno::Reference< report::XReportComponent> >& _xShape,sal_Bool _bMark)
{
m_aViewsWindow.setMarked(_xShape,_bMark);
}
-//-----------------------------------------------------------------------------
+
::boost::shared_ptr<OSectionWindow> OReportWindow::getMarkedSection(NearSectionAccess nsa) const
{
return m_aViewsWindow.getMarkedSection(nsa);
}
-//-----------------------------------------------------------------------------
+
::boost::shared_ptr<OSectionWindow> OReportWindow::getSectionWindow(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSection) const
{
return m_aViewsWindow.getSectionWindow(_xSection);
}
-// -------------------------------------------------------------------------
+
void OReportWindow::markSection(const sal_uInt16 _nPos)
{
m_aViewsWindow.markSection(_nPos);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::fillCollapsedSections(::std::vector<sal_uInt16>& _rCollapsedPositions) const
{
m_aViewsWindow.fillCollapsedSections(_rCollapsedPositions);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::collapseSections(const uno::Sequence< ::com::sun::star::beans::PropertyValue>& _aCollpasedSections)
{
m_aViewsWindow.collapseSections(_aCollpasedSections);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAlignAtSection, bool bBoundRects)
{
m_aViewsWindow.alignMarkedObjects(_nControlModification, _bAlignAtSection, bBoundRects);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::setGridSnap(sal_Bool bOn)
{
m_aViewsWindow.setGridSnap(bOn);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::setDragStripes(sal_Bool bOn)
{
m_aViewsWindow.setDragStripes(bOn);
}
-// -----------------------------------------------------------------------------
+
sal_uInt32 OReportWindow::getMarkedObjectCount() const
{
return m_aViewsWindow.getMarkedObjectCount();
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::zoom(const Fraction& _aZoom)
{
m_aHRuler.SetZoom(_aZoom);
@@ -388,12 +388,12 @@ void OReportWindow::zoom(const Fraction& _aZoom)
Invalidate(INVALIDATE_NOERASE | INVALIDATE_NOCHILDREN | INVALIDATE_TRANSPARENT);
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::fillControlModelSelection(::std::vector< uno::Reference< uno::XInterface > >& _rSelection) const
{
m_aViewsWindow.fillControlModelSelection(_rSelection);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OReportWindow::impl_getRealPixelWidth() const
{
const sal_Int32 nPaperWidth = getStyleProperty<awt::Size>(m_pView->getController().getReportDefinition(),PROPERTY_PAPERSIZE).Width;
@@ -401,7 +401,7 @@ sal_Int32 OReportWindow::impl_getRealPixelWidth() const
const Size aPageSize = LogicToPixel(Size(nPaperWidth,0),aMap);
return aPageSize.Width() + REPORT_ENDMARKER_WIDTH + REPORT_STARTMARKER_WIDTH + SECTION_OFFSET;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 OReportWindow::getZoomFactor(SvxZoomType _eType) const
{
sal_uInt16 nZoom(100);
@@ -430,7 +430,7 @@ sal_uInt16 OReportWindow::getZoomFactor(SvxZoomType _eType) const
return nZoom;
}
-// -----------------------------------------------------------------------------
+
void OReportWindow::_propertyChanged(const beans::PropertyChangeEvent& _rEvent) throw( uno::RuntimeException)
{
(void)_rEvent;