diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 20:51:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 07:42:24 -0600 |
commit | b1181b89f3c6a0b435f49d9b2bfa18db2b5f6f3c (patch) | |
tree | 1ccd7fbb50f8ef1a6ac846e178550da83cd263ca /svx/source/svdraw | |
parent | 060ab521fa0d5d6b9fcb97eab4718c04e8aec944 (diff) |
Remove visual noise from svx
Change-Id: I56497d953b0500ba0967fddb36ca8bbbe86c62ad
Reviewed-on: https://gerrit.libreoffice.org/8321
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/svdraw')
60 files changed, 524 insertions, 524 deletions
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx index f0bdfeb24525..9981df534c05 100644 --- a/svx/source/svdraw/gradtrns.cxx +++ b/svx/source/svdraw/gradtrns.cxx @@ -25,7 +25,7 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <tools/helpers.hxx> -////////////////////////////////////////////////////////////////////////////// + void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, const SdrObject* pObj) { @@ -176,7 +176,7 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons rV.maPositionB = aEndPos; } -////////////////////////////////////////////////////////////////////////////// + void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, GradTransGradient& rGOld, const SdrObject* pObj, bool bMoveSingle, bool bMoveFirst) diff --git a/svx/source/svdraw/sdrhittesthelper.cxx b/svx/source/svdraw/sdrhittesthelper.cxx index 6a293eac792a..6f027a4a79e8 100644 --- a/svx/source/svdraw/sdrhittesthelper.cxx +++ b/svx/source/svdraw/sdrhittesthelper.cxx @@ -29,7 +29,7 @@ #include <svx/svdpagv.hxx> #include <svx/sdr/contact/viewcontact.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i101872# new Object HitTest as View-tooling SdrObject* SdrObjectPrimitiveHit( @@ -88,7 +88,7 @@ SdrObject* SdrObjectPrimitiveHit( return pResult; } -///////////////////////////////////////////////////////////////////// + SdrObject* SdrObjListPrimitiveHit( const SdrObjList& rList, @@ -112,7 +112,7 @@ SdrObject* SdrObjListPrimitiveHit( return pRetval; } -///////////////////////////////////////////////////////////////////// + bool ViewObjectContactPrimitiveHit( const sdr::contact::ViewObjectContact& rVOC, diff --git a/svx/source/svdraw/sdrmasterpagedescriptor.cxx b/svx/source/svdraw/sdrmasterpagedescriptor.cxx index 9e8e80dd768f..8331c338b2a0 100644 --- a/svx/source/svdraw/sdrmasterpagedescriptor.cxx +++ b/svx/source/svdraw/sdrmasterpagedescriptor.cxx @@ -26,7 +26,7 @@ #include <svx/xfillit0.hxx> #include <svl/itemset.hxx> -////////////////////////////////////////////////////////////////////////////// + namespace sdr { diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx index 3f8010a205bf..cfab3ffcd208 100644 --- a/svx/source/svdraw/sdrpagewindow.cxx +++ b/svx/source/svdraw/sdrpagewindow.cxx @@ -36,12 +36,12 @@ #include <svx/fmview.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + using namespace ::rtl; using namespace ::com::sun::star; -//////////////////////////////////////////////////////////////////////////////////////////////////// + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > SdrPageWindow::GetControlContainer( bool _bCreateIfNecessary ) const { @@ -178,7 +178,7 @@ void SdrPageWindow::PrepareRedraw(const Region& rReg) GetPaintWindow().SetRedrawRegion(rReg); } -////////////////////////////////////////////////////////////////////////////// + // clip test #ifdef CLIPPER_TEST #include <svx/svdopath.hxx> @@ -264,7 +264,7 @@ namespace } // end of anonymous namespace #endif // CLIPPER_TEST -////////////////////////////////////////////////////////////////////////////// + void SdrPageWindow::RedrawAll(sdr::contact::ViewObjectContactRedirector* pRedirector) const { diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx index 1367c0b110ea..b8b973d55edf 100644 --- a/svx/source/svdraw/sdrpaintwindow.cxx +++ b/svx/source/svdraw/sdrpaintwindow.cxx @@ -50,7 +50,7 @@ void PaintTransparentChildren(Window & rWindow, Rectangle const& rPixelRect) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrPreRenderDevice::SdrPreRenderDevice(OutputDevice& rOriginal) : mrOutputDevice(rOriginal) @@ -127,12 +127,12 @@ void SdrPreRenderDevice::OutputPreRenderDevice(const Region& rExpandedRegion) // // for each rectangle, copy the area // const Point aTopLeft(aRegionRectanglePixel.TopLeft()); // const Size aSize(aRegionRectanglePixel.GetSize()); -// + // mrOutputDevice.DrawOutDev( // aTopLeft, aSize, // aTopLeft, aSize, // maPreRenderDevice); -// + //#ifdef DBG_UTIL // // #i74769# // static bool bDoPaintForVisualControlRegion(false); @@ -145,14 +145,14 @@ void SdrPreRenderDevice::OutputPreRenderDevice(const Region& rExpandedRegion) // } //#endif // } -// + // aRegionPixel.EndEnumRects(aRegionHandle); mrOutputDevice.EnableMapMode(bMapModeWasEnabledDest); maPreRenderDevice.EnableMapMode(bMapModeWasEnabledSource); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPaintWindow::impCreateOverlayManager() { diff --git a/svx/source/svdraw/sdrundomanager.cxx b/svx/source/svdraw/sdrundomanager.cxx index f2a00c553d5f..cd83720ca2a4 100644 --- a/svx/source/svdraw/sdrundomanager.cxx +++ b/svx/source/svdraw/sdrundomanager.cxx @@ -18,7 +18,7 @@ #include <svx/sdrundomanager.hxx> -////////////////////////////////////////////////////////////////////////////// + SdrUndoManager::SdrUndoManager(sal_uInt16 nMaxUndoActionCount) : EditUndoManager(nMaxUndoActionCount) @@ -131,5 +131,5 @@ bool SdrUndoManager::isTextEditActive() const return maEndTextEditHdl.IsSet(); } -////////////////////////////////////////////////////////////////////////////// + // eof diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 403a8d1d9def..410c4e0bf4f3 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -641,9 +641,9 @@ void SdrItemPool::TakeItemName(sal_uInt16 nWhich, OUString& rItemName) rItemName = ResId( nResId, *pResMgr ); } -//////////////////////////////////////////////////////////////////////////////// + // FractionItem -//////////////////////////////////////////////////////////////////////////////// + TYPEINIT1_AUTOFACTORY(SdrFractionItem,SfxPoolItem); @@ -709,9 +709,9 @@ SfxPoolItem* SdrFractionItem::Clone(SfxItemPool * /*pPool*/) const return new SdrFractionItem(Which(),GetValue()); } -//////////////////////////////////////////////////////////////////////////////// + // ScaleItem -//////////////////////////////////////////////////////////////////////////////// + TYPEINIT1_AUTOFACTORY(SdrScaleItem,SdrFractionItem); @@ -751,9 +751,9 @@ SfxPoolItem* SdrScaleItem::Clone(SfxItemPool * /*pPool*/) const return new SdrScaleItem(Which(),GetValue()); } -//////////////////////////////////////////////////////////////////////////////// + // OnOffItem -//////////////////////////////////////////////////////////////////////////////// + TYPEINIT1_AUTOFACTORY(SdrOnOffItem,SfxBoolItem); @@ -993,9 +993,9 @@ SfxItemPresentation SdrMetricItem::GetPresentation(SfxItemPresentation ePres, return ePres; } -//////////////////////////////////////////////////////////////////////////////// + // items of the legend object -//////////////////////////////////////////////////////////////////////////////// + TYPEINIT1_AUTOFACTORY(SdrCaptionTypeItem,SfxEnumItem); @@ -1049,9 +1049,9 @@ SfxItemPresentation SdrCaptionEscDirItem::GetPresentation(SfxItemPresentation eP return ePres; } -//////////////////////////////////////////////////////////////////////////////// + // MiscItems -//////////////////////////////////////////////////////////////////////////////// + // FitToSize TYPEINIT1_AUTOFACTORY(SdrTextFitToSizeTypeItem,SfxEnumItem); diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index 79985a59ee47..da1407a5d027 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -41,7 +41,7 @@ #include <svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + class ImplConnectMarkerOverlay { @@ -116,7 +116,7 @@ ImplConnectMarkerOverlay::~ImplConnectMarkerOverlay() // OverlayManager and deletes them. } -//////////////////////////////////////////////////////////////////////////////////////////////////// + class ImpSdrCreateViewExtraData { @@ -177,11 +177,11 @@ void ImpSdrCreateViewExtraData::HideOverlay() maObjects.clear(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // CreateView -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + void SdrCreateView::ImpClearConnectMarker() { @@ -876,7 +876,7 @@ void SdrCreateView::HideCreateObj() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrCreateView::GetAttributes(SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr) const { diff --git a/svx/source/svdraw/svddrgm1.hxx b/svx/source/svdraw/svddrgm1.hxx index 83572a43cadc..b2282bd28ee5 100644 --- a/svx/source/svdraw/svddrgm1.hxx +++ b/svx/source/svdraw/svddrgm1.hxx @@ -25,12 +25,12 @@ #include <svx/svddrgv.hxx> #include <svx/svddrgmt.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // predeclarations class SdrDragView; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragMovHdl class SdrDragMovHdl : public SdrDragMethod @@ -51,7 +51,7 @@ public: virtual Pointer GetSdrDragPointer() const; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragRotate class SdrDragRotate : public SdrDragMethod @@ -77,7 +77,7 @@ public: virtual void applyCurrentTransformationToSdrObject(SdrObject& rTarget); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragShear class SdrDragShear : public SdrDragMethod @@ -106,7 +106,7 @@ public: virtual void applyCurrentTransformationToSdrObject(SdrObject& rTarget); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragMirror class SdrDragMirror : public SdrDragMethod @@ -133,7 +133,7 @@ public: virtual void applyCurrentTransformationToSdrObject(SdrObject& rTarget); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragGradient class SdrDragGradient : public SdrDragMethod @@ -159,7 +159,7 @@ public: virtual void CancelSdrDrag(); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragCrook class SdrDragCrook : public SdrDragMethod @@ -211,7 +211,7 @@ public: virtual void applyCurrentTransformationToPolyPolygon(basegfx::B2DPolyPolygon& rTarget); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragDistort class SdrDragDistort : public SdrDragMethod @@ -245,7 +245,7 @@ public: virtual void applyCurrentTransformationToPolyPolygon(basegfx::B2DPolyPolygon& rTarget); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrDragCrop // derive from SdrDragObjOwn to have handles aligned to object when it @@ -262,7 +262,7 @@ public: virtual Pointer GetSdrDragPointer() const; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + #endif // INCLUDED_SVX_SOURCE_SVDRAW_SVDDRGM1_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index ef56971f09d7..4f800764454c 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -72,7 +72,7 @@ #include <map> #include <vector> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrDragEntry::SdrDragEntry() : mbAddToTransparent(false) @@ -83,7 +83,7 @@ SdrDragEntry::~SdrDragEntry() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrDragEntryPolyPolygon::SdrDragEntryPolyPolygon(const basegfx::B2DPolyPolygon& rOriginalPolyPolygon) : SdrDragEntry(), @@ -136,7 +136,7 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragEntryPolyPolygon::createPr return aRetval; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrDragEntrySdrObject::SdrDragEntrySdrObject(const SdrObject& rOriginal, sdr::contact::ObjectContact& rObjectContact, bool bModify) : SdrDragEntry(), @@ -203,7 +203,7 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragEntrySdrObject::createPrim return rVOC.getPrimitive2DSequenceHierarchy(aDisplayInfo); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrDragEntryPrimitive2DSequence::SdrDragEntryPrimitive2DSequence( const drawinglayer::primitive2d::Primitive2DSequence& rSequence, @@ -229,7 +229,7 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragEntryPrimitive2DSequence:: return drawinglayer::primitive2d::Primitive2DSequence(&aTransformPrimitive2D, 1); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrDragEntryPointGlueDrag::SdrDragEntryPointGlueDrag(const std::vector< basegfx::B2DPoint >& rPositions, bool bIsPointDrag) : maPositions(rPositions), @@ -299,7 +299,7 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragEntryPointGlueDrag::create return aRetval; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT0(SdrDragMethod); @@ -962,7 +962,7 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragMethod::AddConnectorOverla return aRetval; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragMovHdl,SdrDragMethod); @@ -1178,7 +1178,7 @@ Pointer SdrDragMovHdl::GetSdrDragPointer() const return Pointer(POINTER_REFHAND); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragObjOwn,SdrDragMethod); @@ -1489,7 +1489,7 @@ Pointer SdrDragObjOwn::GetSdrDragPointer() const return Pointer(POINTER_MOVE); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragMove,SdrDragMethod); @@ -1764,7 +1764,7 @@ Pointer SdrDragMove::GetSdrDragPointer() const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragResize,SdrDragMethod); @@ -2101,7 +2101,7 @@ Pointer SdrDragResize::GetSdrDragPointer() const return Pointer(POINTER_MOVE); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragRotate,SdrDragMethod); @@ -2238,7 +2238,7 @@ Pointer SdrDragRotate::GetSdrDragPointer() const return Pointer(POINTER_ROTATE); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragShear,SdrDragMethod); @@ -2520,7 +2520,7 @@ Pointer SdrDragShear::GetSdrDragPointer() const return Pointer(POINTER_HSHEAR); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragMirror,SdrDragMethod); @@ -2651,7 +2651,7 @@ Pointer SdrDragMirror::GetSdrDragPointer() const return Pointer(POINTER_MIRROR); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragGradient, SdrDragMethod); @@ -2812,7 +2812,7 @@ Pointer SdrDragGradient::GetSdrDragPointer() const return Pointer(POINTER_REFHAND); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragCrook,SdrDragMethod); @@ -3486,7 +3486,7 @@ Pointer SdrDragCrook::GetSdrDragPointer() const return Pointer(POINTER_CROOK); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragDistort,SdrDragMethod); @@ -3640,7 +3640,7 @@ void SdrDragDistort::applyCurrentTransformationToPolyPolygon(basegfx::B2DPolyPol _MovAllPoints(rTarget); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrDragCrop,SdrDragResize); @@ -3847,9 +3847,9 @@ bool SdrDragCrop::EndSdrDrag(bool /*bCopy*/) // the crop item. It implies unrotated objects, so create the unrotated original // erctangle and the unrotated modified rectangle. Latter can in case of shear and/or // rotation not be fetched by using - // + //Rectangle aNewRect( pObj->GetLogicRect() ); - // + // as it was done before because the top-left of that new rect *will* have an offset // caused by the evtl. existing shear and/or rotation, so calculate a unrotated // rectangle how it would be as a result when appling the unit coordinate change diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx index 84967e31150e..3c0a96bb195d 100644 --- a/svx/source/svdraw/svddrgv.cxx +++ b/svx/source/svdraw/svddrgv.cxx @@ -42,11 +42,11 @@ using namespace sdr; -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // DragView -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + void SdrDragView::ImpClearVars() { @@ -191,7 +191,7 @@ sal_Bool SdrDragView::TakeDragObjAnchorPos(Point& rPos, sal_Bool bTR ) const return sal_False; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrDragView::TakeDragLimit(SdrDragMode /*eMode*/, Rectangle& /*rRect*/) const { @@ -823,7 +823,7 @@ void SdrDragView::HideDragObj() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrDragView::SetNoDragXorPolys(sal_Bool bOn) { diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx index 575e2c6ac806..a2e509779fd4 100644 --- a/svx/source/svdraw/svdedtv.cxx +++ b/svx/source/svdraw/svdedtv.cxx @@ -101,7 +101,7 @@ SdrEditView::~SdrEditView() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrLayer* SdrEditView::InsertNewLayer(const OUString& rName, sal_uInt16 nPos) { @@ -282,7 +282,7 @@ void SdrEditView::DeleteLayer(const OUString& rName) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::EndUndo() { @@ -357,9 +357,9 @@ void SdrEditView::ImpBroadcastEdgesOfMarkedNodes() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Possibilities -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::MarkListHasChanged() { @@ -650,7 +650,7 @@ void SdrEditView::CheckPossibilities() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::ForceMarkedObjToAnotherPage() { @@ -951,7 +951,7 @@ void SdrEditView::CopyMarkedObj() MarkListHasChanged(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrEditView::InsertObjectAtView(SdrObject* pObj, SdrPageView& rPV, sal_uIntPtr nOptions) { @@ -1026,7 +1026,7 @@ void SdrEditView::ReplaceObjectAtView(SdrObject* pOldObj, SdrPageView& rPV, SdrO if (bMark) MarkObj(pNewObj,&rPV); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrEditView::IsUndoEnabled() const { diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx index 83519a79b1ee..4f3bd09846dc 100644 --- a/svx/source/svdraw/svdedtv1.cxx +++ b/svx/source/svdraw/svdedtv1.cxx @@ -61,11 +61,11 @@ #include <svx/xlnstwit.hxx> #include <svx/xlnwtit.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // EditView -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + void SdrEditView::SetMarkedObjRect(const Rectangle& rRect, sal_Bool bCopy) { @@ -702,7 +702,7 @@ void SdrEditView::DistortMarkedObj(const Rectangle& rRef, const XPolygon& rDisto EndUndo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::SetNotPersistAttrToMarked(const SfxItemSet& rAttr, sal_Bool /*bReplaceAll*/) { @@ -1231,7 +1231,7 @@ void SdrEditView::SetStyleSheetToMarked(SfxStyleSheet* pStyleSheet, sal_Bool bDo } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrEditView::GetAttributes(SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr) const { @@ -1275,7 +1275,7 @@ sal_Bool SdrEditView::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRe } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SfxItemSet SdrEditView::GetGeoAttrFromMarked() const { @@ -1740,7 +1740,7 @@ void SdrEditView::SetGeoAttrToMarked(const SfxItemSet& rAttr) EndUndo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrEditView::IsAlignPossible() const { // at least two selected objects, at least one of them movable diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index f05d650d7801..c6e53420dea7 100644 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -536,9 +536,9 @@ void SdrEditView::ImpCheckToTopBtmPossible() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Combine -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::ImpCopyAttributes(const SdrObject* pSource, SdrObject* pDest) const { @@ -1346,9 +1346,9 @@ void SdrEditView::CombineMarkedObjects(sal_Bool bNoPolyPoly) EndUndo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Dismantle -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrEditView::ImpCanDismantle(const basegfx::B2DPolyPolygon& rPpolyPolygon, sal_Bool bMakeLines) const { @@ -1660,9 +1660,9 @@ void SdrEditView::DismantleMarkedObjects(sal_Bool bMakeLines) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Group -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::GroupMarked(const SdrObject* pUserGrp) { @@ -1780,9 +1780,9 @@ void SdrEditView::GroupMarked(const SdrObject* pUserGrp) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Ungroup -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::UnGroupMarked() { @@ -1880,9 +1880,9 @@ void SdrEditView::UnGroupMarked() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // ConvertToPoly -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrEditView::ImpConvertOneObj(SdrObject* pObj, sal_Bool bPath, sal_Bool bLineToArea) { @@ -1969,9 +1969,9 @@ void SdrEditView::ConvertMarkedToPolyObj(sal_Bool bLineToArea) ImpConvertTo(sal_False, bLineToArea); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Metafile Import -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrEditView::DoImportMarkedMtf(SvdProgressInfo *pProgrInfo) { diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 73193f646456..283d36920df3 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -60,7 +60,7 @@ #include <svx/sdr/overlay/overlaytools.hxx> #include <drawinglayer/processor2d/processor2dtools.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObjEditView::ImpClearVars() { @@ -98,7 +98,7 @@ SdrObjEditView::~SdrObjEditView() delete mpOldTextEditUndoManager; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrObjEditView::IsAction() const { @@ -152,7 +152,7 @@ void SdrObjEditView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) pTextEditOutliner->SetDefTab(pMod->GetDefaultTabulator()); } if (eKind==HINT_DEFFONTHGTCHG) { - // ... + } if (eKind==HINT_MODELSAVED) { pTextEditOutliner->ClearModifyFlag(); @@ -283,9 +283,9 @@ void SdrObjEditView::ModelHasChanged() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // TextEdit -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObjEditView::TextEditDrawing(SdrPaintWindow& rPaintWindow) const { @@ -1078,7 +1078,7 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(sal_Bool bDontDeleteReally) return eRet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // info about TextEdit. Default is sal_False. bool SdrObjEditView::IsTextEdit() const { @@ -1091,7 +1091,7 @@ SdrPageView* SdrObjEditView::GetTextEditPageView() const return pTextEditPV; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OutlinerView* SdrObjEditView::ImpFindOutlinerView(Window* pWin) const { @@ -1191,7 +1191,7 @@ sal_Bool SdrObjEditView::IsTextEditFrameHit(const Point& rHit) const return bOk; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, Window* pWin) { @@ -1356,7 +1356,7 @@ sal_Bool SdrObjEditView::Command(const CommandEvent& rCEvt, Window* pWin) return SdrGlueEditView::Command(rCEvt,pWin); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrObjEditView::ImpIsTextEditAllSelected() const { @@ -1668,7 +1668,7 @@ sal_Bool SdrObjEditView::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDon return SdrGlueEditView::SetStyleSheet(pStyleSheet,bDontRemoveHardAttr); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObjEditView::AddWindowToPaintView(OutputDevice* pNewWin) { @@ -1702,9 +1702,9 @@ sal_Bool SdrObjEditView::IsTextEditInSelectionMode() const return pTextEditOutliner!=NULL && pTextEditOutliner->IsInSelectionMode(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // MacroMode -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrObjEditView::BegMacroObj(const Point& rPnt, short nTol, SdrObject* pObj, SdrPageView* pPV, Window* pWin) { diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 753559a70493..cacf6d842d84 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -92,7 +92,7 @@ const LocaleDataWrapper* SdrGlobalData::GetLocaleData() pLocaleData = GetSysLocale()->GetLocaleDataPtr(); return pLocaleData; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OLEObjCache::OLEObjCache() : std::vector<SdrOle2Obj*>() @@ -205,7 +205,7 @@ sal_Bool OLEObjCache::UnloadObj(SdrOle2Obj* pObj) //#i80528# The old mechanism is completely useless, only taking into account if // in all views the GrafDraft feature is used. This will nearly never have been the // case since no one ever used this option. - // + // A much better (and working) criteria would be the VOC contact count. // The question is what will happen when i make it work now suddenly? I // will try it for 2.4. @@ -227,7 +227,7 @@ IMPL_LINK(OLEObjCache, UnloadCheckHdl, AutoTimer*, /*pTim*/) return 0; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrLinkList::Clear() { @@ -276,7 +276,7 @@ void SdrLinkList::RemoveLink(const Link& rLink) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol) { @@ -373,7 +373,7 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol) return bRetval; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrEngineDefaults::SdrEngineDefaults(): aFontName( OutputDevice::GetDefaultFont( DEFAULTFONT_SERIF, LANGUAGE_SYSTEM, DEFAULTFONT_FLAGS_ONLYONE ).GetName() ), @@ -394,7 +394,7 @@ SdrEngineDefaults& SdrEngineDefaults::GetDefaults() return *rGlobalData.pDefaults; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrOutliner* SdrMakeOutliner( sal_uInt16 nOutlinerMode, SdrModel* pModel ) { @@ -411,7 +411,7 @@ SdrOutliner* SdrMakeOutliner( sal_uInt16 nOutlinerMode, SdrModel* pModel ) return pOutl; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrLinkList& ImpGetUserMakeObjHdl() @@ -426,7 +426,7 @@ SdrLinkList& ImpGetUserMakeObjUserDataHdl() return rGlobalData.aUserMakeObjUserDataHdl; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + ResMgr* ImpGetResMgr() { @@ -441,14 +441,14 @@ ResMgr* ImpGetResMgr() return rGlobalData.pResMgr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OUString ImpGetResStr(sal_uInt16 nResID) { return ResId(nResID, *ImpGetResMgr()).toString(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + namespace sdr { @@ -458,7 +458,7 @@ namespace sdr } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SearchOutlinerItems(const SfxItemSet& rSet, sal_Bool bInklDefaults, sal_Bool* pbOnlyEE) { @@ -546,7 +546,7 @@ sal_uInt16* RemoveWhichRange(const sal_uInt16* pOldWhichTable, sal_uInt16 nRange return pNewWhichTable; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SvdProgressInfo::SvdProgressInfo( Link *_pLink ) { @@ -623,7 +623,7 @@ void SvdProgressInfo::ReportError() pLink->Call((void *)1L); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i101872# isolate GetTextEditBackgroundColor to tooling; it will anyways only be used as long // as text edit is not running on overlay diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx index 43820f20427b..070acad5f771 100644 --- a/svx/source/svdraw/svdfmtf.cxx +++ b/svx/source/svdraw/svdfmtf.cxx @@ -71,7 +71,7 @@ #include <svx/svditer.hxx> #include <svx/svdogrp.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport( SdrModel& rModel, @@ -1128,7 +1128,7 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaBmpExScaleAction& rAct) InsertObj(pGraf); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void ImpSdrGDIMetaFileImport::DoAction( MetaHatchAction& rAct ) { @@ -1178,7 +1178,7 @@ void ImpSdrGDIMetaFileImport::DoAction( MetaHatchAction& rAct ) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void ImpSdrGDIMetaFileImport::DoAction(MetaLineColorAction& rAct) { @@ -1213,7 +1213,7 @@ void ImpSdrGDIMetaFileImport::MapScaling() mnMapScalingOfs = nAnz; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void ImpSdrGDIMetaFileImport::DoAction( MetaCommentAction& rAct, GDIMetaFile* pMtf ) { diff --git a/svx/source/svdraw/svdfmtf.hxx b/svx/source/svdraw/svdfmtf.hxx index c6c37d42ba56..40d873790c1d 100644 --- a/svx/source/svdraw/svdfmtf.hxx +++ b/svx/source/svdraw/svdfmtf.hxx @@ -25,9 +25,9 @@ #include <vcl/virdev.hxx> #include <svx/svdobj.hxx> -//************************************************************ + // Forward Declarations -//************************************************************ + class SfxItemSet; class SdrObjList; @@ -36,9 +36,9 @@ class SdrPage; class SdrObject; class SvdProgressInfo; -//************************************************************ + // Helper Class ImpSdrGDIMetaFileImport -//************************************************************ + class ImpSdrGDIMetaFileImport { diff --git a/svx/source/svdraw/svdglev.cxx b/svx/source/svdraw/svdglev.cxx index bc72272a4755..62aa11fca68a 100644 --- a/svx/source/svdraw/svdglev.cxx +++ b/svx/source/svdraw/svdglev.cxx @@ -29,7 +29,7 @@ #include <svx/svdtrans.hxx> #include <svx/svdobj.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrGlueEditView::ImpClearVars() { @@ -45,7 +45,7 @@ SdrGlueEditView::~SdrGlueEditView() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, sal_Bool bConst, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) { @@ -89,7 +89,7 @@ void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, sal_Bool bConst if (!bConst && nMarkAnz!=0) pMod->SetChanged(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpGetEscDir(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnThisEsc, const void* pnRet, const void*, const void*) { @@ -128,7 +128,7 @@ void SdrGlueEditView::SetMarkedGluePointsEscDir(sal_uInt16 nThisEsc, sal_Bool bO EndUndo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpGetPercent(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnRet, const void*, const void*, const void*) { @@ -165,7 +165,7 @@ void SdrGlueEditView::SetMarkedGluePointsPercent(sal_Bool bOn) EndUndo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpGetAlign(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pbDontCare, const void* pbVert, const void* pnRet, const void*) { @@ -265,7 +265,7 @@ void SdrGlueEditView::DeleteMarkedGluePoints() pMod->SetChanged(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrGlueEditView::ImpCopyMarkedGluePoints() { @@ -315,7 +315,7 @@ void SdrGlueEditView::ImpCopyMarkedGluePoints() pMod->SetChanged(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) { @@ -351,7 +351,7 @@ void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const vo if (nMarkAnz!=0) pMod->SetChanged(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpMove(Point& rPt, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/, const void* /*p5*/) { @@ -371,7 +371,7 @@ void SdrGlueEditView::MoveMarkedGluePoints(const Size& rSiz, bool bCopy) AdjustMarkHdl(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpResize(Point& rPt, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/) { @@ -390,7 +390,7 @@ void SdrGlueEditView::ResizeMarkedGluePoints(const Point& rRef, const Fraction& AdjustMarkHdl(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpRotate(Point& rPt, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/) { diff --git a/svx/source/svdraw/svdglue.cxx b/svx/source/svdraw/svdglue.cxx index 4a95b145f7f4..41b37ae0e885 100644 --- a/svx/source/svdraw/svdglue.cxx +++ b/svx/source/svdraw/svdglue.cxx @@ -260,7 +260,7 @@ bool SdrGluePoint::IsHit(const Point& rPnt, const OutputDevice& rOut, const SdrO return aRect.IsInside(rPnt); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrGluePointList::Clear() { diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index 160125880a08..dd8338585f07 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -65,7 +65,7 @@ #include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx> #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i15222# // Due to the resource problems in Win95/98 with bitmap resources I // will change this handle bitmap providing class. Old version was splitting @@ -92,7 +92,7 @@ public: const BitmapEx& GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd=0); }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + #define KIND_COUNT (14) #define INDEX_COUNT (6) #define INDIVIDUAL_COUNT (5) @@ -265,7 +265,7 @@ const BitmapEx& SdrHdlBitmapSet::GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrHdl::SdrHdl(): pObj(NULL), @@ -915,7 +915,7 @@ void SdrHdl::onMouseLeave() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // class SdrHdlColor SdrHdlColor::SdrHdlColor(const Point& rRef, Color aCol, const Size& rSize, sal_Bool bLum) @@ -1074,7 +1074,7 @@ void SdrHdlColor::SetSize(const Size& rNew) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // class SdrHdlGradient SdrHdlGradient::SdrHdlGradient(const Point& rRef1, const Point& rRef2, sal_Bool bGrad) @@ -1258,7 +1258,7 @@ void SdrHdlGradient::FromIAOToItem(SdrObject* _pObj, sal_Bool bSetItemOnObject, } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrHdlLine::~SdrHdlLine() {} @@ -1318,7 +1318,7 @@ Pointer SdrHdlLine::GetPointer() const return Pointer(POINTER_REFHAND); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrHdlBezWgt::~SdrHdlBezWgt() {} @@ -1380,7 +1380,7 @@ void SdrHdlBezWgt::CreateB2dIAObject() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + E3dVolumeMarker::E3dVolumeMarker(const basegfx::B2DPolyPolygon& rWireframePoly) { @@ -1430,7 +1430,7 @@ void E3dVolumeMarker::CreateB2dIAObject() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + ImpEdgeHdl::~ImpEdgeHdl() { @@ -1554,7 +1554,7 @@ sal_Bool ImpEdgeHdl::IsHorzDrag() const return sal_False; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + ImpMeasureHdl::~ImpMeasureHdl() { @@ -1629,7 +1629,7 @@ Pointer ImpMeasureHdl::GetPointer() const return Pointer(POINTER_NOTALLOWED); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + ImpTextframeHdl::ImpTextframeHdl(const Rectangle& rRect) : SdrHdl(rRect.TopLeft(),HDL_MOVE), @@ -1693,7 +1693,7 @@ void ImpTextframeHdl::CreateB2dIAObject() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static bool ImpSdrHdlListSorter(SdrHdl* const& lhs, SdrHdl* const& rhs) { @@ -1842,7 +1842,7 @@ extern "C" int SAL_CALL ImplSortHdlFunc( const void* pVoid1, const void* pVoid2 } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrHdlList::TravelFocusHdl(sal_Bool bForward) { @@ -2023,7 +2023,7 @@ void SdrHdlList::ResetFocusHdl() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrHdlList::SdrHdlList(SdrMarkView* pV) : mnFocusIndex(CONTAINER_ENTRY_NOTFOUND), @@ -2208,9 +2208,9 @@ SdrHdl* SdrHdlList::GetHdl(SdrHdlKind eKind1) const return pRet; } -// -------------------------------------------------------------------- + // SdrCropHdl -// -------------------------------------------------------------------- + SdrCropHdl::SdrCropHdl( const Point& rPnt, @@ -2223,7 +2223,7 @@ SdrCropHdl::SdrCropHdl( { } -// -------------------------------------------------------------------- + BitmapEx SdrCropHdl::GetHandlesBitmap() { @@ -2233,7 +2233,7 @@ BitmapEx SdrCropHdl::GetHandlesBitmap() return *pModernBitmap; } -// -------------------------------------------------------------------- + BitmapEx SdrCropHdl::GetBitmapForHandle( const BitmapEx& rBitmap, int nSize ) { @@ -2275,7 +2275,7 @@ BitmapEx SdrCropHdl::GetBitmapForHandle( const BitmapEx& rBitmap, int nSize ) return aRetval; } -// -------------------------------------------------------------------- + void SdrCropHdl::CreateB2dIAObject() { @@ -2353,7 +2353,7 @@ void SdrCropHdl::CreateB2dIAObject() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // with the correction of crop handling I could get rid of the extra mirroring flag, adapted stuff // accordingly diff --git a/svx/source/svdraw/svdhlpln.cxx b/svx/source/svdraw/svdhlpln.cxx index 5806a7da4d38..2c366e7b4e89 100644 --- a/svx/source/svdraw/svdhlpln.cxx +++ b/svx/source/svdraw/svdhlpln.cxx @@ -25,7 +25,7 @@ #include <tools/poly.hxx> #include <vcl/lineinfo.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + Pointer SdrHelpLine::GetPointer() const { diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 5f9993b8d855..403ac8039c4b 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -400,7 +400,7 @@ void _SdrItemBrowserControl::KeyInput(const KeyEvent& rKEvt) if (nKeyCode==KEY_RETURN) { if (BegChangeEntry(nPos)) bAusgewertet = true; } else if (nKeyCode==KEY_ESCAPE) { - // ... + } else if (rKEvt.GetKeyCode().GetModifier()==KEY_SHIFT+KEY_MOD1+KEY_MOD2) { // Ctrl if (nKeyCode==KEY_SHIFT+KEY_MOD1+KEY_MOD2+KEY_W) { bWhichesButNames=!bWhichesButNames; diff --git a/svx/source/svdraw/svdlayer.cxx b/svx/source/svdraw/svdlayer.cxx index e8f3fdc45e28..2d80d61f4e3f 100644 --- a/svx/source/svdraw/svdlayer.cxx +++ b/svx/source/svdraw/svdlayer.cxx @@ -141,9 +141,9 @@ bool SdrLayer::operator==(const SdrLayer& rCmpLayer) const && maName == rCmpLayer.maName); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // SdrLayerAdmin -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrLayerAdmin::SdrLayerAdmin(SdrLayerAdmin* pNewParent): aLayer(), diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx index 5b23f25cbf29..b329b7f1e267 100644 --- a/svx/source/svdraw/svdmark.cxx +++ b/svx/source/svdraw/svdmark.cxx @@ -18,7 +18,7 @@ */ -//////////////////////////////////////////////////////////////////////////////////////////////////// + #include <svx/svdmark.hxx> #include <svx/svdetc.hxx> @@ -32,14 +32,14 @@ #include "svx/svdstr.hrc" #include "svx/svdglob.hxx" -//////////////////////////////////////////////////////////////////////////////////////////////////// + #include <svx/obj3d.hxx> #include <svx/scene3d.hxx> #include <svl/brdcst.hxx> #include <svx/svdoedge.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrMark::SdrMark(SdrObject* pNewObj, SdrPageView* pNewPageView) : mpSelectedSdrObject(pNewObj), @@ -218,7 +218,7 @@ sal_Bool SdrMark::operator==(const SdrMark& rMark) const return bRet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static bool ImpSdrMarkListSorter(SdrMark* const& lhs, SdrMark* const& rhs) { @@ -243,7 +243,7 @@ static bool ImpSdrMarkListSorter(SdrMark* const& lhs, SdrMark* const& rhs) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkList::ForceSort() const { @@ -357,7 +357,7 @@ sal_uLong SdrMarkList::FindObject(const SdrObject* pObj) const // Since relying on OrdNums is not allowed for the selection because objects in the // selection may not be inserted in a list if they are e.g. modified ATM, i changed // this loop to just look if the object pointer is in the selection. - // + // Problem is that GetOrdNum() which is const, internally casts to non-const and // hardly sets the OrdNum member of the object (nOrdNum) to 0 (ZERO) if the object // is not inserted in a object list. @@ -774,7 +774,7 @@ sal_Bool SdrMarkList::TakeSnapRect(SdrPageView* pPV, Rectangle& rRect) const return bFnd; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + namespace sdr { diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 4a1f5582c5e2..b1d4a05445bb 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -90,7 +90,7 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -//////////////////////////////////////////////////////////////////////////////////////////////////// + struct SdrModelImpl { @@ -98,7 +98,7 @@ struct SdrModelImpl SdrUndoFactory* mpUndoFactory; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + DBG_NAME(SdrModel) TYPEINIT1(SdrModel,SfxBroadcaster); @@ -359,7 +359,7 @@ void SdrModel::SetReadOnly(bool bYes) bReadOnly=bYes; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrModel::SetMaxUndoActionCount(sal_uIntPtr nAnz) { @@ -1536,7 +1536,7 @@ void SdrModel::MoveMasterPage(sal_uInt16 nPgNum, sal_uInt16 nNewPos) Broadcast(aHint); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrModel::CopyPages(sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, @@ -1828,7 +1828,7 @@ void SdrModel::setLock( bool bLock ) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrModel::MigrateItemSet( const SfxItemSet* pSourceSet, SfxItemSet* pDestSet, SdrModel* pNewModel ) { @@ -1888,7 +1888,7 @@ void SdrModel::MigrateItemSet( const SfxItemSet* pSourceSet, SfxItemSet* pDestSe } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrModel::SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars ) { @@ -2047,7 +2047,7 @@ const ::com::sun::star::uno::Sequence< sal_Int8 >& SdrModel::getUnoTunnelImpleme return theSdrModelUnoTunnelImplementationId::get().getSeq(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrHint,SfxHint); diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index f06b00a526a3..4ecd12bb8c7a 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -52,7 +52,7 @@ #include <editeng/editdata.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Migrate Marking of Objects, Points and GluePoints class ImplMarkingOverlay @@ -117,11 +117,11 @@ void ImplMarkingOverlay::SetSecondPosition(const basegfx::B2DPoint& rNewPosition } } -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // MarkView -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + void SdrMarkView::ImpClearVars() { @@ -207,7 +207,7 @@ void SdrMarkView::ModelHasChanged() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::IsAction() const { @@ -278,7 +278,7 @@ void SdrMarkView::TakeActionRect(Rectangle& rRect) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::ClearPageView() { @@ -309,7 +309,7 @@ void SdrMarkView::HideSdrPage() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::BegMarkObj(const Point& rPnt, sal_Bool bUnmark) { @@ -368,7 +368,7 @@ void SdrMarkView::BrkMarkObj() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::BegMarkPoints(const Point& rPnt, sal_Bool bUnmark) { @@ -434,7 +434,7 @@ void SdrMarkView::BrkMarkPoints() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::BegMarkGluePoints(const Point& rPnt, sal_Bool bUnmark) { @@ -1276,7 +1276,7 @@ void SdrMarkView::SetEditMode(SdrViewEditMode eMode) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const { @@ -1994,7 +1994,7 @@ const Rectangle& SdrMarkView::GetMarkedObjRect() const return aMarkedObjRect; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, sal_uInt16 nVal, sal_uInt16 nOpt) const { @@ -2020,7 +2020,7 @@ void SdrMarkView::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, rStr = rStr.replaceFirst("%2", OUString::number( nVal )); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::EnterMarkedGroup() { @@ -2051,7 +2051,7 @@ sal_Bool SdrMarkView::EnterMarkedGroup() return bRet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::MarkListHasChanged() { @@ -2074,7 +2074,7 @@ void SdrMarkView::MarkListHasChanged() ImpSetGlueVisible4(bOneEdgeMarked); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::SetMoveOutside(sal_Bool bOn) { diff --git a/svx/source/svdraw/svdmrkv1.cxx b/svx/source/svdraw/svdmrkv1.cxx index cff986f89f18..63f9b5ee57d3 100644 --- a/svx/source/svdraw/svdmrkv1.cxx +++ b/svx/source/svdraw/svdmrkv1.cxx @@ -26,9 +26,9 @@ #include <svx/svdpage.hxx> #include "svddrgm1.hxx" -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Point Selection -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::HasMarkablePoints() const { @@ -258,7 +258,7 @@ sal_Bool SdrMarkView::MarkNextPoint(const Point& /*rPnt*/, sal_Bool /*bPrev*/) ForceUndirtyMrkPnt(); sal_Bool bChgd=sal_False; SortMarkedObjects(); - // ... + if (bChgd) { MarkListHasChanged(); } @@ -282,9 +282,9 @@ void SdrMarkView::SetPlusHandlesAlwaysVisible(bool bOn) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // ImpSetPointsRects() is for PolyPoints and GluePoints! -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::ImpSetPointsRects() const { @@ -312,9 +312,9 @@ void SdrMarkView::ImpSetPointsRects() const ((SdrMarkView*)this)->bMarkedPointsRectsDirty=false; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // UndirtyMrkPnt() is for PolyPoints and GluePoints! -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrMarkView::UndirtyMrkPnt() const { @@ -379,7 +379,7 @@ void SdrMarkView::UndirtyMrkPnt() const ((SdrMarkView*)this)->bMrkPntDirty=false; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrMarkView::HasMarkableGluePoints() const { @@ -585,7 +585,7 @@ sal_Bool SdrMarkView::MarkNextGluePoint(const Point& /*rPnt*/, sal_Bool /*bPrev* ForceUndirtyMrkPnt(); sal_Bool bChgd=sal_False; SortMarkedObjects(); - // ... + if (bChgd) { MarkListHasChanged(); } diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 2bc7f5d55a3b..70ead2ba1c25 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -403,7 +403,7 @@ SdrObject* ImpCreateShadowObjectClone(const SdrObject& rOriginal, const SfxItemS return pRetval; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + Reference< XCustomShapeEngine > SdrObjCustomShape::GetCustomShapeEngine() const { @@ -693,7 +693,7 @@ std::vector< SdrCustomShapeInteraction > SdrObjCustomShape::GetInteractionHandle return xRet; } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section #define DEFAULT_MINIMUM_SIGNED_COMPARE ((sal_Int32)0x80000000) #define DEFAULT_MAXIMUM_SIGNED_COMPARE ((sal_Int32)0x7fffffff) @@ -897,9 +897,9 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue > seqAdjustmentValues; - ////////////////////// - // AdjustmentValues // - ////////////////////// + + // AdjustmentValues + const OUString sAdjustmentValues( "AdjustmentValues" ); const Any* pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sAdjustmentValues ); if ( pAny ) @@ -933,9 +933,9 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aPropVal.Value <<= seqAdjustmentValues; aGeometryItem.SetPropertyValue( aPropVal ); - /////////////// - // Coordsize // - /////////////// + + // Coordsize + const OUString sViewBox( "ViewBox" ); const Any* pViewBox = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sViewBox ); com::sun::star::awt::Rectangle aViewBox; @@ -955,9 +955,9 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) const OUString sPath( "Path" ); - ////////////////////// - // Path/Coordinates // - ////////////////////// + + // Path/Coordinates + const OUString sCoordinates( "Coordinates" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sCoordinates ); if ( !pAny && pDefCustomShape && pDefCustomShape->nVertices && pDefCustomShape->pVertices ) @@ -976,7 +976,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aGeometryItem.SetPropertyValue( sPath, aPropVal ); } - // Path/GluePoints // + // Path/GluePoints const OUString sGluePoints( "GluePoints" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sGluePoints ); if ( !pAny && pDefCustomShape && pDefCustomShape->nGluePoints && pDefCustomShape->pGluePoints ) @@ -994,7 +994,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aGeometryItem.SetPropertyValue( sPath, aPropVal ); } - // Path/Segments // + // Path/Segments const OUString sSegments( "Segments" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sSegments ); if ( !pAny && pDefCustomShape && pDefCustomShape->nElements && pDefCustomShape->pElements ) @@ -1014,7 +1014,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aGeometryItem.SetPropertyValue( sPath, aPropVal ); } - // Path/StretchX // + // Path/StretchX const OUString sStretchX( "StretchX" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sStretchX ); if ( !pAny && pDefCustomShape ) @@ -1028,7 +1028,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } } - // Path/StretchY // + // Path/StretchY const OUString sStretchY( "StretchY" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sStretchY ); if ( !pAny && pDefCustomShape ) @@ -1042,7 +1042,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } } - // Path/TextFrames // + // Path/TextFrames const OUString sTextFrames( "TextFrames" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sTextFrames ); if ( !pAny && pDefCustomShape && pDefCustomShape->nTextRect && pDefCustomShape->pTextRect ) @@ -1064,7 +1064,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aGeometryItem.SetPropertyValue( sPath, aPropVal ); } - // Equations // + // Equations const OUString sEquations( "Equations" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sEquations ); if ( !pAny && pDefCustomShape && pDefCustomShape->nCalculation && pDefCustomShape->pCalculation ) @@ -1081,7 +1081,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) aGeometryItem.SetPropertyValue( aPropVal ); } - // Handles // + // Handles const OUString sHandles( "Handles" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sHandles ); if ( !pAny && pDefCustomShape && pDefCustomShape->nHandles && pDefCustomShape->pHandles ) @@ -1191,7 +1191,7 @@ sal_Bool SdrObjCustomShape::IsDefaultGeometry( const DefaultType eDefaultType ) case DEFAULT_SEGMENTS : { - // Path/Segments // + // Path/Segments const OUString sSegments( "Segments" ); pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sPath, sSegments ); if ( pAny ) @@ -1425,7 +1425,7 @@ sal_uInt16 SdrObjCustomShape::GetObjIdentifier() const return sal_uInt16(OBJ_CUSTOMSHAPE); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObjCustomShape::RecalcSnapRect() { @@ -1717,7 +1717,7 @@ void SdrObjCustomShape::NbcShear( const Point& rRef, long nWink, double tn, bool InvalidateRenderGeometry(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrGluePoint SdrObjCustomShape::GetVertexGluePoint(sal_uInt16 nPosNum) const { @@ -1745,7 +1745,7 @@ SdrGluePoint SdrObjCustomShape::GetVertexGluePoint(sal_uInt16 nPosNum) const return aGP; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i38892# void SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded() @@ -1868,7 +1868,7 @@ SdrGluePointList* SdrObjCustomShape::ForceGluePointList() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_uInt32 SdrObjCustomShape::GetHdlCount() const { @@ -1909,7 +1909,7 @@ SdrHdl* SdrObjCustomShape::GetHdl( sal_uInt32 nHdlNum ) const return pH; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrObjCustomShape::hasSpecialDrag() const { @@ -2130,7 +2130,7 @@ bool SdrObjCustomShape::applySpecialDrag(SdrDragStat& rDrag) return true; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObjCustomShape::DragCreateObject( SdrDragStat& rStat ) { @@ -2225,7 +2225,7 @@ basegfx::B2DPolyPolygon SdrObjCustomShape::TakeCreatePoly(const SdrDragStat& /*r return GetLineGeometry( this, sal_False ); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // in context with the SdrObjCustomShape the SdrTextAutoGrowHeightItem == true -> Resize Shape to fit text, // the SdrTextAutoGrowWidthItem == true -> Word wrap text in Shape diff --git a/svx/source/svdraw/svdoattr.cxx b/svx/source/svdraw/svdoattr.cxx index 535f15d87768..9ebd5409aa3e 100644 --- a/svx/source/svdraw/svdoattr.cxx +++ b/svx/source/svdraw/svdoattr.cxx @@ -72,14 +72,14 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include "svx/xlinjoit.hxx" -////////////////////////////////////////////////////////////////////////////// + sdr::properties::BaseProperties* SdrAttrObj::CreateObjectSpecificProperties() { return new sdr::properties::AttributeProperties(*this); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrAttrObj,SdrObject); @@ -119,7 +119,7 @@ void SdrAttrObj::SetModel(SdrModel* pNewModel) GetProperties().SetModel(pOldModel, pNewModel); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // syntactical sugar for ItemSet accesses void SdrAttrObj::Notify(SfxBroadcaster& /*rBC*/, const SfxHint& rHint) diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 4a0d63c894ef..09d473230a0b 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -129,7 +129,7 @@ using namespace ::com::sun::star; -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT0(SdrObjUserCall); @@ -148,7 +148,7 @@ SdrObjMacroHitRec::SdrObjMacroHitRec() : nTol(0), bDown(false) {} -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT0(SdrObjUserData); @@ -256,7 +256,7 @@ void SdrObjUserDataList::DeleteUserData(size_t nNum) maList.erase(maList.begin()+nNum); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + DBG_NAME(SdrObjGeoData); @@ -278,7 +278,7 @@ SdrObjGeoData::~SdrObjGeoData() delete pGPL; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT0(SdrObjPlusData); @@ -352,7 +352,7 @@ SdrObjTransformInfoRec::SdrObjTransformInfoRec() : bCanConvToPathLineToArea(true), bCanConvToPolyLineToArea(true) {} -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrObject::CreateObjectSpecificProperties() @@ -371,7 +371,7 @@ sdr::properties::BaseProperties& SdrObject::GetProperties() const return *mpProperties; } -////////////////////////////////////////////////////////////////////////////// + // ObjectUser section void SdrObject::AddObjectUser(sdr::ObjectUser& rNewUser) @@ -388,7 +388,7 @@ void SdrObject::RemoveObjectUser(sdr::ObjectUser& rOldUser) } } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrObject::CreateObjectSpecificViewContact() @@ -414,14 +414,14 @@ void SdrObject::ActionChanged() const GetViewContact().ActionChanged(); } -////////////////////////////////////////////////////////////////////////////// + void SdrObject::SetBoundRectDirty() { aOutRect = Rectangle(); } -////////////////////////////////////////////////////////////////////////////// + DBG_NAME(SdrObject); TYPEINIT1(SdrObject,SfxListener); @@ -1395,7 +1395,7 @@ Rectangle SdrObject::ImpDragCalcRect(const SdrDragStat& rDrag) const return aTmpRect; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrObject::hasSpecialDrag() const { @@ -1452,7 +1452,7 @@ basegfx::B2DPolyPolygon SdrObject::getSpecialDragPoly(const SdrDragStat& /*rDrag return basegfx::B2DPolyPolygon(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Create bool SdrObject::BegCreate(SdrDragStat& rStat) { @@ -1992,7 +1992,7 @@ bool SdrObject::IsMacroHit(const SdrObjMacroHitRec& rRec) const return CheckMacroHit(rRec) != NULL; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObjGeoData* SdrObject::NewGeoData() const { @@ -2069,7 +2069,7 @@ void SdrObject::SetGeoData(const SdrObjGeoData& rGeo) SendUserCall(SDRUSERCALL_RESIZE,aBoundRect0); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // ItemSet access const SfxItemSet& SdrObject::GetObjectItemSet() const @@ -2383,7 +2383,7 @@ void SdrObject::NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, sal_Bool bDontRe } // Broadcasting while setting attributes is managed by the AttrObj. -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrObject::IsNode() const { @@ -2501,7 +2501,7 @@ SdrObject* SdrObject::GetConnectedNode(bool /*bTail1*/) const return NULL; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void extractLineContourFromPrimitive2DSequence( const drawinglayer::primitive2d::Primitive2DSequence& rxSequence, @@ -2528,7 +2528,7 @@ void extractLineContourFromPrimitive2DSequence( } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrObject::ImpConvertToContourObj(SdrObject* pRet, bool bForceLineDash) const { @@ -2824,7 +2824,7 @@ SdrObject* SdrObject::ConvertToContourObj(SdrObject* pRet, bool bForceLineDash) return pRet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrObject::ConvertToPolyObj(bool bBezier, bool bLineToArea) const { @@ -2846,14 +2846,14 @@ SdrObject* SdrObject::ConvertToPolyObj(bool bBezier, bool bLineToArea) const return pRet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrObject::DoConvertToPolyObj(sal_Bool /*bBezier*/, bool /*bAddText*/) const { return NULL; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrObject::SetInserted(bool bIns) { @@ -2921,7 +2921,7 @@ void SdrObject::SetVisible(bool bVisible) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_uInt16 SdrObject::GetUserDataCount() const { @@ -3171,14 +3171,14 @@ void SdrObject::notifyShapePropertyChange( const ::svx::ShapeProperty _eProperty return pSvxShape->getShapePropertyChangeNotifier().notifyPropertyChange( _eProperty ); } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// + + // transformation interface for StarOfficeAPI. This implements support for // homogeneous 3x3 matrices containing the transformation of the SdrObject. At the // moment it contains a shearX, rotation and translation, but for setting all linear // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported. -// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon // with the base geometry and returns TRUE. Otherwise it returns FALSE. sal_Bool SdrObject::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& /*rPolyPolygon*/) const diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx index d02856bbd9cd..3a91a5630981 100644 --- a/svx/source/svdraw/svdocapt.cxx +++ b/svx/source/svdraw/svdocapt.cxx @@ -56,7 +56,7 @@ #include <svx/xpoly.hxx> #include <svx/xpool.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + enum EscDir {LKS,RTS,OBN,UNT}; @@ -171,7 +171,7 @@ void ImpCaptParams::CalcEscPos(const Point& rTailPt, const Rectangle& rRect, Poi rDir=eBestDir; } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrCaptionObj::CreateObjectSpecificProperties() @@ -179,7 +179,7 @@ sdr::properties::BaseProperties* SdrCaptionObj::CreateObjectSpecificProperties() return new sdr::properties::CaptionProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrCaptionObj::CreateObjectSpecificViewContact() @@ -187,7 +187,7 @@ sdr::contact::ViewContact* SdrCaptionObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfSdrCaptionObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrCaptionObj,SdrRectObj); @@ -303,7 +303,7 @@ SdrHdl* SdrCaptionObj::GetHdl(sal_uInt32 nHdlNum) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrCaptionObj::hasSpecialDrag() const { @@ -415,7 +415,7 @@ OUString SdrCaptionObj::getSpecialDragComment(const SdrDragStat& rDrag) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrCaptionObj::ImpGetCaptParams(ImpCaptParams& rPara) const { diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx index d52714617bb1..21d47318ab62 100644 --- a/svx/source/svdraw/svdocirc.cxx +++ b/svx/source/svdraw/svdocirc.cxx @@ -50,7 +50,7 @@ #include <svx/xlnwtit.hxx> #include <svx/xpool.hxx> -////////////////////////////////////////////////////////////////////////////// + Point GetWinkPnt(const Rectangle& rR, long nWink) { @@ -88,7 +88,7 @@ Point GetWinkPnt(const Rectangle& rR, long nWink) return aRetval; } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrCircObj::CreateObjectSpecificProperties() @@ -96,7 +96,7 @@ sdr::properties::BaseProperties* SdrCircObj::CreateObjectSpecificProperties() return new sdr::properties::CircleProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrCircObj::CreateObjectSpecificViewContact() @@ -104,7 +104,7 @@ sdr::contact::ViewContact* SdrCircObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfSdrCircObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrCircObj,SdrRectObj); @@ -469,7 +469,7 @@ SdrHdl* SdrCircObj::GetHdl(sal_uInt32 nHdlNum) const return pH; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrCircObj::hasSpecialDrag() const { @@ -615,7 +615,7 @@ OUString SdrCircObj::getSpecialDragComment(const SdrDragStat& rDrag) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void ImpCircUser::SetCreateParams(SdrDragStat& rStat) { @@ -1067,7 +1067,7 @@ void SdrCircObj::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) ImpSetAttrToCircInfo(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrCircObj::ImpSetAttrToCircInfo() { diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 29801861f98d..bce9fed9fcd8 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -48,7 +48,7 @@ #include <svx/xpoly.hxx> #include <svx/xpool.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObjConnection::~SdrObjConnection() { @@ -147,7 +147,7 @@ long SdrEdgeInfoRec::ImpGetLineVersatz(SdrEdgeLineCode eLineCode, const XPolygon else return rPt.X(); } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrEdgeObj::CreateObjectSpecificProperties() @@ -155,7 +155,7 @@ sdr::properties::BaseProperties* SdrEdgeObj::CreateObjectSpecificProperties() return new sdr::properties::ConnectorProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrEdgeObj::CreateObjectSpecificViewContact() @@ -163,7 +163,7 @@ sdr::contact::ViewContact* SdrEdgeObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfSdrEdgeObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrEdgeObj,SdrTextObj); @@ -1292,7 +1292,7 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const Point& rPt1, long nAngle1, const Rec else cForm='C'; } } else cForm='4'; // else is case 3 with 5 lines - } else cForm='?'; // + } else cForm='?'; // more shapes: if (bInfo) { pInfo->cOrthoForm=cForm; @@ -1810,7 +1810,7 @@ SdrHdl* SdrEdgeObj::GetHdl(sal_uInt32 nHdlNum) const return pHdl; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrEdgeObj::hasSpecialDrag() const { @@ -1961,7 +1961,7 @@ OUString SdrEdgeObj::getSpecialDragComment(const SdrDragStat& rDrag) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const { diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index bc942710f733..403e57d8c1da 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -271,7 +271,7 @@ sdr::properties::BaseProperties* SdrGrafObj::CreateObjectSpecificProperties() return new sdr::properties::GraphicProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrGrafObj::CreateObjectSpecificViewContact() @@ -279,7 +279,7 @@ sdr::contact::ViewContact* SdrGrafObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfGraphic(*this); } -////////////////////////////////////////////////////////////////////////////// + // check if SVG and if try to get ObjectInfoPrimitive2D and extract info void SdrGrafObj::onGraphicChanged() diff --git a/svx/source/svdraw/svdogrp.cxx b/svx/source/svdraw/svdogrp.cxx index 6453cb9a6ef8..59255e269d05 100644 --- a/svx/source/svdraw/svdogrp.cxx +++ b/svx/source/svdraw/svdogrp.cxx @@ -49,7 +49,7 @@ #include <basegfx/polygon/b2dpolygontools.hxx> #include <basegfx/polygon/b2dpolygon.hxx> -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrObjGroup::CreateObjectSpecificProperties() @@ -57,7 +57,7 @@ sdr::properties::BaseProperties* SdrObjGroup::CreateObjectSpecificProperties() return new sdr::properties::GroupProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrObjGroup::CreateObjectSpecificViewContact() @@ -65,7 +65,7 @@ sdr::contact::ViewContact* SdrObjGroup::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfGroup(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrObjGroup,SdrObject); diff --git a/svx/source/svdraw/svdomeas.cxx b/svx/source/svdraw/svdomeas.cxx index d58f5936b517..5f31c1897b28 100644 --- a/svx/source/svdraw/svdomeas.cxx +++ b/svx/source/svdraw/svdomeas.cxx @@ -72,7 +72,7 @@ #include <svx/xpoly.hxx> #include <unotools/syslocale.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrMeasureObjGeoData::SdrMeasureObjGeoData() {} SdrMeasureObjGeoData::~SdrMeasureObjGeoData() {} @@ -195,7 +195,7 @@ OUString SdrMeasureObj::TakeRepresentation(SdrMeasureFieldKind eMeasureFieldKind return aStr; } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrMeasureObj::CreateObjectSpecificProperties() @@ -203,7 +203,7 @@ sdr::properties::BaseProperties* SdrMeasureObj::CreateObjectSpecificProperties() return new sdr::properties::MeasureProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrMeasureObj::CreateObjectSpecificViewContact() @@ -211,7 +211,7 @@ sdr::contact::ViewContact* SdrMeasureObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfSdrMeasureObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrMeasureObj,SdrTextObj); @@ -799,7 +799,7 @@ SdrHdl* SdrMeasureObj::GetHdl(sal_uInt32 nHdlNum) const return pHdl; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrMeasureObj::hasSpecialDrag() const { @@ -970,7 +970,7 @@ void SdrMeasureObj::ImpEvalDrag(ImpMeasureRec& rRec, const SdrDragStat& rDrag) c } // switch } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrMeasureObj::BegCreate(SdrDragStat& rStat) { @@ -1376,7 +1376,7 @@ sal_uInt16 SdrMeasureObj::GetOutlinerViewAnchorMode() const return (sal_uInt16)eRet; } -////////////////////////////////////////////////////////////////////////////// + // #i97878# // TRGetBaseGeometry/TRSetBaseGeometry needs to be based on two positions, // same as line geometry in SdrPathObj. Thus needs to be overloaded and diff --git a/svx/source/svdraw/svdomedia.cxx b/svx/source/svdraw/svdomedia.cxx index fd6cd89d9b10..24199a9929a1 100644 --- a/svx/source/svdraw/svdomedia.cxx +++ b/svx/source/svdraw/svdomedia.cxx @@ -42,9 +42,9 @@ using namespace ::com::sun::star; -// --------------- + // - SdrMediaObj - -// --------------- + // Note: the temp file is read only, until it is deleted! // It may be shared between multiple documents in case of copy/paste, @@ -68,7 +68,7 @@ struct SdrMediaObj::Impl TYPEINIT1( SdrMediaObj, SdrRectObj ); -// ------------------------------------------------------------------------------ + SdrMediaObj::SdrMediaObj() : SdrRectObj() @@ -76,7 +76,7 @@ SdrMediaObj::SdrMediaObj() { } -// ------------------------------------------------------------------------------ + SdrMediaObj::SdrMediaObj( const Rectangle& rRect ) : SdrRectObj( rRect ) @@ -84,27 +84,27 @@ SdrMediaObj::SdrMediaObj( const Rectangle& rRect ) { } -// ------------------------------------------------------------------------------ + SdrMediaObj::~SdrMediaObj() { } -// ------------------------------------------------------------------------------ + bool SdrMediaObj::HasTextEdit() const { return false; } -// ------------------------------------------------------------------------------ + sdr::contact::ViewContact* SdrMediaObj::CreateObjectSpecificViewContact() { return new ::sdr::contact::ViewContactOfSdrMediaObj( *this ); } -// ------------------------------------------------------------------------------ + void SdrMediaObj::TakeObjInfo( SdrObjTransformInfoRec& rInfo ) const { @@ -130,14 +130,14 @@ void SdrMediaObj::TakeObjInfo( SdrObjTransformInfoRec& rInfo ) const rInfo.bCanConvToPolyLineToArea = false; } -// ------------------------------------------------------------------------------ + sal_uInt16 SdrMediaObj::GetObjIdentifier() const { return sal_uInt16( OBJ_MEDIA ); } -// ------------------------------------------------------------------------------ + OUString SdrMediaObj::TakeObjNameSingul() const { @@ -156,14 +156,14 @@ OUString SdrMediaObj::TakeObjNameSingul() const return sName.makeStringAndClear(); } -// ------------------------------------------------------------------------------ + OUString SdrMediaObj::TakeObjNamePlural() const { return ImpGetResStr(STR_ObjNamePluralMEDIA); } -// ------------------------------------------------------------------------------ + SdrMediaObj* SdrMediaObj::Clone() const { @@ -194,7 +194,7 @@ uno::Reference< graphic::XGraphic > SdrMediaObj::getSnapshot() return m_pImpl->m_xCachedSnapshot; } -// ------------------------------------------------------------------------------ + void SdrMediaObj::AdjustToMaxRect( const Rectangle& rMaxRect, bool bShrinkOnly /* = false */ ) { @@ -240,7 +240,7 @@ void SdrMediaObj::AdjustToMaxRect( const Rectangle& rMaxRect, bool bShrinkOnly / } } -// ------------------------------------------------------------------------------ + void SdrMediaObj::setURL( const OUString& rURL, const OUString& rReferer ) { @@ -250,14 +250,14 @@ void SdrMediaObj::setURL( const OUString& rURL, const OUString& rReferer ) setMediaProperties( aURLItem ); } -// ------------------------------------------------------------------------------ + const OUString& SdrMediaObj::getURL() const { return m_pImpl->m_MediaProperties.getURL(); } -// ------------------------------------------------------------------------------ + void SdrMediaObj::setMediaProperties( const ::avmedia::MediaItem& rState ) { @@ -265,21 +265,21 @@ void SdrMediaObj::setMediaProperties( const ::avmedia::MediaItem& rState ) static_cast< ::sdr::contact::ViewContactOfSdrMediaObj& >( GetViewContact() ).executeMediaItem( getMediaProperties() ); } -// ------------------------------------------------------------------------------ + const ::avmedia::MediaItem& SdrMediaObj::getMediaProperties() const { return m_pImpl->m_MediaProperties; } -// ------------------------------------------------------------------------------ + Size SdrMediaObj::getPreferredSize() const { return static_cast< ::sdr::contact::ViewContactOfSdrMediaObj& >( GetViewContact() ).getPreferredSize(); } -// ------------------------------------------------------------------------------ + uno::Reference<io::XInputStream> SdrMediaObj::GetInputStream() { diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index a93152a9a611..e5df7443b781 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -591,7 +591,7 @@ void SdrLightEmbeddedClient_Impl::setWindow(const uno::Reference< awt::XWindow > m_xWindow = _xWindow; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + class SdrEmbedObjectLink : public sfx2::SvBaseLink { @@ -668,7 +668,7 @@ void SdrEmbedObjectLink::Closed() SvBaseLink::Closed(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + class SdrOle2ObjImpl { @@ -696,7 +696,7 @@ public: } }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Predicate determining whether the given OLE is an internal math // object @@ -720,7 +720,7 @@ static bool ImplIsMathObj( const uno::Reference < embed::XEmbeddedObject >& rObj } } -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrOle2Obj::CreateObjectSpecificProperties() @@ -728,7 +728,7 @@ sdr::properties::BaseProperties* SdrOle2Obj::CreateObjectSpecificProperties() return new sdr::properties::OleProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrOle2Obj::CreateObjectSpecificViewContact() @@ -2217,14 +2217,14 @@ sal_Bool SdrOle2Obj::AddOwnLightClient() return sal_True; } -////////////////////////////////////////////////////////////////////////////// + Graphic SdrOle2Obj::GetEmptyOLEReplacementGraphic() { return Graphic(BitmapEx(ResId(BMP_SVXOLEOBJ, *ImpGetResMgr()))); } -////////////////////////////////////////////////////////////////////////////// + void SdrOle2Obj::SetWindow(const com::sun::star::uno::Reference < com::sun::star::awt::XWindow >& _xWindow) { diff --git a/svx/source/svdraw/svdopage.cxx b/svx/source/svdraw/svdopage.cxx index fb141c6551e6..dfa4ca4e12e2 100644 --- a/svx/source/svdraw/svdopage.cxx +++ b/svx/source/svdraw/svdopage.cxx @@ -32,7 +32,7 @@ #include <svx/sdr/properties/pageproperties.hxx> #include <svx/sdr/contact/viewcontactofpageobj.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrPageObj::CreateObjectSpecificProperties() @@ -40,7 +40,7 @@ sdr::properties::BaseProperties* SdrPageObj::CreateObjectSpecificProperties() return new sdr::properties::PageProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrPageObj::CreateObjectSpecificViewContact() @@ -48,7 +48,7 @@ sdr::contact::ViewContact* SdrPageObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfPageObj(*this); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // this method is called form the destructor of the referenced page. // do all necessary action to forget the page. It is not necessary to call // RemovePageUser(), that is done form the destructor. @@ -64,7 +64,7 @@ void SdrPageObj::PageInDestruction(const SdrPage& rPage) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrPageObj,SdrObject); diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index ad7816ed6e2e..6ff84ff1c738 100644 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -1768,7 +1768,7 @@ void SdrPathObj::ImpForceKind() else { // #i10659#, for polys with more than 2 points. - // + // Here i again need to fix something, because when Path-Polys are Copy-Pasted // between Apps with different measurements (e.g. 100TH_MM and TWIPS) there is // a scaling loop started from SdrExchangeView::Paste. In itself, this is not @@ -1777,7 +1777,7 @@ void SdrPathObj::ImpForceKind() // through Rect2Poly - Poly2Rect does something badly wrong since that cycle is // BASED on aRect. That cycle is triggered in SdrTextObj::NbcResize() which is called // from the local Resize() implementation. - // + // Basic problem is that the member aRect in SdrTextObj basically is a unrotated // text rectangle for the text object itself and methods at SdrTextObj do handle it // in that way. Many draw objects derived from SdrTextObj 'abuse' aRect as SnapRect @@ -2864,14 +2864,14 @@ void SdrPathObj::impDeleteDAC() const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// + + // transformation interface for StarOfficeAPI. This implements support for // homogeneous 3x3 matrices containing the transformation of the SdrObject. At the // moment it contains a shearX, rotation and translation, but for setting all linear // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported. -// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon // with the base geometry and returns TRUE. Otherwise it returns FALSE. sal_Bool SdrPathObj::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx index 937c35d51c07..09ff4b176cb5 100644 --- a/svx/source/svdraw/svdorect.cxx +++ b/svx/source/svdraw/svdorect.cxx @@ -44,7 +44,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrRectObj::CreateObjectSpecificProperties() @@ -52,7 +52,7 @@ sdr::properties::BaseProperties* SdrRectObj::CreateObjectSpecificProperties() return new sdr::properties::RectangleProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrRectObj::CreateObjectSpecificViewContact() @@ -60,7 +60,7 @@ sdr::contact::ViewContact* SdrRectObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfSdrRectObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrRectObj,SdrTextObj); @@ -377,7 +377,7 @@ SdrHdl* SdrRectObj::GetHdl(sal_uInt32 nHdlNum) const return pH; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrRectObj::hasSpecialDrag() const { @@ -468,7 +468,7 @@ OUString SdrRectObj::getSpecialDragComment(const SdrDragStat& rDrag) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + basegfx::B2DPolyPolygon SdrRectObj::TakeCreatePoly(const SdrDragStat& rDrag) const { diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 59861fd8c16c..01f63c1c4899 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -60,11 +60,11 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include "svdconv.hxx" -////////////////////////////////////////////////////////////////////////////// + using namespace com::sun::star; -////////////////////////////////////////////////////////////////////////////// + // BaseProperties section sdr::properties::BaseProperties* SdrTextObj::CreateObjectSpecificProperties() @@ -72,7 +72,7 @@ sdr::properties::BaseProperties* SdrTextObj::CreateObjectSpecificProperties() return new sdr::properties::TextProperties(*this); } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrTextObj::CreateObjectSpecificViewContact() @@ -80,7 +80,7 @@ sdr::contact::ViewContact* SdrTextObj::CreateObjectSpecificViewContact() return new sdr::contact::ViewContactOfTextObj(*this); } -////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrTextObj,SdrAttrObj); @@ -1349,7 +1349,7 @@ void SdrTextObj::UpdateOutlinerFormatting( SdrOutliner& rOutl, Rectangle& rPaint ImpSetupDrawOutlinerForPaint( bContourFrame, rOutl, aTextRect, aAnchorRect, rPaintRect, aFitXKorreg ); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OutlinerParaObject* SdrTextObj::GetOutlinerParaObject() const { @@ -1568,14 +1568,14 @@ void SdrTextObj::SetVerticalWriting(sal_Bool bVertical) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// + + // transformation interface for StarOfficeAPI. This implements support for // homogeneous 3x3 matrices containing the transformation of the SdrObject. At the // moment it contains a shearX, rotation and translation, but for setting all linear // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported. -// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon // with the base geometry and returns TRUE. Otherwise it returns FALSE. sal_Bool SdrTextObj::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& /*rPolyPolygon*/) const @@ -1736,7 +1736,7 @@ bool SdrTextObj::IsRealyEdited() const return pEdtOutl && pEdtOutl->IsModified(); } -///////////////////////////////////////////////////////////////////////////////////////////////// + // moved inlines here form hxx long SdrTextObj::GetEckenradius() const @@ -1960,8 +1960,8 @@ void SdrTextObj::SetObjectItemNoBroadcast(const SfxPoolItem& rItem) static_cast< sdr::properties::TextProperties& >(GetProperties()).SetObjectItemNoBroadcast(rItem); } -///////////////////////////////////////////////////////////////////////////////////////////////// -// + + // The concept of the text object: // ~~~~~~~~~~~~~~~~~~~~~~~~ // Attributes/Variations: @@ -1976,17 +1976,17 @@ void SdrTextObj::SetObjectItemNoBroadcast(const SfxPoolItem& rItem) // - enum horizontal text anchoring left,center,right,justify/block,Stretch(ni) // - enum vertical text anchoring top, middle, bottom, block, stretch(ni) // - enum ticker text (if it is not FontWork) -// + // Every derived object is either a text frame (bTextFrame=sal_True) // or a drawing object with a caption (bTextFrame=sal_False). -// + // Default anchoring for text frames: // SDRTEXTHORZADJUST_BLOCK, SDRTEXTVERTADJUST_TOP // = static Pool defaults // Default anchoring for drawing objects with a caption: // SDRTEXTHORZADJUST_CENTER, SDRTEXTVERTADJUST_CENTER // via "hard" attribution of SdrAttrObj -// + // Every object derived from SdrTextObj must return an "UnrotatedSnapRect" // (->TakeUnrotatedSnapRect()) (the reference point for the rotation is the top // left of the rectangle (aGeo.nDrehWink)) which is the basis for anchoring @@ -1999,11 +1999,11 @@ void SdrTextObj::SetObjectItemNoBroadcast(const SfxPoolItem& rItem) // be larger than the anchoring area, for text frames on the other hand, it is // always of the same or a smaller size (except when there are negative text // frame margins). -// + // FitToSize takes priority over text anchoring and AutoGrowHeight/Width. When // FitToSize is turned on, the painting area is always equal to the anchoring // area. Additionally, FitToSize doesn't allow automatic line breaks. -// + // ContourTextFrame: // - long rotation angle // - long text frame margins (maybe later) @@ -2013,7 +2013,7 @@ void SdrTextObj::SetObjectItemNoBroadcast(const SfxPoolItem& rItem) // - enum horizontal text anchoring (maybe later, for now: left, centered) // - enum vertical text anchoring (maybe later, for now: top) // - enum ticker text (maybe later, maybe even with correct clipping) -// + // When making changes, check these: // - Paint // - HitTest @@ -2023,7 +2023,7 @@ void SdrTextObj::SetObjectItemNoBroadcast(const SfxPoolItem& rItem) // - ModelChanged (e. g. through a neighboring View or rulers) while editing // - FillColorChanged while editin // - and many more... -// -///////////////////////////////////////////////////////////////////////////////////////////////// + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index 3ca4219f406a..417cacca12ea 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -50,7 +50,7 @@ #include <editeng/outlobj.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -////////////////////////////////////////////////////////////////////////////// + // helpers namespace @@ -669,7 +669,7 @@ namespace } } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // primitive decompositions void SdrTextObj::impDecomposeContourTextPrimitive( @@ -1176,7 +1176,7 @@ void SdrTextObj::impDecomposeStretchTextPrimitive( rTarget = aConverter.getPrimitive2DSequence(); } -////////////////////////////////////////////////////////////////////////////// + // timing generators #define ENDLESS_LOOP (0xffffffff) #define ENDLESS_TIME ((double)0xffffffff) diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index fbbbba71744d..42657e0385a9 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -40,7 +40,7 @@ #include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <basegfx/color/bcolor.hxx> -////////////////////////////////////////////////////////////////////////////// + // primitive decomposition helpers #include <basegfx/polygon/b2dlinegeometry.hxx> @@ -57,13 +57,13 @@ #include <drawinglayer/geometry/viewinformation2d.hxx> #include <svx/sdr/attribute/sdrformtextoutlineattribute.hxx> -////////////////////////////////////////////////////////////////////////////// + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::i18n; -////////////////////////////////////////////////////////////////////////////// + // PathTextPortion helper namespace @@ -161,7 +161,7 @@ namespace }; } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // TextBreakup helper namespace @@ -202,7 +202,7 @@ namespace } } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // TextBreakup one poly and one paragraph helper namespace @@ -560,7 +560,7 @@ namespace }; } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // primitive decomposition helpers namespace @@ -667,7 +667,7 @@ namespace } } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // primitive decomposition void SdrTextObj::impDecomposePathTextPrimitive( diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx index 40bd221f1332..7e81766c2e90 100644 --- a/svx/source/svdraw/svdotxdr.cxx +++ b/svx/source/svdraw/svdotxdr.cxx @@ -62,7 +62,7 @@ SdrHdl* SdrTextObj::GetHdl(sal_uInt32 nHdlNum) const return pH; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrTextObj::hasSpecialDrag() const { @@ -82,7 +82,7 @@ Rectangle SdrTextObj::ImpDragCalcRect(const SdrDragStat& rDrag) const if (aGeo.nDrehWink!=0) RotatePoint(aPos,aTmpRect.TopLeft(),-aGeo.nSin,aGeo.nCos); // Unshear: if (aGeo.nShearWink!=0) ShearPoint(aPos,aTmpRect.TopLeft(),-aGeo.nTan); - // + bool bLft=(eHdl==HDL_UPLFT || eHdl==HDL_LEFT || eHdl==HDL_LWLFT); bool bRgt=(eHdl==HDL_UPRGT || eHdl==HDL_RIGHT || eHdl==HDL_LWRGT); bool bTop=(eHdl==HDL_UPRGT || eHdl==HDL_UPPER || eHdl==HDL_UPLFT); @@ -143,7 +143,7 @@ Rectangle SdrTextObj::ImpDragCalcRect(const SdrDragStat& rDrag) const return aTmpRect; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // drag bool SdrTextObj::applySpecialDrag(SdrDragStat& rDrag) @@ -178,7 +178,7 @@ OUString SdrTextObj::getSpecialDragComment(const SdrDragStat& /*rDrag*/) const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Create bool SdrTextObj::BegCreate(SdrDragStat& rStat) diff --git a/svx/source/svdraw/svdotxtr.cxx b/svx/source/svdraw/svdotxtr.cxx index 34170cf86cee..5da632bcce9f 100644 --- a/svx/source/svdraw/svdotxtr.cxx +++ b/svx/source/svdraw/svdotxtr.cxx @@ -295,7 +295,7 @@ void SdrTextObj::NbcMirror(const Point& rRef1, const Point& rRef2) SetGlueReallyAbsolute(false); } -////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrTextObj::ImpConvertContainedTextToSdrPathObjs(bool bToPoly) const { @@ -418,7 +418,7 @@ SdrObject* SdrTextObj::ImpConvertContainedTextToSdrPathObjs(bool bToPoly) const return pRetval; } -////////////////////////////////////////////////////////////////////////////// + SdrObject* SdrTextObj::DoConvertToPolyObj(sal_Bool bBezier, bool bAddText) const { diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx index 202c79199024..10f643ab2b69 100644 --- a/svx/source/svdraw/svdouno.cxx +++ b/svx/source/svdraw/svdouno.cxx @@ -54,18 +54,18 @@ using namespace ::com::sun::star; using namespace ::sdr::contact; -//************************************************************ + // Defines -//************************************************************ -//************************************************************ + + // Helper class SdrControlEventListenerImpl -//************************************************************ + #include <com/sun/star/lang/XEventListener.hpp> #include <cppuhelper/implbase1.hxx> -// ============================================================================= + class SdrControlEventListenerImpl : public ::cppu::WeakImplHelper1< ::com::sun::star::lang::XEventListener > { protected: @@ -105,14 +105,14 @@ void SdrControlEventListenerImpl::StartListening(const uno::Reference< lang::XCo xComp->addEventListener(this); } -// ============================================================================= + struct SdrUnoObjDataHolder { mutable ::rtl::Reference< SdrControlEventListenerImpl > pEventListener; }; -// ============================================================================= + namespace { void lcl_ensureControlVisibility( SdrView* _pView, const SdrUnoObj* _pObject, bool _bVisible ) @@ -148,9 +148,9 @@ namespace } } -//************************************************************ + // SdrUnoObj -//************************************************************ + TYPEINIT1(SdrUnoObj, SdrRectObj); @@ -346,7 +346,7 @@ void SdrUnoObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fracti } } -// ----------------------------------------------------------------------------- + bool SdrUnoObj::hasSpecialDrag() const { @@ -386,7 +386,7 @@ SdrObject* SdrUnoObj::getFullDragClone() const return pRetval; } -// ----------------------------------------------------------------------------- + void SdrUnoObj::NbcSetLayer( SdrLayerID _nLayer ) { if ( GetLayer() == _nLayer ) diff --git a/svx/source/svdraw/svdovirt.cxx b/svx/source/svdraw/svdovirt.cxx index 658c223bb48f..3f383ae4c153 100644 --- a/svx/source/svdraw/svdovirt.cxx +++ b/svx/source/svdraw/svdovirt.cxx @@ -29,21 +29,21 @@ #include <svx/svddrgv.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + sdr::properties::BaseProperties& SdrVirtObj::GetProperties() const { return rRefObj.GetProperties(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i27224# sdr::contact::ViewContact* SdrVirtObj::CreateObjectSpecificViewContact() { return new sdr::contact::ViewContactOfVirtObj(*this); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrVirtObj,SdrObject); @@ -60,7 +60,7 @@ SdrVirtObj::~SdrVirtObj() rRefObj.DelReference(*this); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + const SdrObject& SdrVirtObj::GetReferencedObj() const { @@ -86,7 +86,7 @@ void SdrVirtObj::NbcSetAnchorPos(const Point& rAnchorPos) aAnchor=rAnchorPos; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrVirtObj::SetModel(SdrModel* pNewModel) { @@ -203,7 +203,7 @@ basegfx::B2DPolyPolygon SdrVirtObj::TakeXorPoly() const return aPolyPolygon; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_uInt32 SdrVirtObj::GetHdlCount() const { @@ -273,7 +273,7 @@ void SdrVirtObj::AddToHdlList(SdrHdlList& rHdlList) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrVirtObj::hasSpecialDrag() const { @@ -328,7 +328,7 @@ OUString SdrVirtObj::getSpecialDragComment(const SdrDragStat& rDrag) const return rRefObj.getSpecialDragComment(rDrag); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrVirtObj::BegCreate(SdrDragStat& rStat) { @@ -361,7 +361,7 @@ basegfx::B2DPolyPolygon SdrVirtObj::TakeCreatePoly(const SdrDragStat& rDrag) con // TODO: we don't handle offsets yet! } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrVirtObj::NbcMove(const Size& rSiz) { @@ -393,7 +393,7 @@ void SdrVirtObj::NbcShear(const Point& rRef, long nWink, double tn, bool bVShear SetRectsDirty(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrVirtObj::Move(const Size& rSiz) { @@ -444,7 +444,7 @@ void SdrVirtObj::Shear(const Point& rRef, long nWink, double tn, bool bVShear) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrVirtObj::RecalcSnapRect() { @@ -479,7 +479,7 @@ void SdrVirtObj::NbcSetSnapRect(const Rectangle& rRect) rRefObj.NbcSetSnapRect(aR); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + const Rectangle& SdrVirtObj::GetLogicRect() const { @@ -506,7 +506,7 @@ void SdrVirtObj::NbcSetLogicRect(const Rectangle& rRect) rRefObj.NbcSetLogicRect(aR); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + long SdrVirtObj::GetRotateAngle() const { @@ -518,7 +518,7 @@ long SdrVirtObj::GetShearAngle(bool bVertical) const return rRefObj.GetShearAngle(bVertical); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_uInt32 SdrVirtObj::GetSnapPointCount() const { @@ -555,7 +555,7 @@ void SdrVirtObj::NbcSetPoint(const Point& rPnt, sal_uInt32 i) SetRectsDirty(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObjGeoData* SdrVirtObj::NewGeoData() const { @@ -573,7 +573,7 @@ void SdrVirtObj::RestGeoData(const SdrObjGeoData& rGeo) SetRectsDirty(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrObjGeoData* SdrVirtObj::GetGeoData() const { @@ -588,7 +588,7 @@ void SdrVirtObj::SetGeoData(const SdrObjGeoData& rGeo) SendUserCall(SDRUSERCALL_RESIZE,aBoundRect0); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrVirtObj::NbcReformatText() { @@ -600,7 +600,7 @@ void SdrVirtObj::ReformatText() rRefObj.ReformatText(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + bool SdrVirtObj::HasMacro() const { diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 2bb7ca0a0653..bdf8b0c668b9 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -1070,7 +1070,7 @@ void SdrObjList::RemoveObjectFromContainer ( -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPageGridFrameList::Clear() { @@ -1081,7 +1081,7 @@ void SdrPageGridFrameList::Clear() aList.clear(); } -////////////////////////////////////////////////////////////////////////////// + // PageUser section void SdrPage::AddPageUser(sdr::PageUser& rNewUser) @@ -1098,7 +1098,7 @@ void SdrPage::RemovePageUser(sdr::PageUser& rOldUser) } } -////////////////////////////////////////////////////////////////////////////// + // DrawContact section sdr::contact::ViewContact* SdrPage::CreateObjectSpecificViewContact() @@ -1117,7 +1117,7 @@ sdr::contact::ViewContact& SdrPage::GetViewContact() const return *mpViewContact; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPageProperties::ImpRemoveStyleSheet() { @@ -1245,7 +1245,7 @@ SfxStyleSheet* SdrPageProperties::GetStyleSheet() const return mpStyleSheet; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrPage,SdrObjList); DBG_NAME(SdrPage) @@ -1643,7 +1643,7 @@ void SdrPage::SetModel(SdrModel* pNewModel) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i68775# React on PageNum changes (from Model in most cases) void SdrPage::SetPageNum(sal_uInt16 nNew) @@ -1685,7 +1685,7 @@ void SdrPage::SetChanged() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // MasterPage interface void SdrPage::TRG_SetMasterPage(SdrPage& rNew) @@ -1876,7 +1876,7 @@ void SdrPage::ActionChanged() const } } -////////////////////////////////////////////////////////////////////////////// + // sdr::Comment interface const SdrPageProperties* SdrPage::getCorrectSdrPageProperties() const @@ -1891,7 +1891,7 @@ const SdrPageProperties* SdrPage::getCorrectSdrPageProperties() const } } -////////////////////////////////////////////////////////////////////////////// + // use new redirector instead of pPaintProc StandardCheckVisisbilityRedirector::StandardCheckVisisbilityRedirector() diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx index a24725875f77..cad1c672886a 100644 --- a/svx/source/svdraw/svdpagv.cxx +++ b/svx/source/svdraw/svdpagv.cxx @@ -50,7 +50,7 @@ using namespace ::com::sun::star; DBG_NAME(SdrPageView); -//////////////////////////////////////////////////////////////////////////////////////////////////// + // interface to SdrPageWindow SdrPageWindow* SdrPageView::FindPageWindow(SdrPaintWindow& rPaintWindow) const @@ -137,7 +137,7 @@ SdrPageWindow* SdrPageView::RemovePageWindow(SdrPageWindow& rOld) return 0L; } -////////////////////////////////////////////////////////////////////////////// + SdrPageView::SdrPageView(SdrPage* pPage1, SdrView& rNewView) : mrView(rNewView), @@ -269,7 +269,7 @@ void SdrPageView::InvalidateAllWin() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPageView::PrePaint() { @@ -313,7 +313,7 @@ void SdrPageView::CompleteRedraw(SdrPaintWindow& rPaintWindow, const Region& rRe } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i74769# use SdrPaintWindow directly void SdrPageView::setPreparedPageWindow(SdrPageWindow* pKnownTarget) @@ -419,7 +419,7 @@ void SdrPageView::SetDesignMode( bool _bDesignMode ) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, Color aColor) { diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index 0a40eba5675c..51ce7be3fd6d 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -62,7 +62,7 @@ using namespace ::rtl; using namespace ::com::sun::star; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // interface to SdrPaintWindow SdrPaintWindow* SdrPaintView::FindPaintWindow(const OutputDevice& rOut) const @@ -118,7 +118,7 @@ OutputDevice* SdrPaintView::GetFirstOutputDevice() const return 0L; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1( SvxViewHint, SfxHint ); @@ -133,7 +133,7 @@ SvxViewHint::HintType SvxViewHint::GetHintType (void) const } -//////////////////////////////////////////////////////////////////////////////////////////////////// + BitmapEx convertMetafileToBitmapEx( const GDIMetaFile& rMtf, @@ -159,7 +159,7 @@ BitmapEx convertMetafileToBitmapEx( return aBitmapEx; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT2(SdrPaintView,SfxListener,SfxRepeatTarget); @@ -258,7 +258,7 @@ SdrPaintView::~SdrPaintView() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPaintView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) { @@ -302,7 +302,7 @@ void SdrPaintView::ConfigurationChanged( ::utl::ConfigurationBroadcaster* , sal_ InvalidateAllWin(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + IMPL_LINK_NOARG_INLINE_START(SdrPaintView, ImpComeBackHdl) { @@ -345,7 +345,7 @@ void SdrPaintView::ModelHasChanged() #endif } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrPaintView::IsAction() const { @@ -372,7 +372,7 @@ void SdrPaintView::TakeActionRect(Rectangle&) const { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // info about TextEdit. Default is sal_False. bool SdrPaintView::IsTextEdit() const { @@ -385,7 +385,7 @@ SdrPageView* SdrPaintView::GetTextEditPageView() const return 0L; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_uInt16 SdrPaintView::ImpGetMinMovLogic(short nMinMov, const OutputDevice* pOut) const { @@ -429,7 +429,7 @@ void SdrPaintView::SetActualWin(const OutputDevice* pWin) TheresNewMapMode(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPaintView::ClearPageView() { @@ -573,7 +573,7 @@ void SdrPaintView::PrePaint() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #define SVX_REPAINT_TIMER_TEST void SdrPaintView::CompleteRedraw(OutputDevice* pOut, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector) @@ -632,14 +632,14 @@ void SdrPaintView::CompleteRedraw(OutputDevice* pOut, const Region& rReg, sdr::c //RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects()); //Rectangle aRegionRectangle; - // + //while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle)) //{ // pWindow->SetLineColor(COL_LIGHTGREEN); // pWindow->SetFillColor(); // pWindow->DrawRect(aRegionRectangle); //} - // + //aOptimizedRepaintRegion.EndEnumRects(aRegionHandle); } #endif @@ -706,7 +706,7 @@ void SdrPaintView::CompleteRedraw(OutputDevice* pOut, const Region& rReg, sdr::c #endif // SVX_REPAINT_TIMER_TEST } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i72889# SdrPaintWindow* SdrPaintView::BeginCompleteRedraw(OutputDevice* pOut) @@ -773,7 +773,7 @@ void SdrPaintView::EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFo } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrPaintWindow* SdrPaintView::BeginDrawLayers(OutputDevice* pOut, const Region& rReg, bool bDisableIntersect) { @@ -857,7 +857,7 @@ Region SdrPaintView::OptimizeDrawLayersRegion(OutputDevice* pOut, const Region& return aOptimizedRepaintRegion; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPaintView::ImpFormLayerDrawing(SdrPaintWindow& rPaintWindow) const { @@ -880,7 +880,7 @@ void SdrPaintView::ImpFormLayerDrawing(SdrPaintWindow& rPaintWindow) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrPaintView::KeyInput(const KeyEvent& /*rKEvt*/, Window* /*pWin*/) { @@ -1120,7 +1120,7 @@ sal_Bool SdrPaintView::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontR return sal_True; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + #ifdef DBG_UTIL void SdrPaintView::ShowItemBrowser(sal_Bool bShow) diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index af394839baa2..9d20c70a7bb4 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -35,7 +35,7 @@ using namespace sdr; -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPolyEditView::ImpResetPolyPossibilityFlags() { @@ -576,7 +576,7 @@ void SdrPolyEditView::CloseMarkedObjects(sal_Bool bToggle, sal_Bool bOpen) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) { @@ -651,7 +651,7 @@ void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpMove(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/, const void* /*p5*/) { @@ -672,7 +672,7 @@ void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz, bool bCopy) AdjustMarkHdl(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/) { @@ -693,7 +693,7 @@ void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFac AdjustMarkHdl(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/) { diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx index 4bdc12c38ff8..4f1238a027ce 100644 --- a/svx/source/svdraw/svdsnpv.cxx +++ b/svx/source/svdraw/svdsnpv.cxx @@ -33,7 +33,7 @@ #include <basegfx/matrix/b2dhommatrix.hxx> #include <svx/sdrpaintwindow.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + class ImplPageOriginOverlay { // The OverlayObjects @@ -95,7 +95,7 @@ void ImplPageOriginOverlay::SetPosition(const basegfx::B2DPoint& rNewPosition) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + class ImplHelpLineOverlay { // The OverlayObjects @@ -220,7 +220,7 @@ SdrSnapView::~SdrSnapView() BrkDragHelpLine(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrSnapView::IsAction() const { @@ -272,7 +272,7 @@ void SdrSnapView::TakeActionRect(Rectangle& rRect) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + Point SdrSnapView::GetSnapPos(const Point& rPnt, const SdrPageView* pPV) const { @@ -459,7 +459,7 @@ void SdrSnapView::CheckSnap(const Point& rPt, const SdrPageView* pPV, long& nBes } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrSnapView::BegSetPageOrg(const Point& rPnt) { @@ -516,7 +516,7 @@ void SdrSnapView::BrkSetPageOrg() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrSnapView::PickHelpLine(const Point& rPnt, short nTol, const OutputDevice& rOut, sal_uInt16& rnHelpLineNum, SdrPageView*& rpPV) const { diff --git a/svx/source/svdraw/svdstr.src b/svx/source/svdraw/svdstr.src index fe82180f53ab..379cee04ba2d 100644 --- a/svx/source/svdraw/svdstr.src +++ b/svx/source/svdraw/svdstr.src @@ -27,7 +27,7 @@ String STR_ObjNamePluralNONE { Text [ en-US ] = "draw objects" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulGRUP { Text [ en-US ] = "group object" ; @@ -44,7 +44,7 @@ String STR_ObjNamePluralGRUPEMPTY { Text [ en-US ] = "Blank group objects" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulLINE { Text [ en-US ] = "Line" ; @@ -65,7 +65,7 @@ String STR_ObjNamePluralLINE { Text [ en-US ] = "Lines" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulRECT { Text [ en-US ] = "Rectangle" ; @@ -130,7 +130,7 @@ String STR_ObjNamePluralRAUTERND { Text [ en-US ] = "Rounded rhombuses" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulCIRC { Text [ en-US ] = "Circle" ; @@ -195,7 +195,7 @@ String STR_ObjNamePluralCCUTE { Text [ en-US ] = "Ellipse Segments" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulPOLY { Text [ en-US ] = "Polygon" ; @@ -268,7 +268,7 @@ String STR_ObjNamePluralCOMBFILL { Text [ en-US ] = "Curve objects" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulNATSPLN { Text [ en-US ] = "Natural Spline" ; @@ -285,7 +285,7 @@ String STR_ObjNamePluralPERSPLN { Text [ en-US ] = "Periodic Splines" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulTEXT { Text [ en-US ] = "Text Frame" ; @@ -334,7 +334,7 @@ String STR_ObjNamePluralOUTLINETEXT { Text [ en-US ] = "Outline Texts" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulGRAF { Text [ en-US ] = "graphic" ; @@ -440,7 +440,7 @@ String STR_ObjNamePluralGRAFMACLNK Text [ en-US ] = "Linked Mac graphics" ; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // Svg support String STR_ObjNameSingulGRAFSVG @@ -452,7 +452,7 @@ String STR_ObjNamePluralGRAFSVG Text [ en-US ] = "SVGs" ; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulOLE2 { @@ -482,7 +482,7 @@ String STR_ObjOLE2NamePrefix { Text [ en-US ] = "Object" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulFrame { Text [ en-US ] = "Frame" ; @@ -495,7 +495,7 @@ String STR_ObjFrameNamePrefix { Text [ en-US ] = "Frame" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulEDGE { Text [ en-US ] = "Object Connectors" ; @@ -512,7 +512,7 @@ String STR_ObjNamePluralCAPTION { Text [ en-US ] = "Callouts" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ObjNameSingulPAGE { Text [ en-US ] = "Preview object" ; @@ -546,9 +546,9 @@ String STR_ObjNameSingulPlural Text [ en-US ] = "draw object(s)" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// + + + // New in 537: names for 3D objects String STR_ObjNameSingulCube3d @@ -626,9 +626,9 @@ String STR_ObjNamePluralSphere3d Text [ en-US ] = "spheres"; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// + + + String STR_EditWithCopy { @@ -1116,9 +1116,9 @@ String STR_StandardLayerName { Text [ en-US ] = "Standard" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// + + + String STR_ItemValON { Text [ en-US ] = "on" ; @@ -1135,7 +1135,7 @@ String STR_ItemValNO { Text [ en-US ] = "No" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValCAPTIONTYPE1 { Text [ en-US ] = "Type 1" ; @@ -1164,7 +1164,7 @@ String STR_ItemValCAPTIONESCBESTFIT { Text [ en-US ] = "Automatic" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValFITTOSIZENONE { Text [ en-US ] = "Off" ; @@ -1181,7 +1181,7 @@ String STR_ItemValFITTOSIZERESIZEAT { Text [ en-US ] = "Use hard attributes" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValTEXTVADJTOP { Text [ en-US ] = "Top" ; @@ -1222,7 +1222,7 @@ String STR_ItemValTEXTHADJSTRETCH { Text [ en-US ] = "Stretched" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValTEXTANI_NONE { Text [ en-US ] = "off" ; @@ -1259,7 +1259,7 @@ String STR_ItemValTEXTANI_DOWN { Text [ en-US ] = "down" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValEDGE_ORTHOLINES { Text [ en-US ] = "Standard Connector" ; @@ -1276,7 +1276,7 @@ String STR_ItemValEDGE_BEZIER { Text [ en-US ] = "Curved Connector" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValMEASURE_STD { Text [ en-US ] = "Standard" ; @@ -1321,7 +1321,7 @@ String STR_ItemValMEASURETEXT_VERTICALCEN { Text [ en-US ] = "centered" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// + String STR_ItemValCIRC_FULL { Text [ en-US ] = "full circle" ; @@ -1338,8 +1338,8 @@ String STR_ItemValCIRC_ARC { Text [ en-US ] = "Arc" ; }; - /////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// + + String STR_ItemNam_SHADOW { Text [ en-US ] = "Shadow" ; @@ -1568,9 +1568,9 @@ String STR_ItemNam_SHEARANGLE { Text [ en-US ] = "Shear angle" ; }; - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////////////////////////// + + + // End of cached strings // Now: bitmaps: diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index 45c89018347f..10ea4007a055 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -304,7 +304,7 @@ double CrookStretchXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCen } return 0.0; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void CrookRotatePoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert) { @@ -375,7 +375,7 @@ void CrookStretchPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void CrookRotatePoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert) { @@ -401,7 +401,7 @@ void CrookStretchPoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rR } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + long GetAngle(const Point& rPnt) { @@ -466,7 +466,7 @@ long GetLen(const Point& rPnt) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void GeoStat::RecalcSinCos() { @@ -490,7 +490,7 @@ void GeoStat::RecalcTan() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + Polygon Rect2Poly(const Rectangle& rRect, const GeoStat& rGeo) { @@ -546,7 +546,7 @@ void Poly2Rect(const Polygon& rPol, Rectangle& rRect, GeoStat& rGeo) rRect=Rectangle(aPt0,aRU); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void OrthoDistance8(const Point& rPt0, Point& rPt, bool bBigOrtho) { @@ -577,7 +577,7 @@ void OrthoDistance4(const Point& rPt0, Point& rPt, bool bBigOrtho) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + long BigMulDiv(long nVal, long nMul, long nDiv) { @@ -628,7 +628,7 @@ void Kuerzen(Fraction& rF, unsigned nDigits) rF=Fraction(nMul,nDiv); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // How many eU units fit into a mm, respectively an inch? // Or: How many mm, respectively inches, are there in an eU (and then give me the inverse) @@ -712,7 +712,7 @@ FrPair GetMapFactor(FieldUnit eS, FieldUnit eD) return aRet; }; -//////////////////////////////////////////////////////////////////////////////////////////////////// + // 1 mile = 8 furlong = 63.360" = 1.609.344,0mm // 1 furlong = 10 chains = 7.920" = 201.168,0mm @@ -1103,7 +1103,7 @@ void SdrFormatter::TakeUnitStr(FieldUnit eUnit, OUString& rStr) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index 2e1ab7a01027..940e83ec5aec 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -42,7 +42,7 @@ #include <svx/svdograf.hxx> #include <svx/sdr/contact/viewcontactofgraphic.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + // iterates over all views and unmarks this SdrObject if it is marked static void ImplUnmarkObject( SdrObject* pObj ) @@ -54,7 +54,7 @@ static void ImplUnmarkObject( SdrObject* pObj ) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + TYPEINIT1(SdrUndoAction,SfxUndoAction); @@ -95,7 +95,7 @@ OUString SdrUndoAction::GetSdrRepeatComment(SdrView& /*rView*/) const return OUString(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoGroup::SdrUndoGroup(SdrModel& rNewMod) : SdrUndoAction(rNewMod), @@ -552,7 +552,7 @@ OUString SdrUndoAttrObj::GetSdrRepeatComment(SdrView& /*rView*/) const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoMoveObj::~SdrUndoMoveObj() {} @@ -596,7 +596,7 @@ OUString SdrUndoMoveObj::GetSdrRepeatComment(SdrView& /*rView*/) const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoGeoObj::SdrUndoGeoObj(SdrObject& rNewObj) : SdrUndoObj(rNewObj) @@ -676,7 +676,7 @@ OUString SdrUndoGeoObj::GetComment() const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + class SdrUndoObjList::ObjListListener : public SfxListener { @@ -788,7 +788,7 @@ void SdrUndoObjList::SetOrdNum(sal_uInt32 nOrdNum_) nOrdNum = nOrdNum_; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoRemoveObj::Undo() { @@ -840,7 +840,7 @@ SdrUndoRemoveObj::~SdrUndoRemoveObj() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoInsertObj::Undo() { @@ -890,7 +890,7 @@ void SdrUndoInsertObj::Redo() ImpShowPageOfThisObject(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoDelObj::TryToFlushGraphicContent() { @@ -962,7 +962,7 @@ OUString SdrUndoDelObj::GetSdrRepeatComment(SdrView& /*rView*/) const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoNewObj::Undo() { @@ -1082,7 +1082,7 @@ void SdrUndoReplaceObj::SetOldOwner(bool bNew) bOldOwner = bNew; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OUString SdrUndoCopyObj::GetComment() const { @@ -1091,7 +1091,7 @@ OUString SdrUndoCopyObj::GetComment() const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // #i11702# SdrUndoObjectLayerChange::SdrUndoObjectLayerChange(SdrObject& rObj, SdrLayerID aOldLayer, SdrLayerID aNewLayer) @@ -1113,7 +1113,7 @@ void SdrUndoObjectLayerChange::Redo() ImpShowPageOfThisObject(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoObjOrdNum::SdrUndoObjOrdNum(SdrObject& rNewObj, sal_uInt32 nOldOrdNum1, sal_uInt32 nNewOrdNum1) : SdrUndoObj(rNewObj) @@ -1157,7 +1157,7 @@ OUString SdrUndoObjOrdNum::GetComment() const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoObjSetText::SdrUndoObjSetText(SdrObject& rNewObj, sal_Int32 nText) : SdrUndoObj(rNewObj) @@ -1383,7 +1383,7 @@ SdrUndoLayer::~SdrUndoLayer() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoNewLayer::Undo() { @@ -1408,7 +1408,7 @@ OUString SdrUndoNewLayer::GetComment() const return ImpGetResStr(STR_UndoNewLayer); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoDelLayer::Undo() { @@ -1433,7 +1433,7 @@ OUString SdrUndoDelLayer::GetComment() const return ImpGetResStr(STR_UndoDelLayer); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoMoveLayer::Undo() { @@ -1523,7 +1523,7 @@ void SdrUndoPage::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, rStr = ImpGetResStr(nStrCacheID); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoPageList::SdrUndoPageList(SdrPage& rNewPg) : SdrUndoPage(rNewPg) @@ -1540,7 +1540,7 @@ SdrUndoPageList::~SdrUndoPageList() } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoDelPage::SdrUndoDelPage(SdrPage& rNewPg) : SdrUndoPageList(rNewPg) @@ -1623,7 +1623,7 @@ bool SdrUndoDelPage::CanSdrRepeat(SdrView& /*rView*/) const return false; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoNewPage::Undo() { @@ -1646,7 +1646,7 @@ OUString SdrUndoNewPage::GetComment() const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + OUString SdrUndoCopyPage::GetComment() const { @@ -1672,7 +1672,7 @@ bool SdrUndoCopyPage::CanSdrRepeat(SdrView& /*rView*/) const return false; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrUndoSetPageNum::Undo() { @@ -1707,7 +1707,7 @@ SdrUndoPageMasterPage::~SdrUndoPageMasterPage() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoPageRemoveMasterPage::SdrUndoPageRemoveMasterPage(SdrPage& rChangedPage) : SdrUndoPageMasterPage(rChangedPage) @@ -1735,7 +1735,7 @@ OUString SdrUndoPageRemoveMasterPage::GetComment() const return aStr; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrUndoPageChangeMasterPage::SdrUndoPageChangeMasterPage(SdrPage& rChangedPage) : SdrUndoPageMasterPage(rChangedPage), @@ -1780,7 +1780,7 @@ OUString SdrUndoPageChangeMasterPage::GetComment() const return aStr; } -/////////////////////////////////////////////////////////////////////// + SdrUndoFactory::~SdrUndoFactory(){} // shapes SdrUndoAction* SdrUndoFactory::CreateUndoMoveObject( SdrObject& rObject ) diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 45aaca34f978..a7e73b1ada11 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -50,7 +50,7 @@ #include <svx/sdr/contact/viewcontact.hxx> #include <drawinglayer/processor2d/contourextractor2d.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrViewEvent::SdrViewEvent() : pHdl(NULL), @@ -88,7 +88,7 @@ SdrViewEvent::~SdrViewEvent() { } -//////////////////////////////////////////////////////////////////////////////////////////////////// + // helper class for all D&D overlays void SdrDropMarkerOverlay::ImplCreateOverlays( diff --git a/svx/source/svdraw/svdviter.cxx b/svx/source/svdraw/svdviter.cxx index f9b738aa84c5..f4021a7c2545 100644 --- a/svx/source/svdraw/svdviter.cxx +++ b/svx/source/svdraw/svdviter.cxx @@ -28,7 +28,7 @@ #include <svl/brdcst.hxx> #include <svx/sdrpaintwindow.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + void SdrViewIter::ImpInitVars() { @@ -38,7 +38,7 @@ void SdrViewIter::ImpInitVars() mpAktView = 0L; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrViewIter::SdrViewIter(const SdrPage* pPage, sal_Bool bNoMasterPage) { @@ -49,7 +49,7 @@ SdrViewIter::SdrViewIter(const SdrPage* pPage, sal_Bool bNoMasterPage) ImpInitVars(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrViewIter::SdrViewIter(const SdrObject* pObject, sal_Bool bNoMasterPage) { @@ -67,7 +67,7 @@ SdrViewIter::SdrViewIter(const SdrObject* pObject, sal_Bool bNoMasterPage) ImpInitVars(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + sal_Bool SdrViewIter::ImpCheckPageView(SdrPageView* pPV) const { @@ -135,7 +135,7 @@ sal_Bool SdrViewIter::ImpCheckPageView(SdrPageView* pPV) const } } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrView* SdrViewIter::ImpFindView() { @@ -176,7 +176,7 @@ SdrView* SdrViewIter::ImpFindView() return mpAktView; } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrView* SdrViewIter::FirstView() { @@ -184,7 +184,7 @@ SdrView* SdrViewIter::FirstView() return ImpFindView(); } -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrView* SdrViewIter::NextView() { diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx index d62f4c685ada..91f631f5b4fb 100644 --- a/svx/source/svdraw/svdxcgv.cxx +++ b/svx/source/svdraw/svdxcgv.cxx @@ -55,7 +55,7 @@ #include <svx/sdr/contact/objectcontactofobjlistpainter.hxx> #include <svx/sdr/contact/displayinfo.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// + SdrExchangeView::SdrExchangeView(SdrModel* pModel1, OutputDevice* pOut): SdrObjEditView(pModel1,pOut) @@ -523,7 +523,7 @@ BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const return aBmp; } -// ----------------------------------------------------------------------------- + GDIMetaFile SdrExchangeView::GetMarkedObjMetaFile(bool bNoVDevIfOneMtfMarked) const { @@ -585,7 +585,7 @@ GDIMetaFile SdrExchangeView::GetMarkedObjMetaFile(bool bNoVDevIfOneMtfMarked) co return aMtf; } -// ----------------------------------------------------------------------------- + Graphic SdrExchangeView::GetAllMarkedGraphic() const { @@ -602,7 +602,7 @@ Graphic SdrExchangeView::GetAllMarkedGraphic() const return aRet; } -// ----------------------------------------------------------------------------- + Graphic SdrExchangeView::GetObjGraphic( const SdrModel* pModel, const SdrObject* pObj ) { @@ -670,7 +670,7 @@ Graphic SdrExchangeView::GetObjGraphic( const SdrModel* pModel, const SdrObject* return aRet; } -// ----------------------------------------------------------------------------- + ::std::vector< SdrObject* > SdrExchangeView::GetMarkedObjects() const { @@ -709,7 +709,7 @@ Graphic SdrExchangeView::GetObjGraphic( const SdrModel* pModel, const SdrObject* return aRetval; } -// ----------------------------------------------------------------------------- + void SdrExchangeView::DrawMarkedObj(OutputDevice& rOut) const { @@ -725,7 +725,7 @@ void SdrExchangeView::DrawMarkedObj(OutputDevice& rOut) const } } -// ----------------------------------------------------------------------------- + SdrModel* SdrExchangeView::GetMarkedObjModel() const { @@ -778,7 +778,7 @@ SdrModel* SdrExchangeView::GetMarkedObjModel() const return pNeuMod; } -// ----------------------------------------------------------------------------- + sal_Bool SdrExchangeView::Cut( sal_uIntPtr /*nFormat */) { @@ -786,7 +786,7 @@ sal_Bool SdrExchangeView::Cut( sal_uIntPtr /*nFormat */) return sal_False; } -// ----------------------------------------------------------------------------- + sal_Bool SdrExchangeView::Yank(sal_uIntPtr /*nFormat*/) { @@ -794,7 +794,7 @@ sal_Bool SdrExchangeView::Yank(sal_uIntPtr /*nFormat*/) return sal_False; } -// ----------------------------------------------------------------------------- + sal_Bool SdrExchangeView::Paste(Window* /*pWin*/, sal_uIntPtr /*nFormat*/) { |