summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /sd/source/ui/view
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/GraphicObjectBar.cxx18
-rw-r--r--sd/source/ui/view/MediaObjectBar.cxx14
-rw-r--r--sd/source/ui/view/ViewTabBar.cxx2
-rw-r--r--sd/source/ui/view/drviewsa.cxx10
-rw-r--r--sd/source/ui/view/drviewsc.cxx2
-rw-r--r--sd/source/ui/view/presvish.cxx4
-rw-r--r--sd/source/ui/view/sdview.cxx2
-rw-r--r--sd/source/ui/view/sdview2.cxx28
-rw-r--r--sd/source/ui/view/sdview3.cxx4
-rw-r--r--sd/source/ui/view/sdview4.cxx2
-rw-r--r--sd/source/ui/view/tabcontr.cxx10
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx50
-rw-r--r--sd/source/ui/view/viewshel.cxx8
13 files changed, 77 insertions, 77 deletions
diff --git a/sd/source/ui/view/GraphicObjectBar.cxx b/sd/source/ui/view/GraphicObjectBar.cxx
index 64bf53da46ba..1f950457b552 100644
--- a/sd/source/ui/view/GraphicObjectBar.cxx
+++ b/sd/source/ui/view/GraphicObjectBar.cxx
@@ -56,19 +56,19 @@ namespace sd {
-// -----------------------
+
// - GraphicObjectBar -
-// -----------------------
+
SFX_IMPL_INTERFACE( GraphicObjectBar, SfxShell, SdResId( STR_GRAFOBJECTBARSHELL ) )
{
}
-// -----------------------------------------------------------------------------
+
TYPEINIT1( GraphicObjectBar, SfxShell );
-// -----------------------------------------------------------------------------
+
GraphicObjectBar::GraphicObjectBar (
ViewShell* pSdViewShell,
@@ -87,14 +87,14 @@ GraphicObjectBar::GraphicObjectBar (
SetName( OUString( "Graphic objectbar" ));
}
-// -----------------------------------------------------------------------------
+
GraphicObjectBar::~GraphicObjectBar()
{
SetRepeatTarget( NULL );
}
-// -----------------------------------------------------------------------------
+
void GraphicObjectBar::GetAttrState( SfxItemSet& rSet )
{
@@ -102,7 +102,7 @@ void GraphicObjectBar::GetAttrState( SfxItemSet& rSet )
SvxGrafAttrHelper::GetGrafAttrState( rSet, *mpView );
}
-// -----------------------------------------------------------------------------
+
void GraphicObjectBar::Execute( SfxRequest& rReq )
{
@@ -113,7 +113,7 @@ void GraphicObjectBar::Execute( SfxRequest& rReq )
}
}
-// -----------------------------------------------------------------------------
+
void GraphicObjectBar::GetFilterState( SfxItemSet& rSet )
{
@@ -132,7 +132,7 @@ void GraphicObjectBar::GetFilterState( SfxItemSet& rSet )
SvxGraphicFilter::DisableGraphicFilterSlots( rSet );
}
-// -----------------------------------------------------------------------------
+
void GraphicObjectBar::ExecuteFilter( SfxRequest& rReq )
{
diff --git a/sd/source/ui/view/MediaObjectBar.cxx b/sd/source/ui/view/MediaObjectBar.cxx
index bdd1f807c637..90cc1e344674 100644
--- a/sd/source/ui/view/MediaObjectBar.cxx
+++ b/sd/source/ui/view/MediaObjectBar.cxx
@@ -48,19 +48,19 @@ using namespace sd;
namespace sd {
-// ------------------
+
// - MediaObjectBar -
-// ------------------
+
TYPEINIT1( MediaObjectBar, SfxShell );
-// -----------------------------------------------------------------------------
+
SFX_IMPL_INTERFACE( MediaObjectBar, SfxShell, SdResId( STR_MEDIAOBJECTBARSHELL ) )
{
}
-// -----------------------------------------------------------------------------
+
MediaObjectBar::MediaObjectBar( ViewShell* pSdViewShell, ::sd::View* pSdView ) :
SfxShell( pSdViewShell->GetViewShell() ),
@@ -76,14 +76,14 @@ MediaObjectBar::MediaObjectBar( ViewShell* pSdViewShell, ::sd::View* pSdView ) :
SetName(SD_RESSTR(RID_DRAW_MEDIA_TOOLBOX));
}
-// -----------------------------------------------------------------------------
+
MediaObjectBar::~MediaObjectBar()
{
SetRepeatTarget( NULL );
}
-// -----------------------------------------------------------------------------
+
void MediaObjectBar::GetState( SfxItemSet& rSet )
{
@@ -121,7 +121,7 @@ void MediaObjectBar::GetState( SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------------
+
void MediaObjectBar::Execute( SfxRequest& rReq )
{
diff --git a/sd/source/ui/view/ViewTabBar.cxx b/sd/source/ui/view/ViewTabBar.cxx
index f75d77fc8957..ccb7fab2fcf8 100644
--- a/sd/source/ui/view/ViewTabBar.cxx
+++ b/sd/source/ui/view/ViewTabBar.cxx
@@ -409,7 +409,7 @@ sal_Int64 SAL_CALL ViewTabBar::getSomething (const Sequence<sal_Int8>& rId)
-//-----------------------------------------------------------------------------
+
bool ViewTabBar::ActivatePage (void)
{
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 3c2daa7565d7..5f0012ed50da 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -79,9 +79,9 @@ namespace sd {
sal_Bool DrawViewShell::mbPipette = sal_False;
-// ------------------------
+
// - ScannerEventListener -
-// ------------------------
+
class ScannerEventListener : public ::cppu::WeakImplHelper1< lang::XEventListener >
{
@@ -100,13 +100,13 @@ public:
void ParentDestroyed() { mpParent = NULL; }
};
-// -----------------------------------------------------------------------------
+
ScannerEventListener::~ScannerEventListener()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ScannerEventListener::disposing( const lang::EventObject& rEventObject ) throw (uno::RuntimeException)
{
@@ -814,7 +814,7 @@ void DrawViewShell::ExecuteAnnotation (SfxRequest& rRequest)
mpAnnotationManager->ExecuteAnnotation( rRequest );
}
-// --------------------------------------------------------------------
+
void DrawViewShell::GetAnnotationState (SfxItemSet& rItemSet )
{
diff --git a/sd/source/ui/view/drviewsc.cxx b/sd/source/ui/view/drviewsc.cxx
index 5a9129d9669d..1d38edc577ff 100644
--- a/sd/source/ui/view/drviewsc.cxx
+++ b/sd/source/ui/view/drviewsc.cxx
@@ -354,7 +354,7 @@ void DrawViewShell::UpdateIMapDlg( SdrObject* pObj )
}
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( DrawViewShell, NameObjectHdl, AbstractSvxNameDialog*, pDialog )
{
diff --git a/sd/source/ui/view/presvish.cxx b/sd/source/ui/view/presvish.cxx
index bed8e9ed55b5..143b31ef5fe6 100644
--- a/sd/source/ui/view/presvish.cxx
+++ b/sd/source/ui/view/presvish.cxx
@@ -61,9 +61,9 @@ using namespace ::com::sun::star::presentation;
namespace sd {
-// -------------------
+
// - PresentationViewShell -
-// -------------------
+
SFX_IMPL_INTERFACE( PresentationViewShell, DrawViewShell, SdResId( STR_PRESVIEWSHELL ) )
{
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index a2e25358b268..7eb729c3ffbc 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -784,7 +784,7 @@ SdrEndTextEditKind View::SdrEndTextEdit(sal_Bool bDontDeleteReally )
return(eKind);
}
-// --------------------------------------------------------------------
+
/** restores the default text if the given text object is currently in edit mode and
no text has been entered already. Is only useful just before text edit ends. */
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index 3e8d460d7606..dc36ec97c9a2 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -70,9 +70,9 @@ namespace sd {
using namespace ::com::sun::star;
-// ------------------------
+
// - SdNavigatorDropEvent -
-// ------------------------
+
struct SdNavigatorDropEvent : public ExecuteDropEvent
{
@@ -95,7 +95,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent
{}
};
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > View::CreateClipboardDataObject( View*, ::Window& )
{
@@ -162,7 +162,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent
return xRet;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > View::CreateDragDataObject( View* pWorkView, ::Window& rWindow, const Point& rDragPos )
{
@@ -213,7 +213,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent
return xRet;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > View::CreateSelectionDataObject( View* pWorkView, ::Window& rWindow )
{
@@ -240,7 +240,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent
return xRet;
}
-// -----------------------------------------------------------------------------
+
void View::UpdateSelectionClipboard( sal_Bool bForceDeselect )
{
@@ -256,7 +256,7 @@ void View::UpdateSelectionClipboard( sal_Bool bForceDeselect )
}
}
-// -----------------------------------------------------------------------------
+
void View::DoCut(::Window* )
{
@@ -275,7 +275,7 @@ void View::DoCut(::Window* )
}
}
-// -----------------------------------------------------------------------------
+
void View::DoCopy (::Window* pWindow)
{
@@ -290,7 +290,7 @@ void View::DoCopy (::Window* pWindow)
}
}
-// -----------------------------------------------------------------------------
+
void View::DoPaste (::Window* pWindow)
{
@@ -371,7 +371,7 @@ void View::DoPaste (::Window* pWindow)
}
}
-// -----------------------------------------------------------------------------
+
void View::StartDrag( const Point& rStartPos, ::Window* pWindow )
{
@@ -404,7 +404,7 @@ void View::StartDrag( const Point& rStartPos, ::Window* pWindow )
}
}
-// -----------------------------------------------------------------------------
+
void View::DragFinished( sal_Int8 nDropAction )
{
@@ -468,7 +468,7 @@ void View::DragFinished( sal_Int8 nDropAction )
mpDragSrcMarkList = NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper,
::sd::Window*, sal_uInt16, sal_uInt16 nLayer )
@@ -649,7 +649,7 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge
return nRet;
}
-// -----------------------------------------------------------------------------
+
sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTargetHelper,
::sd::Window* pTargetWindow, sal_uInt16 nPage, sal_uInt16 nLayer )
@@ -834,7 +834,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar
return nRet;
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( View, ExecuteNavigatorDrop, SdNavigatorDropEvent*, pSdNavigatorDropEvent )
{
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index 3b755f1026bc..7cf130ca4a0e 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -75,9 +75,9 @@
#include <svx/sdrhittesthelper.hxx>
#include <svx/xbtmpit.hxx>
-// --------------
+
// - Namespaces -
-// --------------
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::lang;
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index 6b7ad96e73fc..7229da7458d9 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -268,7 +268,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
return pNewGrafObj;
}
-// -----------------------------------------------------------------------------
+
SdrMediaObj* View::InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
const Point& rPos, const Size& rSize,
diff --git a/sd/source/ui/view/tabcontr.cxx b/sd/source/ui/view/tabcontr.cxx
index 84f170e862f3..73b0357431ad 100644
--- a/sd/source/ui/view/tabcontr.cxx
+++ b/sd/source/ui/view/tabcontr.cxx
@@ -45,29 +45,29 @@
namespace sd {
-// -----------------------------------------
+
// - SdTabControl::SdPageObjsTransferable -
-// -----------------------------------------
+
TabControl::TabControlTransferable::~TabControlTransferable()
{
}
-// -----------------------------------------------------------------------------
+
void TabControl::TabControlTransferable::AddSupportedFormats()
{
AddFormat( SOT_FORMATSTR_ID_STARDRAW_TABBAR );
}
-// -----------------------------------------------------------------------------
+
sal_Bool TabControl::TabControlTransferable::GetData( const ::com::sun::star::datatransfer::DataFlavor& )
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
void TabControl::TabControlTransferable::DragFinished( sal_Int8 nDropAction )
{
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 6eae63a9cf6e..b456f7f24bc2 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -63,12 +63,12 @@ namespace sd {
class ImageButtonHdl;
-// --------------------------------------------------------------------
+
static const sal_uInt16 gButtonSlots[] = { SID_INSERT_TABLE, SID_INSERT_DIAGRAM, SID_INSERT_GRAPHIC, SID_INSERT_AVMEDIA };
static const sal_uInt16 gButtonToolTips[] = { STR_INSERT_TABLE, STR_INSERT_CHART, STR_INSERT_PICTURE, STR_INSERT_MOVIE };
-// --------------------------------------------------------------------
+
static BitmapEx loadImageResource( sal_uInt16 nId )
{
@@ -78,7 +78,7 @@ static BitmapEx loadImageResource( sal_uInt16 nId )
return BitmapEx( aResId );
}
-// --------------------------------------------------------------------
+
static BitmapEx* getButtonImage( int index, bool large )
{
@@ -104,7 +104,7 @@ static BitmapEx* getButtonImage( int index, bool large )
}
}
-// --------------------------------------------------------------------
+
const sal_uInt32 SMART_TAG_HDL_NUM = SAL_MAX_UINT32;
@@ -158,7 +158,7 @@ private:
sal_uLong mnTip;
};
-// --------------------------------------------------------------------
+
ImageButtonHdl::ImageButtonHdl( const SmartTagReference& xTag /*, sal_uInt16 nSID, const Image& rImage, const Image& rImageMO*/, const Point& rPnt )
: SmartHdl( xTag, rPnt )
@@ -169,14 +169,14 @@ ImageButtonHdl::ImageButtonHdl( const SmartTagReference& xTag /*, sal_uInt16 nSI
{
}
-// --------------------------------------------------------------------
+
ImageButtonHdl::~ImageButtonHdl()
{
HideTip();
}
-// --------------------------------------------------------------------
+
void ImageButtonHdl::HideTip()
{
@@ -187,7 +187,7 @@ void ImageButtonHdl::HideTip()
}
}
-// --------------------------------------------------------------------
+
extern OUString ImplRetrieveLabelFromCommand( const Reference< XFrame >& xFrame, const OUString& aCmdURL );
@@ -227,7 +227,7 @@ void ImageButtonHdl::onMouseEnter(const MouseEvent& rMEvt)
}
}
-// --------------------------------------------------------------------
+
void ImageButtonHdl::onMouseLeave()
{
@@ -236,7 +236,7 @@ void ImageButtonHdl::onMouseLeave()
Touch();
}
-// --------------------------------------------------------------------
+
void ImageButtonHdl::CreateB2dIAObject()
{
@@ -281,21 +281,21 @@ void ImageButtonHdl::CreateB2dIAObject()
}
}
-// --------------------------------------------------------------------
+
sal_Bool ImageButtonHdl::IsFocusHdl() const
{
return false;
}
-// --------------------------------------------------------------------
+
bool ImageButtonHdl::isMarkable() const
{
return false;
}
-// --------------------------------------------------------------------
+
Pointer ImageButtonHdl::GetPointer() const
{
@@ -310,13 +310,13 @@ ChangePlaceholderTag::ChangePlaceholderTag( ::sd::View& rView, SdrObject& rPlace
{
}
-// --------------------------------------------------------------------
+
ChangePlaceholderTag::~ChangePlaceholderTag()
{
}
-// --------------------------------------------------------------------
+
/** returns true if the ChangePlaceholderTag handled the event. */
bool ChangePlaceholderTag::MouseButtonDown( const MouseEvent& /*rMEvt*/, SmartHdl& rHdl )
@@ -342,7 +342,7 @@ bool ChangePlaceholderTag::MouseButtonDown( const MouseEvent& /*rMEvt*/, SmartHd
return false;
}
-// --------------------------------------------------------------------
+
/** returns true if the SmartTag consumes this event. */
bool ChangePlaceholderTag::KeyInput( const KeyEvent& rKEvt )
@@ -363,7 +363,7 @@ bool ChangePlaceholderTag::KeyInput( const KeyEvent& rKEvt )
}
}
-// --------------------------------------------------------------------
+
BitmapEx ChangePlaceholderTag::createOverlayImage( int nHighlight )
{
@@ -442,28 +442,28 @@ void ChangePlaceholderTag::addCustomHandles( SdrHdlList& rHandlerList )
}
}
-// --------------------------------------------------------------------
+
void ChangePlaceholderTag::disposing()
{
SmartTag::disposing();
}
-// --------------------------------------------------------------------
+
void ChangePlaceholderTag::select()
{
SmartTag::select();
}
-// --------------------------------------------------------------------
+
void ChangePlaceholderTag::deselect()
{
SmartTag::deselect();
}
-// --------------------------------------------------------------------
+
ViewOverlayManager::ViewOverlayManager( ViewShellBase& rViewShellBase )
: mrBase( rViewShellBase )
@@ -479,7 +479,7 @@ ViewOverlayManager::ViewOverlayManager( ViewShellBase& rViewShellBase )
StartListening( *mrBase.GetDocShell() );
}
-// --------------------------------------------------------------------
+
ViewOverlayManager::~ViewOverlayManager()
{
@@ -495,7 +495,7 @@ ViewOverlayManager::~ViewOverlayManager()
DisposeTags();
}
-// --------------------------------------------------------------------
+
void ViewOverlayManager::Notify(SfxBroadcaster&, const SfxHint& rHint)
{
@@ -562,7 +562,7 @@ bool ViewOverlayManager::CreateTags()
return bChanges;
}
-// --------------------------------------------------------------------
+
bool ViewOverlayManager::DisposeTags()
{
@@ -583,7 +583,7 @@ bool ViewOverlayManager::DisposeTags()
return false;
}
-// --------------------------------------------------------------------
+
IMPL_LINK(ViewOverlayManager,EventMultiplexerListener,
tools::EventMultiplexerEvent*,pEvent)
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 46f60850f70f..f59f11475a52 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -1122,7 +1122,7 @@ void ViewShell::ImpGetUndoStrings(SfxItemSet &rSet) const
}
}
-// -----------------------------------------------------------------------------
+
void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const
{
@@ -1152,7 +1152,7 @@ void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const
}
}
-// -----------------------------------------------------------------------------
+
void ViewShell::ImpSidUndo(sal_Bool, SfxRequest& rReq)
{
@@ -1201,7 +1201,7 @@ void ViewShell::ImpSidUndo(sal_Bool, SfxRequest& rReq)
rReq.Done();
}
-// -----------------------------------------------------------------------------
+
void ViewShell::ImpSidRedo(sal_Bool, SfxRequest& rReq)
{
@@ -1250,7 +1250,7 @@ void ViewShell::ImpSidRedo(sal_Bool, SfxRequest& rReq)
rReq.Done();
}
-// -----------------------------------------------------------------------------
+
void ViewShell::ExecReq( SfxRequest& rReq )
{