summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r--reportdesign/source/ui/inc/DesignView.hxx2
-rw-r--r--reportdesign/source/ui/inc/ReportWindow.hxx1
-rw-r--r--reportdesign/source/ui/inc/ScrollHelper.hxx1
-rw-r--r--reportdesign/source/ui/inc/StartMarker.hxx4
-rw-r--r--reportdesign/source/ui/inc/ViewsWindow.hxx5
-rw-r--r--reportdesign/source/ui/report/DesignView.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportWindow.cxx5
-rw-r--r--reportdesign/source/ui/report/ScrollHelper.cxx5
-rw-r--r--reportdesign/source/ui/report/StartMarker.cxx6
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx27
10 files changed, 4 insertions, 54 deletions
diff --git a/reportdesign/source/ui/inc/DesignView.hxx b/reportdesign/source/ui/inc/DesignView.hxx
index 683e4cb78a3d..cd42b1e85007 100644
--- a/reportdesign/source/ui/inc/DesignView.hxx
+++ b/reportdesign/source/ui/inc/DesignView.hxx
@@ -160,9 +160,11 @@ namespace rptui
*/
void alignMarkedObjects(sal_Int32 _nControlModification, bool _bAlignAtSection, bool bBoundRects = false);
+#if 0
/** checks if alignment is possible in the current section
*/
sal_Bool isAlignPossible() const;
+#endif
/** All objects will be marked.
*/
diff --git a/reportdesign/source/ui/inc/ReportWindow.hxx b/reportdesign/source/ui/inc/ReportWindow.hxx
index e406bcf7ccb9..fcf274d314e4 100644
--- a/reportdesign/source/ui/inc/ReportWindow.hxx
+++ b/reportdesign/source/ui/inc/ReportWindow.hxx
@@ -93,7 +93,6 @@ namespace rptui
rtl::OUString GetInsertObjString() const;
void setGridSnap(BOOL bOn);
void setDragStripes(BOOL bOn);
- BOOL isDragStripes() const;
/** copies the current selection in this section
*/
diff --git a/reportdesign/source/ui/inc/ScrollHelper.hxx b/reportdesign/source/ui/inc/ScrollHelper.hxx
index 4eaf9720abda..6098c7bbb2e1 100644
--- a/reportdesign/source/ui/inc/ScrollHelper.hxx
+++ b/reportdesign/source/ui/inc/ScrollHelper.hxx
@@ -106,7 +106,6 @@ namespace rptui
rtl::OUString GetInsertObjString() const;
void setGridSnap(BOOL bOn);
void setDragStripes(BOOL bOn);
- BOOL isDragStripes() const;
/** copies the current selection in this section
*/
void Copy();
diff --git a/reportdesign/source/ui/inc/StartMarker.hxx b/reportdesign/source/ui/inc/StartMarker.hxx
index d14abd076fc5..a9d532bb95dc 100644
--- a/reportdesign/source/ui/inc/StartMarker.hxx
+++ b/reportdesign/source/ui/inc/StartMarker.hxx
@@ -76,10 +76,6 @@ namespace rptui
void setTitle(const String& _sTitle);
sal_Int32 getMinHeight() const;
- /** returns the offset where the horizontal ruler must start
- */
- sal_Int32 getRulerOffset() const;
-
/** shows or hides the ruler.
*/
void showRuler(sal_Bool _bShow);
diff --git a/reportdesign/source/ui/inc/ViewsWindow.hxx b/reportdesign/source/ui/inc/ViewsWindow.hxx
index d4e0a720807a..88c557213631 100644
--- a/reportdesign/source/ui/inc/ViewsWindow.hxx
+++ b/reportdesign/source/ui/inc/ViewsWindow.hxx
@@ -203,8 +203,6 @@ namespace rptui
*/
::boost::shared_ptr<OSectionWindow> getSectionWindow(const USHORT _nPos) const;
- void showView(USHORT _nPos,BOOL _bShow);
-
/** turns the grid on or off
*
* \param _bVisible
@@ -212,7 +210,6 @@ namespace rptui
void toggleGrid(sal_Bool _bVisible);
void setGridSnap(BOOL bOn);
void setDragStripes(BOOL bOn);
- BOOL isDragStripes() const;
/** returns the total accumulated height of all sections until _pSection is reached
*/
@@ -249,8 +246,6 @@ namespace rptui
*/
BOOL HasSelection();
- void SectionHasFocus(OReportSection* _pSection,BOOL _bHasFocus);
-
/** unmark all objects on the views without the given one.
*
* @param _pSectionView The view where the objects should not be unmarked.
diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx
index 40264c642d52..f6ad0b90a14d 100644
--- a/reportdesign/source/ui/report/DesignView.cxx
+++ b/reportdesign/source/ui/report/DesignView.cxx
@@ -680,12 +680,14 @@ void ODesignView::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAlig
{
m_aScrollWindow.alignMarkedObjects(_nControlModification, _bAlignAtSection,bBoundRects);
}
+#if 0
// -----------------------------------------------------------------------------
sal_Bool ODesignView::isAlignPossible() const
{
::boost::shared_ptr<OSectionWindow> pMarkedSection = getMarkedSection();
return pMarkedSection.get() && pMarkedSection->getReportSection().getSectionView().IsAlignPossible();
}
+#endif
//------------------------------------------------------------------------------
sal_Bool ODesignView::handleKeyEvent(const KeyEvent& _rEvent)
{
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx
index 98dd0d2390a7..39f1c9505672 100644
--- a/reportdesign/source/ui/report/ReportWindow.cxx
+++ b/reportdesign/source/ui/report/ReportWindow.cxx
@@ -378,11 +378,6 @@ void OReportWindow::setDragStripes(BOOL bOn)
m_aViewsWindow.setDragStripes(bOn);
}
// -----------------------------------------------------------------------------
-BOOL OReportWindow::isDragStripes() const
-{
- return m_aViewsWindow.isDragStripes();
-}
-// -----------------------------------------------------------------------------
sal_uInt32 OReportWindow::getMarkedObjectCount() const
{
return m_aViewsWindow.getMarkedObjectCount();
diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx b/reportdesign/source/ui/report/ScrollHelper.cxx
index 5d13f78f3755..b39824d5e8ea 100644
--- a/reportdesign/source/ui/report/ScrollHelper.cxx
+++ b/reportdesign/source/ui/report/ScrollHelper.cxx
@@ -393,11 +393,6 @@ void OScrollWindowHelper::setDragStripes(BOOL bOn)
m_aReportWindow.setDragStripes(bOn);
}
// -----------------------------------------------------------------------------
-BOOL OScrollWindowHelper::isDragStripes() const
-{
- return m_aReportWindow.isDragStripes();
-}
-// -----------------------------------------------------------------------------
sal_uInt32 OScrollWindowHelper::getMarkedObjectCount() const
{
return m_aReportWindow.getMarkedObjectCount();
diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx
index d87f7464a140..7c51439cd124 100644
--- a/reportdesign/source/ui/report/StartMarker.cxx
+++ b/reportdesign/source/ui/report/StartMarker.cxx
@@ -286,12 +286,6 @@ void OStartMarker::showRuler(sal_Bool _bShow)
m_aVRuler.Show(!m_bCollapsed && m_bShowRuler);
}
//------------------------------------------------------------------------------
-sal_Int32 OStartMarker::getRulerOffset() const
-{
- return m_aVRuler.GetSizePixel().Width();
-}
-
-//------------------------------------------------------------------------------
void OStartMarker::RequestHelp( const HelpEvent& rHEvt )
{
if( m_aText.GetText().Len())
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index aebf42bfaa00..999dcf79f915 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -337,12 +337,6 @@ void OViewsWindow::removeSection(USHORT _nPosition)
Resize();
} // if ( _nPosition < m_aSections.size() )
}
-//----------------------------------------------------------------------------
-void OViewsWindow::showView(USHORT _nPos,BOOL _bShow)
-{
- if ( _nPos < m_aSections.size() )
- m_aSections[_nPos]->setCollapsed(_bShow);
-}
//------------------------------------------------------------------------------
void OViewsWindow::toggleGrid(BOOL _bVisible)
{
@@ -534,21 +528,6 @@ void OViewsWindow::SelectAll(const sal_uInt16 _nObjectType)
::std::compose1(::boost::bind(::boost::mem_fn(&OReportSection::SelectAll),_1,_nObjectType),TReportPairHelper()));
m_bInUnmark = sal_False;
}
-//----------------------------------------------------------------------------
-void OViewsWindow::SectionHasFocus(OReportSection* /*_pSection*/,BOOL /*_bHasFocus*/)
-{
-/* LLA!: this function does nothing!
-TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
- for (USHORT i = 0 ; aIter != aEnd ; ++aIter,++i)
- {
- if ( (*aIter).first.get() == _pSection )
- {
-
- }
- }
-*/
-}
//-----------------------------------------------------------------------------
void OViewsWindow::unmarkAllObjects(OSectionView* _pSectionView)
{
@@ -987,12 +966,6 @@ void OViewsWindow::setDragStripes(BOOL bOn)
(*aIter)->getReportSection().getSectionView().SetDragStripes(bOn);
}
// -----------------------------------------------------------------------------
-BOOL OViewsWindow::isDragStripes() const
-{
- return !m_aSections.empty() && (*m_aSections.begin())->getReportSection().getSectionView().IsDragStripes();
-}
-// -----------------------------------------------------------------------------
-
USHORT OViewsWindow::getPosition(const OSectionWindow* _pSectionWindow) const
{
TSectionsMap::const_iterator aIter = m_aSections.begin();