diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-16 09:49:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 12:18:39 +0000 |
commit | 1d852b32d7ad89b2317c04958060f366f8922ca4 (patch) | |
tree | 69720512c5675dfad89d00e1134b46faff5eb7b6 /include/svx | |
parent | 383b75f4f516d6a5d256ffc08bc0e7836520447b (diff) |
loplugin:unusedmethods svx
Change-Id: I92158457b3ffaaf7c84c6f4c87708d766c8c9f61
Reviewed-on: https://gerrit.libreoffice.org/17117
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svx')
59 files changed, 29 insertions, 664 deletions
diff --git a/include/svx/EnhancedCustomShape2d.hxx b/include/svx/EnhancedCustomShape2d.hxx index 09cac8ae5ed5..1a0260566294 100644 --- a/include/svx/EnhancedCustomShape2d.hxx +++ b/include/svx/EnhancedCustomShape2d.hxx @@ -220,7 +220,6 @@ class SVX_DLLPUBLIC EnhancedCustomShape2d : public SfxItemSet SAL_DLLPRIVATE double GetAdjustValueAsDouble( const sal_Int32 nIndex ) const; SAL_DLLPRIVATE double GetEquationValueAsDouble( const sal_Int32 nIndex ) const; - SAL_DLLPRIVATE sal_Int32 GetAdjustValueAsInteger( const sal_Int32 nIndex, const sal_Int32 nDefault = 0 ) const; static OUString GetEquation( const sal_uInt16 nFlags, sal_Int32 nPara1, sal_Int32 nPara2, sal_Int32 nPara3 ); diff --git a/include/svx/camera3d.hxx b/include/svx/camera3d.hxx index 66133e6e948d..02250630a138 100644 --- a/include/svx/camera3d.hxx +++ b/include/svx/camera3d.hxx @@ -57,7 +57,6 @@ class SVX_DLLPUBLIC SAL_WARN_UNUSED Camera3D : public Viewport3D void SetPosition(const basegfx::B3DPoint& rNewPos); const basegfx::B3DPoint& GetPosition() const { return aPosition; } void SetLookAt(const basegfx::B3DPoint& rNewLookAt); - const basegfx::B3DPoint& GetLookAt() const { return aLookAt; } void SetPosAndLookAt(const basegfx::B3DPoint& rNewPos, const basegfx::B3DPoint& rNewLookAt); // Focal length in mm @@ -66,11 +65,9 @@ class SVX_DLLPUBLIC SAL_WARN_UNUSED Camera3D : public Viewport3D // Bank angle links/rechts void SetBankAngle(double fAngle); - double GetBankAngle() const { return fBankAngle; } void SetAutoAdjustProjection(bool bAdjust = true) { bAutoAdjustProjection = bAdjust; } - bool IsAutoAdjustProjection() const { return bAutoAdjustProjection; } }; #endif // INCLUDED_SVX_CAMERA3D_HXX diff --git a/include/svx/cube3d.hxx b/include/svx/cube3d.hxx index 7fcdd0b31b58..5a6f246487df 100644 --- a/include/svx/cube3d.hxx +++ b/include/svx/cube3d.hxx @@ -76,8 +76,6 @@ public: void SetPosIsCenter(bool bNew); bool GetPosIsCenter() const { return bPosIsCenter; } - sal_uInt16 GetSideFlags() { return nSideFlags; } - // TakeObjName...() is for the display in the UI, for example "3 frames selected". virtual OUString TakeObjNameSingul() const SAL_OVERRIDE; virtual OUString TakeObjNamePlural() const SAL_OVERRIDE; diff --git a/include/svx/deflt3d.hxx b/include/svx/deflt3d.hxx index 29cba8a7936b..d76ad0b5fd41 100644 --- a/include/svx/deflt3d.hxx +++ b/include/svx/deflt3d.hxx @@ -74,48 +74,31 @@ public: // Getter/Setter for default values of all 3D objects // Compound object const Color& GetDefaultAmbientColor() { return aDefaultAmbientColor; } - void SetDefaultAmbientColor(const Color& rNew) { aDefaultAmbientColor = rNew; } bool GetDefaultCreateNormals() const { return bDefaultCreateNormals; } - void SetDefaultCreateNormals(const bool bNew) { bDefaultCreateNormals = bNew; } bool GetDefaultCreateTexture() const { return bDefaultCreateTexture; } - void SetDefaultCreateTexture(const bool bNew) { bDefaultCreateTexture = bNew; } // Cube object const basegfx::B3DPoint& GetDefaultCubePos() { return aDefaultCubePos; } - void SetDefaultCubePos(const basegfx::B3DPoint& rNew) { aDefaultCubePos = rNew; } const basegfx::B3DVector& GetDefaultCubeSize() { return aDefaultCubeSize; } - void SetDefaultCubeSize(const basegfx::B3DVector& rNew) { aDefaultCubeSize = rNew; } sal_uInt16 GetDefaultCubeSideFlags() const { return nDefaultCubeSideFlags; } - void SetDefaultCubeSideFlags(const sal_uInt16 nNew) { nDefaultCubeSideFlags = nNew; } bool GetDefaultCubePosIsCenter() const { return bDefaultCubePosIsCenter; } - void SetDefaultCubePosIsCenter(const bool bNew) { bDefaultCubePosIsCenter = bNew; } // Sphere object const basegfx::B3DPoint& GetDefaultSphereCenter() { return aDefaultSphereCenter; } - void SetDefaultSphereCenter(const basegfx::B3DPoint& rNew) { aDefaultSphereCenter = rNew; } const basegfx::B3DVector& GetDefaultSphereSize() { return aDefaultSphereSize; } - void SetDefaultSphereSize(const basegfx::B3DPoint& rNew) { aDefaultSphereSize = rNew; } // Lathe object - long GetDefaultLatheEndAngle() const { return nDefaultLatheEndAngle; } - void SetDefaultLatheEndAngle(const long nNew) { nDefaultLatheEndAngle = nNew; } bool GetDefaultLatheSmoothed() const { return bDefaultLatheSmoothed; } - void SetDefaultLatheSmoothed(const bool bNew) { bDefaultLatheSmoothed = bNew; } bool GetDefaultLatheSmoothFrontBack() const { return bDefaultLatheSmoothFrontBack; } - void SetDefaultLatheSmoothFrontBack(const bool bNew) { bDefaultLatheSmoothFrontBack = bNew; } bool GetDefaultLatheCharacterMode() const { return bDefaultLatheCharacterMode; } void SetDefaultLatheCharacterMode(const bool bNew) { bDefaultLatheCharacterMode = bNew; } bool GetDefaultLatheCloseFront() const { return bDefaultLatheCloseFront; } - void SetDefaultLatheCloseFront(const bool bNew) { bDefaultLatheCloseFront = bNew; } bool GetDefaultLatheCloseBack() const { return bDefaultLatheCloseBack; } - void SetDefaultLatheCloseBack(const bool bNew) { bDefaultLatheCloseBack = bNew; } // Extrude object bool GetDefaultExtrudeSmoothed() const { return bDefaultExtrudeSmoothed; } - void SetDefaultExtrudeSmoothed(const bool bNew) { bDefaultExtrudeSmoothed = bNew; } bool GetDefaultExtrudeSmoothFrontBack() const { return bDefaultExtrudeSmoothFrontBack; } - void SetDefaultExtrudeSmoothFrontBack(const bool bNew) { bDefaultExtrudeSmoothFrontBack = bNew; } bool GetDefaultExtrudeCharacterMode() const { return bDefaultExtrudeCharacterMode; } void SetDefaultExtrudeCharacterMode(const bool bNew) { bDefaultExtrudeCharacterMode = bNew; } bool GetDefaultExtrudeCloseFront() const { return bDefaultExtrudeCloseFront; } diff --git a/include/svx/e3ditem.hxx b/include/svx/e3ditem.hxx index 15dd1621dd2e..ae6bf2ddf60f 100644 --- a/include/svx/e3ditem.hxx +++ b/include/svx/e3ditem.hxx @@ -46,10 +46,6 @@ public: virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; const basegfx::B3DVector& GetValue() const { return aVal; } - void SetValue( const basegfx::B3DVector& rNewVal ) { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - aVal = rNewVal; - } virtual sal_uInt16 GetVersion (sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE; }; diff --git a/include/svx/fmmodel.hxx b/include/svx/fmmodel.hxx index 03f65dfe399b..22600859db21 100644 --- a/include/svx/fmmodel.hxx +++ b/include/svx/fmmodel.hxx @@ -63,7 +63,6 @@ public: virtual void InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF) SAL_OVERRIDE; virtual SdrPage* RemoveMasterPage(sal_uInt16 nPgNum) SAL_OVERRIDE; - virtual SdrLayerID GetControlExportLayerId( const SdrObject& rObj ) const; SfxObjectShell* GetObjectShell() const { return m_pObjShell; } void SetObjectShell( SfxObjectShell* pShell ); diff --git a/include/svx/fmview.hxx b/include/svx/fmview.hxx index 92328e1e27ee..6d5f61035b88 100644 --- a/include/svx/fmview.hxx +++ b/include/svx/fmview.hxx @@ -151,7 +151,6 @@ public: SVX_DLLPRIVATE bool checkUnMarkAll(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xSource); private: - SVX_DLLPRIVATE void AdjustMarks(const SdrMarkList& rMarkList); SVX_DLLPRIVATE FmFormObj* getMarkedGrid() const; protected: using E3dView::SetMoveOutside; diff --git a/include/svx/galctrl.hxx b/include/svx/galctrl.hxx index fa9f5dab4d52..466cfa59a196 100644 --- a/include/svx/galctrl.hxx +++ b/include/svx/galctrl.hxx @@ -67,8 +67,6 @@ private: // DragSourceHelper SVX_DLLPRIVATE virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) SAL_OVERRIDE; - DECL_LINK( MenuSelectHdl, Menu* ); - public: GalleryPreview(vcl::Window* pParent, diff --git a/include/svx/gallery1.hxx b/include/svx/gallery1.hxx index 2a2680701fa4..fd91e62542f4 100644 --- a/include/svx/gallery1.hxx +++ b/include/svx/gallery1.hxx @@ -115,7 +115,6 @@ private: SAL_DLLPRIVATE void ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbIsReadOnly ); GalleryThemeEntry* ImplGetThemeEntry( const OUString& rThemeName ); - SAL_DLLPRIVATE GalleryThemeEntry* ImplGetThemeEntry( sal_uIntPtr nThemeId ); SAL_DLLPRIVATE GalleryTheme* ImplGetCachedTheme( const GalleryThemeEntry* pThemeEntry ); SAL_DLLPRIVATE void ImplDeleteCachedTheme( GalleryTheme* pTheme ); @@ -146,8 +145,6 @@ public: SAL_DLLPRIVATE const INetURLObject& GetUserURL() const { return aUserURL; } SAL_DLLPRIVATE const INetURLObject& GetRelativeURL() const { return aRelURL; } - - SAL_DLLPRIVATE bool IsMultiPath() const { return bMultiPath; } }; #endif // INCLUDED_SVX_GALLERY1_HXX diff --git a/include/svx/galleryitem.hxx b/include/svx/galleryitem.hxx index 9d9b48ce5f47..273c149f312c 100644 --- a/include/svx/galleryitem.hxx +++ b/include/svx/galleryitem.hxx @@ -53,8 +53,6 @@ public: sal_Int8 GetType() const { return m_nType; } const rtl::OUString GetURL() const { return m_aURL; } - const rtl::OUString GetFilterName() const { return m_aFilterName; } - const com::sun::star::uno::Reference< com::sun::star::lang::XComponent > GetDrawing() const { return m_xDrawing; } const com::sun::star::uno::Reference< com::sun::star::graphic::XGraphic > GetGraphic() const { return m_xGraphic; } // pure virtual methods from SfxPoolItem diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx index 4a00c8c5ef85..d3e9cbf042ea 100644 --- a/include/svx/galtheme.hxx +++ b/include/svx/galtheme.hxx @@ -149,7 +149,6 @@ public: SAL_DLLPRIVATE const OUString& GetRealName() const; // used for building gallery themes during compilation: - SAL_DLLPRIVATE const OUString& GetDestDir() const { return m_aDestDir; } SAL_DLLPRIVATE void SetDestDir(const OUString& rDestDir, bool bRelative = true) { m_aDestDir = rDestDir; m_bDestDirRelative = bRelative; } diff --git a/include/svx/ipolypolygoneditorcontroller.hxx b/include/svx/ipolypolygoneditorcontroller.hxx index 0f89eca7d010..b2efe7fb3221 100644 --- a/include/svx/ipolypolygoneditorcontroller.hxx +++ b/include/svx/ipolypolygoneditorcontroller.hxx @@ -59,7 +59,6 @@ public: virtual SdrPathSmoothKind GetMarkedPointsSmooth() const = 0; virtual void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) = 0; - virtual void CloseMarkedObjects(bool bToggle, bool bOpen ) = 0; virtual bool IsOpenCloseMarkedObjectsPossible() const = 0; virtual SdrObjClosedKind GetMarkedObjectsClosedState() const = 0; diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx index 4c0dc57abf8a..0fcee6f39b2b 100644 --- a/include/svx/langbox.hxx +++ b/include/svx/langbox.hxx @@ -111,7 +111,6 @@ protected: SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) = 0; SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const = 0; SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryPos( const void* pData ) const = 0; - SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryCount() const = 0; SVX_DLLPRIVATE virtual void ImplSetNoSelection() = 0; SVX_DLLPRIVATE virtual void ImplHide() = 0; SVX_DLLPRIVATE virtual void ImplDisable() = 0; @@ -137,7 +136,6 @@ private: SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) SAL_OVERRIDE; SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const SAL_OVERRIDE; SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryPos( const void* pData ) const SAL_OVERRIDE; - SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryCount() const SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplSetNoSelection() SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplHide() SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplDisable() SAL_OVERRIDE; @@ -177,7 +175,6 @@ private: SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) SAL_OVERRIDE; SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const SAL_OVERRIDE; SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryPos( const void* pData ) const SAL_OVERRIDE; - SVX_DLLPRIVATE virtual sal_Int32 ImplGetEntryCount() const SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplSetNoSelection() SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplHide() SAL_OVERRIDE; SVX_DLLPRIVATE virtual void ImplDisable() SAL_OVERRIDE; diff --git a/include/svx/obj3d.hxx b/include/svx/obj3d.hxx index 4a0d497acb0b..0f2dacb157fb 100644 --- a/include/svx/obj3d.hxx +++ b/include/svx/obj3d.hxx @@ -254,68 +254,11 @@ public : virtual sal_uInt32 GetHdlCount() const SAL_OVERRIDE; virtual void AddToHdlList(SdrHdlList& rHdlList) const SAL_OVERRIDE; - // DoubleSided: sal_True/FALSE - bool GetDoubleSided() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_DOUBLE_SIDED)).GetValue(); } - - // NormalsKind: 0 == sal_False/sal_False, 1 == sal_True/sal_False, else == sal_True/TRUE - sal_uInt16 GetNormalsKind() const - { return static_cast<const Svx3DNormalsKindItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_NORMALS_KIND)).GetValue(); } - - // NormalsInvert: sal_True/FALSE - bool GetNormalsInvert() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_NORMALS_INVERT)).GetValue(); } - - // TextureProjX: 0 == sal_False/sal_False, 1 == sal_True/sal_False, else == sal_True/TRUE - sal_uInt16 GetTextureProjectionX() const - { return static_cast<const Svx3DTextureProjectionXItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_TEXTURE_PROJ_X)).GetValue(); } - - // TextureProjY: 0 == sal_False/sal_False, 1 == sal_True/sal_False, else == sal_True/TRUE - sal_uInt16 GetTextureProjectionY() const - { return static_cast<const Svx3DTextureProjectionYItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_TEXTURE_PROJ_Y)).GetValue(); } - - // Shadow3D: sal_True/FALSE - bool GetShadow3D() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_SHADOW_3D)).GetValue(); } - - // MaterialColor: Color - Color GetMaterialColor() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_MAT_COLOR)).GetValue(); } - - // MaterialEmission: Color - Color GetMaterialEmission() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_MAT_EMISSION)).GetValue(); } - - // MaterialSpecular: Color - Color GetMaterialSpecular() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_MAT_SPECULAR)).GetValue(); } - - // MaterialSpecularIntensity: - sal_uInt16 GetMaterialSpecularIntensity() const - { return static_cast<const SfxUInt16Item&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY)).GetValue(); } - - // TextureFilter: sal_True/FALSE - bool GetTextureFilter() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_TEXTURE_FILTER)).GetValue(); } - - // #i28528# - // Added extra Item (Bool) for chart2 to be able to show reduced line geometry - bool GetReducedLineGeometry() const - { return static_cast<const Svx3DReducedLineGeometryItem&>(GetObjectItemSet().Get(SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY)).GetValue(); } - virtual sal_uInt16 GetObjIdentifier() const SAL_OVERRIDE; virtual void RecalcSnapRect() SAL_OVERRIDE; - // set/get parameters for geometry creation - bool GetCreateNormals() const { return bCreateNormals; } - - bool GetCreateTexture() const { return bCreateTexture; } - virtual E3dCompoundObject* Clone() const SAL_OVERRIDE; - // material of the object - const Color& GetMaterialAmbientColor() const { return aMaterialAmbientColor; } - bool IsAOrdNumRemapCandidate(E3dScene*& prScene) const; }; diff --git a/include/svx/pageitem.hxx b/include/svx/pageitem.hxx index 76260ebcad6b..00359b7a205c 100644 --- a/include/svx/pageitem.hxx +++ b/include/svx/pageitem.hxx @@ -97,7 +97,6 @@ public: void SetNumType(SvxNumType eNum) { eNumType = eNum; } // name of the descriptor - const OUString& GetDescName() const { return aDescName; } void SetDescName(const OUString& rStr) { aDescName = rStr; } }; diff --git a/include/svx/scene3d.hxx b/include/svx/scene3d.hxx index aa24245a1948..f313ec29e379 100644 --- a/include/svx/scene3d.hxx +++ b/include/svx/scene3d.hxx @@ -114,76 +114,6 @@ public: double GetFocalLength() const { return static_cast<const SfxUInt32Item&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_FOCAL_LENGTH)).GetValue(); } - // Two sided lighting: - bool GetTwoSidedLighting() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING)).GetValue(); } - - // Lightcolor: - Color GetLightColor1() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_1)).GetValue(); } - Color GetLightColor2() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_2)).GetValue(); } - Color GetLightColor3() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_3)).GetValue(); } - Color GetLightColor4() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_4)).GetValue(); } - Color GetLightColor5() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_5)).GetValue(); } - Color GetLightColor6() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_6)).GetValue(); } - Color GetLightColor7() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_7)).GetValue(); } - Color GetLightColor8() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTCOLOR_8)).GetValue(); } - - // Ambient color: - Color GetGlobalAmbientColor() const - { return static_cast<const SvxColorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_AMBIENTCOLOR)).GetValue(); } - - // Light on/off: - bool GetLightOnOff1() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_1)).GetValue(); } - bool GetLightOnOff2() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_2)).GetValue(); } - bool GetLightOnOff3() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_3)).GetValue(); } - bool GetLightOnOff4() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_4)).GetValue(); } - bool GetLightOnOff5() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_5)).GetValue(); } - bool GetLightOnOff6() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_6)).GetValue(); } - bool GetLightOnOff7() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_7)).GetValue(); } - bool GetLightOnOff8() const - { return static_cast<const SfxBoolItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTON_8)).GetValue(); } - - // Light direction: - basegfx::B3DVector GetLightDirection1() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_1)).GetValue(); } - basegfx::B3DVector GetLightDirection2() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_2)).GetValue(); } - basegfx::B3DVector GetLightDirection3() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_3)).GetValue(); } - basegfx::B3DVector GetLightDirection4() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_4)).GetValue(); } - basegfx::B3DVector GetLightDirection5() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_5)).GetValue(); } - basegfx::B3DVector GetLightDirection6() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_6)).GetValue(); } - basegfx::B3DVector GetLightDirection7() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_7)).GetValue(); } - basegfx::B3DVector GetLightDirection8() const - { return static_cast<const SvxB3DVectorItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_LIGHTDIRECTION_8)).GetValue(); } - - // ShadowSlant: - sal_uInt16 GetShadowSlant() const - { return static_cast<const SfxUInt16Item&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_SHADOW_SLANT)).GetValue(); } - - // ShadeMode: 0 == FLAT, 1 == PHONG, 2 == SMOOTH, 3 == ForceDraft - sal_uInt16 GetShadeMode() const - { return static_cast<const Svx3DShadeModeItem&>(GetObjectItemSet().Get(SDRATTR_3DSCENE_SHADE_MODE)).GetValue(); } - // set flag to draw only selected void SetDrawOnlySelected(bool bNew) { bDrawOnlySelected = bNew; } bool GetDrawOnlySelected() const { return bDrawOnlySelected; } diff --git a/include/svx/sdasaitm.hxx b/include/svx/sdasaitm.hxx index 733b4e7f4097..f3d5277229ac 100644 --- a/include/svx/sdasaitm.hxx +++ b/include/svx/sdasaitm.hxx @@ -29,12 +29,6 @@ class SdrCustomShapeAdjustmentValue sal_uInt32 nValue; friend class SdrCustomShapeAdjustmentItem; - - public : - - void SetValue( sal_Int32 nVal ) { nValue = nVal; }; - sal_Int32 GetValue() const { return nValue; }; - }; class SdrCustomShapeAdjustmentItem : public SfxPoolItem diff --git a/include/svx/sdr/contact/objectcontact.hxx b/include/svx/sdr/contact/objectcontact.hxx index 61db82083a4a..e09e8830e151 100644 --- a/include/svx/sdr/contact/objectcontact.hxx +++ b/include/svx/sdr/contact/objectcontact.hxx @@ -155,9 +155,6 @@ public: ViewObjectContactRedirector* GetViewObjectContactRedirector() const { return mpViewObjectContactRedirector; } void SetViewObjectContactRedirector(ViewObjectContactRedirector* pNew); - // check if buffering of MasterPages is allowed. Default is sal_False. - virtual bool IsMasterPageBufferingAllowed() const; - // print? Default is false virtual bool isOutputToPrinter() const; diff --git a/include/svx/sdr/contact/viewcontact.hxx b/include/svx/sdr/contact/viewcontact.hxx index 0d07c8f124c9..c34f5e9304df 100644 --- a/include/svx/sdr/contact/viewcontact.hxx +++ b/include/svx/sdr/contact/viewcontact.hxx @@ -113,13 +113,12 @@ public: // from this object void ActionChildInserted(ViewContact& rChild); - // React on changes of the object of this ViewContact - virtual void ActionChanged(); - - // access to SdrObject and/or SdrPage. May return 0L like the default + // access to SdrObject. May return 0L like the default // implementations do. Override as needed. virtual SdrObject* TryToGetSdrObject() const; - virtual SdrPage* TryToGetSdrPage() const; + + // React on changes of the object of this ViewContact + virtual void ActionChanged(); // access to the local primitive. This will ensure that the primitive is // current in comparing the local one with a fresh created incarnation diff --git a/include/svx/sdr/contact/viewobjectcontact.hxx b/include/svx/sdr/contact/viewobjectcontact.hxx index dca5c60abbba..fec1dfe34a02 100644 --- a/include/svx/sdr/contact/viewobjectcontact.hxx +++ b/include/svx/sdr/contact/viewobjectcontact.hxx @@ -94,9 +94,6 @@ public: // get the oebject's size range const basegfx::B2DRange& getObjectRange() const; - // A ViewObjectContact was deleted and shall be forgotten. - void RemoveViewObjectContact(ViewObjectContact& rVOContact); - // React on changes of the object of this ViewContact virtual void ActionChanged(); diff --git a/include/svx/sdr/overlay/overlaymanager.hxx b/include/svx/sdr/overlay/overlaymanager.hxx index 6710f61c5cc7..b7be54cad695 100644 --- a/include/svx/sdr/overlay/overlaymanager.hxx +++ b/include/svx/sdr/overlay/overlaymanager.hxx @@ -104,9 +104,6 @@ namespace sdr // flush. Do buffered updates. virtual void flush(); - // #i68597# part of content gets copied, react on it - virtual void copyArea(const Point& rDestPt, const Point& rSrcPt, const Size& rSrcSize); - // restore part of background. Implemented form buffered versions only. virtual void restoreBackground(const vcl::Region& rRegion) const; diff --git a/include/svx/sdr/overlay/overlaypolypolygon.hxx b/include/svx/sdr/overlay/overlaypolypolygon.hxx index b51477b2969c..29a06dc7447c 100644 --- a/include/svx/sdr/overlay/overlaypolypolygon.hxx +++ b/include/svx/sdr/overlay/overlaypolypolygon.hxx @@ -46,7 +46,6 @@ namespace sdr // change geometry basegfx::B2DPolyPolygon getLinePolyPolygon() const { return maLinePolyPolygon; } - void setLinePolyPolygon(const basegfx::B2DPolyPolygon& rNew); // react on stripe definition change virtual void stripeDefinitionHasChanged() SAL_OVERRIDE; diff --git a/include/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx b/include/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx index e500bf89ca8e..4cdda1cd278e 100644 --- a/include/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx +++ b/include/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx @@ -39,11 +39,6 @@ namespace sdr // geometry creation for OverlayObject virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence() SAL_OVERRIDE; - private: - // internal helper to create a drawinglayer::geometry::ViewInformation2D - // using a OutputDevice and local knowledge - drawinglayer::geometry::ViewInformation2D impCreateViewInformation2D(OutputDevice& rOutputDevice) const; - public: explicit OverlayPrimitive2DSequenceObject(const drawinglayer::primitive2d::Primitive2DSequence& rSequence); diff --git a/include/svx/sdrpaintwindow.hxx b/include/svx/sdrpaintwindow.hxx index 36176e53d7e2..060c5ac04076 100644 --- a/include/svx/sdrpaintwindow.hxx +++ b/include/svx/sdrpaintwindow.hxx @@ -58,7 +58,6 @@ public: void PreparePreRenderDevice(); void OutputPreRenderDevice(const vcl::Region& rExpandedRegion); - OutputDevice& GetOriginalOutputDevice() const { return mrOutputDevice; } OutputDevice& GetPreRenderDevice() { return *mpPreRenderDevice.get(); } }; diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx index 5a5730c7c8de..a1d8f6c5eaac 100644 --- a/include/svx/svdcrtv.hxx +++ b/include/svx/svdcrtv.hxx @@ -85,7 +85,6 @@ public: virtual bool MouseMove(const MouseEvent& rMEvt, vcl::Window* pWin) SAL_OVERRIDE; void SetMeasureLayer(const OUString& rName) { aMeasureLayer=rName; } - const OUString& GetMeasureLayer() const { return aMeasureLayer; } // If the MeasureLayer is not set (empty string), then use the active layer for measuring. void SetEditMode(SdrViewEditMode eMode) { SdrDragView::SetEditMode(eMode); CheckEdgeMode(); } @@ -127,7 +126,6 @@ public: // OBJ_TEXTEXT, OBJ_OUTLINERTEXT, OBJ_TITLETEXT, OBJ_CAPTION) // automatically start a TextEdit (SdrObjEditView: SdrBeginTextEdit) bool IsTextEditAfterCreate() const { return bAutoTextEdit; } - void SetTextEditAfterCreate(bool bOn) { bAutoTextEdit = bOn; } // Create a circle/rectangle/text frame with the first Point being // the center of the object instead of the upper-left corner. @@ -142,17 +140,14 @@ public: // Object <= nAutoCloseDistPix pixels. // Default = TRUE. bool IsAutoClosePolys() const { return bAutoClosePolys; } - void SetAutoClosePolys(bool bOn) { bAutoClosePolys=bOn; } // Default = 5 Pixel sal_uInt16 GetAutoCloseDistPix() const { return sal_uInt16(nAutoCloseDistPix); } - void SetAutoCloseDistPix(sal_uInt16 nVal) { nAutoCloseDistPix=nVal; } // Setting for the minimum distantce in pixels between 2 bezier points when // creating a freehand line. // Default = 10 Pixel sal_uInt16 GetFreeHandMinDistPix() const { return sal_uInt16(nFreeHandMinDistPix); } - void SetFreeHandMinDistPix(sal_uInt16 nVal) { nFreeHandMinDistPix=nVal; } // FIXME: Whoever wants to keep the Create Interface for the PathObj which is // incompatible with the rest of the Create functionality of SvDraw, needs diff --git a/include/svx/svddrag.hxx b/include/svx/svddrag.hxx index 3be0872f6a04..91ea052a8326 100644 --- a/include/svx/svddrag.hxx +++ b/include/svx/svddrag.hxx @@ -90,7 +90,6 @@ public: const Point& GetPrev() const { return GetPoint(GetPointAnz()-(GetPointAnz()>=2 ? 2:1)); } Point& Prev() { return Pnt(GetPointAnz()-(GetPointAnz()>=2 ? 2:1)); } const Point& GetPos0() const { return aPos0; } - Point& Pos0() { return aPos0; } const Point& GetNow() const { return GetPoint(GetPointAnz()-1); } Point& Now() { return Pnt(GetPointAnz()-1); } const Point& GetRealNow() const { return aRealNow; } @@ -109,8 +108,7 @@ public: bool IsMinMoved() const { return bMinMoved; } void SetMinMoved() { bMinMoved=true; } void ResetMinMoved() { bMinMoved=false; } - void SetMinMove(sal_uInt16 nDist) { nMinMov=nDist; if (nMinMov<1) nMinMov=1; } - sal_uInt16 GetMinMove() const { return nMinMov; } + void SetMinMove(sal_uInt16 nDist) { nMinMov=nDist; if (nMinMov<1) nMinMov=1; } bool IsHorFixed() const { return bHorFixed; } void SetHorFixed(bool bOn) { bHorFixed=bOn; } diff --git a/include/svx/svddrgmt.hxx b/include/svx/svddrgmt.hxx index e8e09b691be7..54527db401ac 100644 --- a/include/svx/svddrgmt.hxx +++ b/include/svx/svddrgmt.hxx @@ -173,7 +173,6 @@ protected: inline const Rectangle& GetMarkedRect() const; SdrPageView* GetDragPV() const; SdrObject* GetDragObj() const; - OutputDevice* GetDragWin() const { return getSdrDragView().pDragWin; } bool IsDraggingPoints() const { return getSdrDragView().IsDraggingPoints(); } bool IsDraggingGluePoints() const { return getSdrDragView().IsDraggingGluePoints(); } diff --git a/include/svx/svddrgv.hxx b/include/svx/svddrgv.hxx index 4bd3037d21fe..802404de1541 100644 --- a/include/svx/svddrgv.hxx +++ b/include/svx/svddrgv.hxx @@ -125,7 +125,6 @@ public: bool BegInsObjPoint(const Point& rPnt, bool bNewObj) { return ImpBegInsObjPoint(false, 0L, rPnt, bNewObj, 0L); } void MovInsObjPoint(const Point& rPnt) { MovDragObj(rPnt); } bool EndInsObjPoint(SdrCreateCmd eCmd); - void BrkInsObjPoint() { BrkDragObj(); } bool IsInsObjPoint() const { return mpCurrentSdrDragMethod && mbInsPolyPoint; } // For the app to manage the status. GetPreferredPointer() is @@ -135,9 +134,6 @@ public: bool IsInsGluePointPossible() const; bool BegInsGluePoint(const Point& rPnt); - void MovInsGluePoint(const Point& rPnt) { MovDragObj(rPnt); } - bool EndInsGluePoint() { return EndDragObj(); } - void BrkInsGluePoint() { BrkDragObj(); } bool IsInsGluePoint() const { return mpCurrentSdrDragMethod && mbInsGluePoint; } // For the app to manage the status. GetPreferredPointer() is @@ -156,7 +152,6 @@ public: // Hide the mouse when dragging polygon points or glue points. // Default=false - void SetMouseHideWhileDraggingPoints(bool bOn) { mbMouseHideWhileDraggingPoints = bOn; } bool IsMouseHideWhileDraggingPoints() const { return mbMouseHideWhileDraggingPoints; } // As a general rule, the contours of the selected objects @@ -173,14 +168,12 @@ public: // NoDragPolys is (temporarily) activated implicitely. // PolyPolygons etc. are regarded as multiple objects respectively. // Default=100 - void SetDragXorPolyLimit(sal_uIntPtr nLimit) { mnDragXorPolyLimit=nLimit; } sal_uIntPtr GetDragXorPolyLimit() const { return mnDragXorPolyLimit; } // Like DragXorPolyLimit, but in respect to the total number of // all polygons. Default=500. // NoDragPolys is (temporarily) activated, if one of the limits // is exceeded. - void SetDragXorPointLimit(sal_uIntPtr nPointCount) { mnDragXorPointLimit=nPointCount; } sal_uIntPtr GetDragXorPointLimit() const { return mnDragXorPointLimit; } void SetSolidDragging(bool bOn); @@ -190,12 +183,10 @@ public: // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Stick Connectors to vertices // Default=true=Yes - void SetAutoVertexConnectors(bool bOn) { mbAutoVertexCon = bOn; } bool IsAutoVertexConnectors() const { return mbAutoVertexCon; } // Stick Connectors to Corners // Default=false=No - void SetAutoCornerConnectors(bool bOn) { mbAutoCornerCon = bOn; } bool IsAutoCornerConnectors() const { return mbAutoCornerCon; } // Dragging of connected objects (Nodes): @@ -207,8 +198,6 @@ public: // Default value: 10 bool IsDetailedEdgeDragging() const { return mbDetailedEdgeDragging; } - sal_uInt16 GetDetailedEdgeDraggingLimit() const { return mnDetailedEdgeDraggingLimit; } - // EdgeDraggingLimit: If more than nEdgeObjCount edges are affected, // they are not shown in the interactive dragging. // This here talks about the "rubber bands", which take less computing time @@ -233,11 +222,6 @@ public: void SetMarkedHitMovesAlways(bool bOn) { mbMarkedHitMovesAlways = bOn; } bool IsMarkedHitMovesAlways() const { return mbMarkedHitMovesAlways; } - // Show the mirror image of the selected objects as Xor while dragging - // the mirror axis? Persistent. Not yet implemented. Default: true - void SetMirrRefDragObj(bool bOn) { mbMirrRefDragObj = bOn; } - bool IsMirrRefDragObj() const { return mbMirrRefDragObj; } - bool IsOrthoDesired() const; // center as reference on Resize diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx index b109e0c532db..b97f8eb3c618 100644 --- a/include/svx/svdedtv.hxx +++ b/include/svx/svdedtv.hxx @@ -197,8 +197,6 @@ public: SdrLayer* InsertNewLayer(const OUString& rName, sal_uInt16 nPos=0xFFFF); // Delete a layer including all objects contained void DeleteLayer(const OUString& rName); - // Move a layer (change sequence of layers) - void MoveLayer(const OUString& rName, sal_uInt16 nNewPos); // Marked objects which are outside a page // are assigned to an other page; at the moment without undo!!! @@ -209,7 +207,6 @@ public: // delete all marked objects void DeleteMarkedObj(); - bool IsDeleteMarkedObjPossible() const { ForcePossibilities(); return bDeletePossible; } // Set a logical enclosing rectangle for all marked objects. // It is not guaranteed if this succeeds, as a horizontal @@ -233,14 +230,9 @@ public: void SetAllMarkedRect(const Rectangle& rRect, bool bCopy=false) { SetMarkedObjRect(rRect,bCopy); } void MoveAllMarked(const Size& rSiz, bool bCopy=false) { MoveMarkedObj (rSiz,bCopy); } void ResizeAllMarked(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false) { ResizeMarkedObj (rRef,xFact,yFact,bCopy); } - long GetAllMarkedRotate() const { return GetMarkedObjRotate(); } void RotateAllMarked(const Point& rRef, long nAngle, bool bCopy=false) { RotateMarkedObj(rRef,nAngle,bCopy); } - void MirrorAllMarked(const Point& rRef1, const Point& rRef2, bool bCopy=false) { MirrorMarkedObj(rRef1,rRef2,bCopy); } void MirrorAllMarkedHorizontal(bool bCopy=false) { MirrorMarkedObjHorizontal(bCopy); } void MirrorAllMarkedVertical(bool bCopy=false) { MirrorMarkedObjVertical(bCopy); } - long GetAllMarkedShear() const { return GetMarkedObjShear(); } - void ShearAllMarked(const Point& rRef, long nAngle, bool bVShear=false, bool bCopy=false) { ShearMarkedObj(rRef,nAngle,bVShear,bCopy); } - void CrookAllMarked(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical=false, bool bNoContortion=false, bool bCopy=false) { CrookMarkedObj(rRef,rRad,eMode,bVertical,bNoContortion,bCopy); } void CopyMarked() { CopyMarkedObj(); } bool IsMoveAllowed() const { ForcePossibilities(); return bMoveAllowed && !bMoveProtect; } bool IsResizeAllowed(bool bProp=false) const; @@ -418,7 +410,6 @@ public: // in their Z-order (Writer). // Default setting is sal_False=swithed off. void SetVirtualObjectBundling(bool bOn) { bBundleVirtObj=bOn; } - bool IsVirtualObjectBundling() const { return bBundleVirtObj; } // override SdrMarkView, for internal use virtual void MarkListHasChanged() SAL_OVERRIDE; diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx index 5c994cc19942..2aa9f893a67a 100644 --- a/include/svx/svdedxv.hxx +++ b/include/svx/svdedxv.hxx @@ -198,7 +198,6 @@ public: virtual SdrPageView* GetTextEditPageView() const SAL_OVERRIDE; // Current window of the outliners. - vcl::Window* GetTextEditWin() const { return pTextEditWin; } void SetTextEditWin(vcl::Window* pWin); // Now at this outliner, events can be send, attributes can be set, @@ -236,7 +235,6 @@ public: // Persistent. Default TRUE. SvDraw evaluates the flag e.g. at SdrView::GetPreferredPointer(). // Has only effect, if the document has draw-objects with macrofunctionality (SdrObject::HasMacro()==sal_True). - void SetMacroMode(bool bOn) { bMacroMode=bOn; } bool IsMacroMode() const { return bMacroMode; } bool BegMacroObj(const Point& rPnt, short nTol, SdrObject* pObj, SdrPageView* pPV, vcl::Window* pWin); bool BegMacroObj(const Point& rPnt, SdrObject* pObj, SdrPageView* pPV, vcl::Window* pWin) { return BegMacroObj(rPnt,-2,pObj,pPV,pWin); } @@ -244,7 +242,6 @@ public: void BrkMacroObj(); bool EndMacroObj(); bool IsMacroObj() const { return pMacroObj!=NULL; } - bool IsMacroObjDown() const { return bMacroDown; } /** fills the given any with a XTextCursor for the current text selection. Leaves the any untouched if there currently is no text selected */ diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index 1b8a97a4d84d..0f82c5b1dbad 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -153,7 +153,6 @@ public: bool ReportActions( sal_uIntPtr nActionCount ); bool ReportInserts( sal_uIntPtr nInsertCount ); - sal_uIntPtr GetSumActionCount() const { return nSumActionCount; }; sal_uIntPtr GetSumCurAction() const { return nSumCurAction; }; sal_uIntPtr GetObjCount() const { return nObjCount; }; sal_uIntPtr GetCurObj() const { return nCurObj; }; @@ -183,7 +182,6 @@ public: const Link<>& GetLink(unsigned nNum) const { return *aList[nNum]; } void InsertLink(const Link<>& rLink, unsigned nPos=0xFFFF); void RemoveLink(const Link<>& rLink); - bool HasLink(const Link<>& rLink) const { return FindEntry(rLink)!=0xFFFF; } }; SdrLinkList& ImpGetUserMakeObjHdl(); diff --git a/include/svx/svdglev.hxx b/include/svx/svdglev.hxx index 92f77fef4d8d..19e2d070477b 100644 --- a/include/svx/svdglev.hxx +++ b/include/svx/svdglev.hxx @@ -50,13 +50,11 @@ public: // SdrEscapeDirection::LEFT, SdrEscapeDirection::RIGHT, SdrEscapeDirection::TOP and SdrEscapeDirection::BOTTOM SDR_TRISTATE IsMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc) const; void SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, bool bOn); - bool IsSetMarkedGluePointsEscDirPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); } // check/set, if the GluePoints are relativ to the // object size (Percent=sal_True) or not (Percent=sal_False) SDR_TRISTATE IsMarkedGluePointsPercent() const; void SetMarkedGluePointsPercent(bool bOn); - bool IsSetMarkedGluePointsPercentPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); } // bVert=FALSE: check/set hotizontal alignment // SdrAlign::HORZ_CENTER @@ -70,7 +68,6 @@ public: // SdrAlign::VERT_DONTCARE (only at Get()) SdrAlign GetMarkedGluePointsAlign(bool bVert) const; void SetMarkedGluePointsAlign(bool bVert, SdrAlign nAlign); - bool IsSetMarkedGluePointsAlignPossible() const { return !IsReadOnly() && HasMarkedGluePoints(); } // delete all marked GluePoints void DeleteMarkedGluePoints(); @@ -78,14 +75,6 @@ public: void MoveMarkedGluePoints (const Size& rSiz, bool bCopy=false); void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false); void RotateMarkedGluePoints(const Point& rRef, long nAngle, bool bCopy=false); - void MirrorMarkedGluePoints(const Point& rRef1, const Point& rRef2, bool bCopy=false); - void MirrorMarkedGluePointsHorizontal(bool bCopy=false); - void MirrorMarkedGluePointsVertical(bool bCopy=false); - void ShearMarkedGluePoints(const Point& rRef, long nAngle, bool bVShear=false, bool bCopy=false); - void CrookMarkedGluePoints(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical=false, bool bNoContortion=false, bool bCopy=false); - void DistortMarkedGluePoints(const Rectangle& rRef, const XPolygon& rDistortedRect, bool bNoContortion=false, bool bCopy=false); - - void AlignMarkedGluePoints(SdrHorAlign eHor, SdrVertAlign eVert); }; #endif // INCLUDED_SVX_SVDGLEV_HXX diff --git a/include/svx/svdglue.hxx b/include/svx/svdglue.hxx index 2d0b6c9541f4..c880eab46c33 100644 --- a/include/svx/svdglue.hxx +++ b/include/svx/svdglue.hxx @@ -89,7 +89,6 @@ public: bool IsPercent() const { return !bNoPercent; } void SetPercent(bool bOn) { bNoPercent = !bOn; } // temp for transformations on the reference object - bool IsReallyAbsolute() const { return bReallyAbsolute; } void SetReallyAbsolute(bool bOn, const SdrObject& rObj); // #i38892# diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index 486baafdfa42..ec3ef8d8e26c 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -280,11 +280,9 @@ public: Color GetColor() const { return aMarkerColor; } void SetColor(Color aNew, bool bCallLink = false); - const Size& GetSize() const { return aMarkerSize; } void SetSize(const Size& rNew); void SetColorChangeHdl(const Link<>& rLink) { aColorChangeHdl = rLink; } - const Link<>& GetColorChangeHdl() const { return aColorChangeHdl; } }; diff --git a/include/svx/svdhlpln.hxx b/include/svx/svdhlpln.hxx index f5b31fa7fa9a..03b59aeb02a3 100644 --- a/include/svx/svdhlpln.hxx +++ b/include/svx/svdhlpln.hxx @@ -38,11 +38,6 @@ class SdrHelpLine { Point aPos; // je nach Wert von eKind ist X oder Y evtl. belanglos SdrHelpLineKind eKind; - // #i27493# - // Helper method to draw a hor or ver two-colored dashed line - void ImpDrawDashedTwoColorLine(OutputDevice& rOut, sal_Int32 nStart, sal_Int32 nEnd, sal_Int32 nFixPos, - sal_Int32 nStepWidth, Color aColA, Color aColB, bool bHorizontal) const; - public: explicit SdrHelpLine(SdrHelpLineKind eNewKind=SDRHELPLINE_POINT): eKind(eNewKind) {} SdrHelpLine(SdrHelpLineKind eNewKind, const Point& rNewPos): aPos(rNewPos), eKind(eNewKind) {} diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index 0a79bd94b5e2..70c3009ff528 100644 --- a/include/svx/svdlayer.hxx +++ b/include/svx/svdlayer.hxx @@ -56,12 +56,10 @@ public: SdrLayerID GetID() const { return nID; } void SetModel(SdrModel* pNewModel) { pModel=pNewModel; } - SdrModel* GetModel() const { return pModel; } // A SdrLayer should be considered the standard Layer. It shall then set the // appropriate country-specific name. SetName() sets the "StandardLayer" flag // and if necessary returns "Userdefined". void SetStandardLayer(bool bStd = true); - bool IsStandardLayer() const { return nType==1; } }; // When Changing the layer data you currently have to set the Modify-Flag @@ -82,26 +80,18 @@ protected: // verbraucht, so gibt's 'ne 0. Wer sicher gehen will, muss vorher // GetLayerCount()<SDRLAYER_MAXCOUNT abfragen, denn sonst sind alle // vergeben. - SdrLayerID GetUniqueLayerID() const; - void Broadcast() const; + SdrLayerID GetUniqueLayerID() const; + void Broadcast() const; public: explicit SdrLayerAdmin(SdrLayerAdmin* pNewParent=NULL); SdrLayerAdmin(const SdrLayerAdmin& rSrcLayerAdmin); ~SdrLayerAdmin(); const SdrLayerAdmin& operator=(const SdrLayerAdmin& rSrcLayerAdmin); - bool operator==(const SdrLayerAdmin& rCmpLayerAdmin) const; - bool operator!=(const SdrLayerAdmin& rCmpLayerAdmin) const { return !operator==(rCmpLayerAdmin); } - SdrLayerAdmin* GetParent() const { return pParent; } - void SetParent(SdrLayerAdmin* pNewParent) { pParent=pNewParent; } - void SetModel(SdrModel* pNewModel); - SdrModel* GetModel() const { return pModel; } - void InsertLayer(SdrLayer* pLayer) - { - aLayer.push_back(pLayer); - pLayer->SetModel(pModel); - Broadcast(); - } - void InsertLayer(SdrLayer* pLayer, sal_uInt16 nPos) + bool operator==(const SdrLayerAdmin& rCmpLayerAdmin) const; + bool operator!=(const SdrLayerAdmin& rCmpLayerAdmin) const { return !operator==(rCmpLayerAdmin); } + void SetParent(SdrLayerAdmin* pNewParent) { pParent=pNewParent; } + void SetModel(SdrModel* pNewModel); + void InsertLayer(SdrLayer* pLayer, sal_uInt16 nPos) { if(nPos==0xFFFF) aLayer.push_back(pLayer); @@ -110,38 +100,29 @@ public: pLayer->SetModel(pModel); Broadcast(); } - SdrLayer* RemoveLayer(sal_uInt16 nPos); + SdrLayer* RemoveLayer(sal_uInt16 nPos); // Delete the entire layer void ClearLayer(); // New layer is created and inserted SdrLayer* NewLayer(const OUString& rName, sal_uInt16 nPos=0xFFFF); - void DeleteLayer(SdrLayer* pLayer) - { - std::vector<SdrLayer*>::iterator it = std::find(aLayer.begin(), aLayer.end(), pLayer); - if( it == aLayer.end() ) - return; - aLayer.erase(it); - delete pLayer; - Broadcast(); - } // New layer, name is retrieved from the resource SdrLayer* NewStandardLayer(sal_uInt16 nPos=0xFFFF); // Iterate over all layers - sal_uInt16 GetLayerCount() const { return sal_uInt16(aLayer.size()); } - SdrLayer* GetLayer(sal_uInt16 i) { return aLayer[i]; } - const SdrLayer* GetLayer(sal_uInt16 i) const { return aLayer[i]; } + sal_uInt16 GetLayerCount() const { return sal_uInt16(aLayer.size()); } + SdrLayer* GetLayer(sal_uInt16 i) { return aLayer[i]; } + const SdrLayer* GetLayer(sal_uInt16 i) const { return aLayer[i]; } - sal_uInt16 GetLayerPos(SdrLayer* pLayer) const; + sal_uInt16 GetLayerPos(SdrLayer* pLayer) const; - SdrLayer* GetLayer(const OUString& rName, bool bInherited); - const SdrLayer* GetLayer(const OUString& rName, bool bInherited) const; - SdrLayerID GetLayerID(const OUString& rName, bool bInherited) const; - SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(const_cast<const SdrLayerAdmin*>(this)->GetLayerPerID(nID)); } + SdrLayer* GetLayer(const OUString& rName, bool bInherited); + const SdrLayer* GetLayer(const OUString& rName, bool bInherited) const; + SdrLayerID GetLayerID(const OUString& rName, bool bInherited) const; + SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(const_cast<const SdrLayerAdmin*>(this)->GetLayerPerID(nID)); } const SdrLayer* GetLayerPerID(sal_uInt16 nID) const; - void SetControlLayerName(const OUString& rNewName); - const OUString& GetControlLayerName() const { return maControlLayerName; } + void SetControlLayerName(const OUString& rNewName); + const OUString& GetControlLayerName() const { return maControlLayerName; } }; /* diff --git a/include/svx/svdmark.hxx b/include/svx/svdmark.hxx index 7c5181f8845e..391dbbdc5efb 100644 --- a/include/svx/svdmark.hxx +++ b/include/svx/svdmark.hxx @@ -113,11 +113,6 @@ public: return mpPoints; } - const SdrUShortCont* GetMarkedLines() const - { - return mpLines; - } - const SdrUShortCont* GetMarkedGluePoints() const { return mpGluePoints; @@ -128,11 +123,6 @@ public: return mpPoints; } - SdrUShortCont* GetMarkedLines() - { - return mpLines; - } - SdrUShortCont* GetMarkedGluePoints() { return mpGluePoints; @@ -146,14 +136,6 @@ public: return mpPoints; } - SdrUShortCont* ForceMarkedLines() - { - if(!mpLines) - mpLines = new SdrUShortCont; - - return mpLines; - } - SdrUShortCont* ForceMarkedGluePoints() { if(!mpGluePoints) diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 97394d23f72c..2c9eb47f942d 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -225,15 +225,6 @@ private: sal_uInt32 mnUniqueCommentID; public: - // create a new, unique comment ID - sal_uInt32 GetNextUniqueCommentID(); - - // for export - sal_uInt32 GetUniqueCommentID() const { return mnUniqueCommentID; } - - // for import - void SetUniqueCommentID(sal_uInt32 nNewID) { if(nNewID != mnUniqueCommentID) { mnUniqueCommentID = nNewID; } } - sal_uInt16 nStarDrawPreviewMasterPageNum; SvxForbiddenCharactersTable* mpForbiddenCharactersTable; SdrSwapGraphicsMode nSwapGraphicsMode; @@ -374,7 +365,6 @@ public: void SetLinkManager( sfx2::LinkManager* pLinkMgr ) { pLinkManager = pLinkMgr; } ::comphelper::IEmbeddedHelper* GetPersist() const { return m_pEmbeddedHelper; } - void ClearPersist() { m_pEmbeddedHelper = 0; } void SetPersist( ::comphelper::IEmbeddedHelper *p ) { m_pEmbeddedHelper = p; } // Unit for the symbol coordination @@ -410,11 +400,6 @@ public: // Setting both simultaneously performs a little better void SetUIUnit(FieldUnit eUnit, const Fraction& rScale); - const Fraction& GetUIUnitFact() const { return aUIUnitFact; } - const OUString& GetUIUnitStr() const { return aUIUnitStr; } - int GetUIUnitKomma() const { return nUIUnitKomma; } - bool IsUIOnlyKomma() const { return bUIOnlyKomma; } - static void TakeUnitStr(FieldUnit eUnit, OUString& rStr); void TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars = false, sal_Int32 nNumDigits = -1) const; static void TakeAngleStr(long nAngle, OUString& rStr, bool bNoDegChar = false); @@ -453,30 +438,6 @@ public: bool IsChanged() const { return mbChanged; } virtual void SetChanged(bool bFlg = true); - // PageNotValid means that the model carries objects which are - // anchored on a Page but the Page is invalid. This mark is needed for - // Clipboard/Drag&Drop. - bool IsPageNotValid() const { return bPageNotValid; } - void SetPageNotValid(bool bJa = true) { bPageNotValid=bJa; } - - // Setting this flag to sal_True, graphic objects are saved - // portably. Meta files will eventually implicitly changed, i.e. during save. - // Default=FALSE. Flag is not persistent. - bool IsSavePortable() const { return bSavePortable; } - void SetSavePortable(bool bJa = true) { bSavePortable=bJa; } - - // If you set this flag to sal_True, the - // pixel objects will be saved (heavily) compressed. - // Default=FALSE. Flag is not persistent. - bool IsSaveCompressed() const { return bSaveCompressed; } - void SetSaveCompressed(bool bJa = true) { bSaveCompressed=bJa; } - - // If true, graphic objects with set Native-Link - // native will be saved. - // Default=FALSE. Flag is not persistent. - bool IsSaveNative() const { return bSaveNative; } - void SetSaveNative(bool bJa = true) { bSaveNative=bJa; } - // If set to sal_True, graphics from graphics objects will: // - not be loaded immediately when loading a document, // but only once they are needed (e.g. displayed). @@ -489,16 +450,6 @@ public: SdrSwapGraphicsMode GetSwapGraphicsMode() const { return nSwapGraphicsMode; } bool IsSaveOLEPreview() const { return bSaveOLEPreview; } - void SetSaveOLEPreview( bool bSet) { bSaveOLEPreview = bSet; } - - // To accelerate the screen output of Bitmaps (especially rotated ones) - // they will be cached. The existence of that cache can be toggled with this - // flag. During the next Paint an image will be remembered or freed. - // If a Bitmap object is placed in Undo its Cache for this object is turned off - // immediately to save memory. - // Default=Cache activated. Flag is not persistent. - bool IsBitmapCaching() const { return !bNoBitmapCaching; } - void SetBitmapCaching(bool bJa = true) { bNoBitmapCaching=!bJa; } // Text frames without filling can be select with a mouse click by default (sal_False). // With this flag set to true you can hit them only in the area in which text is to be @@ -554,7 +505,6 @@ public: void EndUndo(); // close Undo group void AddUndo(SdrUndoAction* pUndo); sal_uInt16 GetUndoBracketLevel() const { return nUndoLevel; } - const SdrUndoGroup* GetAktUndoGroup() const { return pAktUndoGroup; } // only after the first BegUndo or before the last EndUndo: void SetUndoComment(const OUString& rComment); void SetUndoComment(const OUString& rComment, const OUString& rObjDescr); @@ -562,7 +512,6 @@ public: // The Undo management is only done if not NotifyUndoAction-Handler is set. // Default is 16. Minimal MaxUndoActionCount is 1! void SetMaxUndoActionCount(sal_uIntPtr nCount); - sal_uIntPtr GetMaxUndoActionCount() const { return nMaxUndoCount; } void ClearUndoBuffer(); bool HasUndoActions() const; @@ -577,7 +526,6 @@ public: // When calling the handler ownership is transferred; // The UndoAction belongs to the Handler, not the SdrModel. void SetNotifyUndoActionHdl(const Link<>& rLink) { aUndoLink=rLink; } - const Link<>& GetNotifyUndoActionHdl() const { return aUndoLink; } /** application can set its own undo manager, BegUndo, EndUndo and AddUndoAction calls are routed to this interface if given */ @@ -593,19 +541,6 @@ public: undo actions for this model. */ SdrUndoFactory& GetSdrUndoFactory() const; - // You can set a handler which will be called multiple times while - // streaming and which estimates the progress of the function. - // The handler needs to have this signature: - // void class::IOProgressHdl(const USHORT& nPercent); - // The first call of the handler will be with 0. The last call with 100. - // In between there will at most be 99 calls with 1..99. - // You can thus initialise the progres bar with 0 and close it on 100. - // Mind that the handler will also be called if the App serves Draw data in the - // office wide Draw-Exchange-Format because that happens through streaming into - // a MemoryStream. - void SetIOProgressHdl(const Link<>& rLink) { aIOProgressLink=rLink; } - const Link<>& GetIOProgressHdl() const { return aIOProgressLink; } - // Accessor methods for Palettes, Lists and Tabeles // FIXME: this badly needs re-factoring ... XPropertyListRef GetPropertyList( XPropertyListType t ) const { return maProperties[ t ]; } @@ -669,7 +604,6 @@ public: static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelImplementationId(); virtual ImageMap* GetImageMapForObject(SdrObject*){return NULL;}; - virtual sal_Int32 GetHyperlinkCount(SdrObject*){return 0;} /** enables (true) or disables (false) recording of undo actions If undo actions are added while undo is disabled, they are deleted. diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 186a33b1eacd..5e0b0b1c67ea 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -207,16 +207,11 @@ public: // The interface might maybe be changed in the future because of Ortho-Drag void SetDragMode(SdrDragMode eMode); SdrDragMode GetDragMode() const { return meDragMode; } - bool ChkDragMode(SdrDragMode eMode) const; void SetFrameHandles(bool bOn); bool IsFrameHandles() const { return mbForceFrameHandles; } sal_uIntPtr GetMarkableObjCount() const; - // Limit. Exceeding the limit causes an implicite switch to FrameHandles. default=50. - void SetFrameHandlesLimit(sal_uInt16 nCount) { mnFrameHandlesLimit=nCount; } - sal_uInt16 GetFrameHandlesLimit() const { return mnFrameHandlesLimit; } - void SetEditMode(SdrViewEditMode eMode); SdrViewEditMode GetEditMode() const { return meEditMode; } @@ -340,11 +335,9 @@ public: // Mark all points within this rectangular alle Punkte (View coordinates) bool MarkPoints(const Rectangle& rRect, bool bUnmark=false) { return MarkPoints(&rRect,bUnmark); } bool UnmarkPoint(SdrHdl& rHdl) { return MarkPoint(rHdl,true); } - bool UnMarkPoint(SdrHdl& rHdl) { return MarkPoint(rHdl,true); } bool IsPointMarked(const SdrHdl& rHdl) const { ForceUndirtyMrkPnt(); return rHdl.IsSelected(); } bool MarkAllPoints() { return MarkPoints(NULL,false); } bool UnmarkAllPoints() { return MarkPoints(NULL,true); } - bool UnMarkAllPoints() { return MarkPoints(NULL,true); } // Selects the first marked point (P1) which is hit by rPnt // and from there it searches the first non-marked point(P2). @@ -374,7 +367,6 @@ public: // Are Handles visible during TextEdit (in double size)? // Persistent, default=FALSE void SetMarkHdlWhenTextEdit(bool bOn) { mbMarkHdlWhenTextEdit=bOn; } - bool IsMarkHdlWhenTextEdit() const { return mbMarkHdlWhenTextEdit; } bool HasMarkableGluePoints() const; bool HasMarkedGluePoints() const; @@ -401,8 +393,6 @@ public: static bool IsGluePoint(const SdrHdl& rHdl) { return rHdl.GetKind()==HDL_GLUE; } // Mark all points within this rectangular (View coordinates) - bool MarkGluePoints(const Rectangle& rRect) { return MarkGluePoints(&rRect,false); } - bool UnmarkGluePoints(const Rectangle& rRect) { return MarkGluePoints(&rRect,true); } bool MarkAllGluePoints() { return MarkGluePoints(NULL,false); } bool UnmarkAllGluePoints() { return MarkGluePoints(NULL,true); } @@ -435,7 +425,6 @@ public: const Rectangle& GetMarkedGluePointsRect() const; // Enclosing rectangle of all marked glue points const Rectangle& GetAllMarkedRect() const { return GetMarkedObjRect(); } Rectangle GetAllMarkedBoundRect() const { return GetMarkedObjBoundRect(); } - const Rectangle& GetAllMarkedPointsRect() const { return GetMarkedPointsRect(); } Point GetGridOffset() const; // Will be always called, if the list of marked objects might be changed. @@ -451,10 +440,6 @@ public: // separately. The method returns sal_True, if at least one group was entered. bool EnterMarkedGroup(); - // Get the center point of the last Crook-Dragging. Den kann man - // bei einem anschliessenden Rotate sinnvoll als Drehmittelpunkt setzen. - const Point& GetLastCrookCenter() const { return maLastCrookCenter; } - // Is set by DragView automatically when finishing a Crook-Drag. void SetLastCrookCenter(const Point& rPt) { maLastCrookCenter=rPt; } @@ -465,7 +450,6 @@ public: // End point of the axis of reflextion const Point& GetRef2() const { return maRef1; } void SetRef2(const Point& rPt); - void UnmarkObj(SdrObject* pObj); }; diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 3bc77dfbe11b..652cd9f5fa1d 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -368,7 +368,6 @@ public: Point GetGridOffset() const { return aGridOffset; } void SetGridOffset( const Point& rGridOffset ){ aGridOffset = rGridOffset; } protected: - void ImpDeleteUserData(); Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const; // for GetDragComment @@ -445,13 +444,6 @@ public: SdrObjUserCall* GetUserCall() const { return pUserCall;} void SendUserCall(SdrUserCallType eUserCall, const Rectangle& rBoundRect) const; - // Such a reference point is for instance: - // - a symbol's point that should snap to the raster when inserting the symbol - // - or an image's fix point within an animation object - virtual bool HasRefPoint() const; - virtual Point GetRefPoint() const; - virtual void SetRefPoint(const Point& rPnt); - // #i68101# // An object may have a user-set Name (Get/SetName()), e.g SdrGrafObj, SdrObjGroup // or SdrOle2Obj. @@ -790,9 +782,6 @@ public: void NbcMirrorGluePoints(const Point& rRef1, const Point& rRef2); void NbcShearGluePoints (const Point& rRef, long nAngle, double tn, bool bVShear); - // is object an edge? - virtual bool IsEdge() const; - // if bTail1 is true, line start, otherwise line end // if pObj is null disconnect virtual void ConnectToNode(bool bTail1, SdrObject* pObj); diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx index 8e44eabd6a53..de78e8c1b8fd 100644 --- a/include/svx/svdoedge.hxx +++ b/include/svx/svdoedge.hxx @@ -73,7 +73,6 @@ public: inline void SetConnectorId( sal_uInt16 nId ) { nConId = nId; }; inline bool IsBestConnection() const { return bBestConn; }; - inline bool IsBestVertex() const { return bBestVertex; }; inline bool IsAutoVertex() const { return bAutoVertex; }; inline sal_uInt16 GetConnectorId() const { return nConId; }; inline SdrObject* GetObject() const { return pObj; } @@ -228,7 +227,6 @@ public: virtual SdrGluePoint GetCornerGluePoint(sal_uInt16 nNum) const SAL_OVERRIDE; virtual const SdrGluePointList* GetGluePointList() const SAL_OVERRIDE; virtual SdrGluePointList* ForceGluePointList() SAL_OVERRIDE; - virtual bool IsEdge() const SAL_OVERRIDE; // bTail1=TRUE: Linienanfang, sonst LinienEnde // pObj=NULL: Disconnect diff --git a/include/svx/svdogrp.hxx b/include/svx/svdogrp.hxx index 6e9f48e5a6e2..54c52c9125d2 100644 --- a/include/svx/svdogrp.hxx +++ b/include/svx/svdogrp.hxx @@ -59,9 +59,6 @@ public: virtual void SetObjList(SdrObjList* pNewObjList) SAL_OVERRIDE; virtual void SetPage(SdrPage* pNewPage) SAL_OVERRIDE; virtual void SetModel(SdrModel* pNewModel) SAL_OVERRIDE; - virtual bool HasRefPoint() const SAL_OVERRIDE; - virtual Point GetRefPoint() const SAL_OVERRIDE; - virtual void SetRefPoint(const Point& rPnt) SAL_OVERRIDE; virtual SdrObjList* GetSubList() const SAL_OVERRIDE; virtual const Rectangle& GetCurrentBoundRect() const SAL_OVERRIDE; diff --git a/include/svx/svdopath.hxx b/include/svx/svdopath.hxx index ea1bd16ff902..f625668498c9 100644 --- a/include/svx/svdopath.hxx +++ b/include/svx/svdopath.hxx @@ -150,7 +150,6 @@ public: // special functions for Bezier-polygon handling bool IsClosed() const { return meKind==OBJ_POLY || meKind==OBJ_PATHPOLY || meKind==OBJ_PATHFILL || meKind==OBJ_FREEFILL || meKind==OBJ_SPLNFILL; } bool IsLine() const { return meKind==OBJ_PLIN || meKind==OBJ_PATHPLIN || meKind==OBJ_PATHLINE || meKind==OBJ_FREELINE || meKind==OBJ_SPLNLINE || meKind==OBJ_LINE; } - bool IsFreeHand() const { return meKind==OBJ_FREELINE || meKind==OBJ_FREEFILL; } bool IsBezier() const { return meKind==OBJ_PATHLINE || meKind==OBJ_PATHFILL; } bool IsSpline() const { return meKind==OBJ_SPLNLINE || meKind==OBJ_SPLNFILL; } diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index b0924251d52f..0b62baba942d 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -370,7 +370,6 @@ public: virtual sal_Int32 CheckTextHit(const Point& rPnt) const; void SetDisableAutoWidthOnDragging(bool bOn) { bDisableAutoWidthOnDragging=bOn; } - bool IsDisableAutoWidthOnDragging() { return bDisableAutoWidthOnDragging; } void NbcSetText(const OUString& rStr); void SetText(const OUString& rStr); void NbcSetText(SvStream& rInput, const OUString& rBaseURL, sal_uInt16 eFormat); diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx index 2c83427daafc..8a7977c41d87 100644 --- a/include/svx/svdpage.hxx +++ b/include/svx/svdpage.hxx @@ -63,14 +63,11 @@ enum SdrInsertReasonKind { }; class SdrInsertReason { - const SdrObject* pRefObj; SdrInsertReasonKind eReason; public: - SdrInsertReason(): pRefObj(NULL),eReason(SDRREASON_UNKNOWN) {} - SdrInsertReason(SdrInsertReasonKind eR,const SdrObject* pO=NULL): pRefObj(pO),eReason(eR) {} - void SetReferenceObject(const SdrObject* pO) { pRefObj=pO; } - const SdrObject* GetReferenceObject() const { return pRefObj; } - void SetReason(SdrInsertReasonKind eR) { eReason=eR; } + SdrInsertReason(): eReason(SDRREASON_UNKNOWN) {} + SdrInsertReason(SdrInsertReasonKind eR): eReason(eR) {} + SdrInsertReasonKind GetReason() const { return eReason; } }; @@ -113,10 +110,6 @@ public: virtual SdrObjList* Clone() const; - // !!! This method is only for people who know exactly what they do !!! - - // #110094# This should not be needed (!) - void SetObjOrdNumsDirty() { bObjOrdNumsDirty=true; } void CopyObjects(const SdrObjList& rSrcList); /// clean up everything (without Undo) void Clear(); @@ -313,8 +306,6 @@ class SdrPageGridFrame public: SdrPageGridFrame(const Rectangle& rPaper): aPaper(rPaper), aUserArea(rPaper) {} SdrPageGridFrame(const Rectangle& rPaper, const Rectangle& rUser): aPaper(rPaper), aUserArea(rUser) {} - void SetPaperRect(const Rectangle& rPaper) { aPaper=rPaper; } - void SetUserArea(const Rectangle& rUser) { aUserArea=rUser; } const Rectangle& GetPaperRect() const { return aPaper; } const Rectangle& GetUserArea() const { return aUserArea; } }; @@ -332,25 +323,6 @@ public: void Clear(); sal_uInt16 GetCount() const { return sal_uInt16(aList.size()); } void Insert(const SdrPageGridFrame& rGF) { aList.push_back(new SdrPageGridFrame(rGF)); } - void Insert(const SdrPageGridFrame& rGF, sal_uInt16 nPos) - { - if(nPos==0xFFFF) - aList.push_back(new SdrPageGridFrame(rGF)); - else - aList.insert(aList.begin()+nPos,new SdrPageGridFrame(rGF)); - } - void Delete(sal_uInt16 nPos) - { - SdrPageGridFrame* p = aList[nPos]; - aList.erase(aList.begin()+nPos); - delete p; - } - void Move(sal_uInt16 nPos, sal_uInt16 nNewPos) - { - SdrPageGridFrame* p = aList[nPos]; - aList.erase(aList.begin()+nPos); - aList.insert(aList.begin()+nNewPos,p); - } SdrPageGridFrame& operator[](sal_uInt16 nPos) { return *GetObject(nPos); } const SdrPageGridFrame& operator[](sal_uInt16 nPos) const { return *GetObject(nPos); } }; @@ -545,8 +517,6 @@ public: /// if pRect != null, then the pages that are intersected by this Rect, /// otherwise the visible pages virtual const SdrPageGridFrameList* GetGridFrameList(const SdrPageView* pPV, const Rectangle* pRect) const; - bool IsObjectsNotPersistent() const { return mbObjectsNotPersistent; } - void SetObjectsNotPersistent(bool b) { mbObjectsNotPersistent = b; } css::uno::Reference< css::uno::XInterface > getUnoPage(); diff --git a/include/svx/svdpagv.hxx b/include/svx/svdpagv.hxx index 8bf305f6be60..1cc20e1e6c12 100644 --- a/include/svx/svdpagv.hxx +++ b/include/svx/svdpagv.hxx @@ -214,7 +214,6 @@ public: void LogicToPagePos(Point& rPnt) const { rPnt-=aPgOrg; } void LogicToPagePos(Rectangle& rRect) const { rRect.Move(-aPgOrg.X(),-aPgOrg.Y()); } void PagePosToLogic(Point& rPnt) const { rPnt+=aPgOrg; } - void PagePosToLogic(Rectangle& rRect) const { rRect.Move(aPgOrg.X(),aPgOrg.Y()); } void SetVisibleLayers(const SetOfByte& rSet) { aLayerVisi=rSet; InvalidateAllWin(); } const SetOfByte& GetVisibleLayers() const { return aLayerVisi; } @@ -229,7 +228,6 @@ public: void SetHelpLine(sal_uInt16 nNum, const SdrHelpLine& rNewHelpLine); void DeleteHelpLine(sal_uInt16 nNum); void InsertHelpLine(const SdrHelpLine& rHL, sal_uInt16 nNum=0xFFFF); - void MoveHelpLine(sal_uInt16 nNum, sal_uInt16 nNewNum) { aHelpLines.Move(nNum,nNewNum); } // Liefert sal_True, wenn Layer des Obj sichtbar und nicht gesperrt. // Beim Gruppenobjekt muss wenigstens ein Member sichtbar sein, diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx index 592e1b8a7cef..b7c9d508e6a8 100644 --- a/include/svx/svdpntv.hxx +++ b/include/svx/svdpntv.hxx @@ -258,9 +258,6 @@ protected: void ImpSetGlueVisible2(bool bOn) { if (bGlueVisible2!=bOn) { bGlueVisible2=bOn; if (!bGlueVisible && !bGlueVisible3 && !bGlueVisible4) GlueInvalidate(); } } void ImpSetGlueVisible3(bool bOn) { if (bGlueVisible3!=bOn) { bGlueVisible3=bOn; if (!bGlueVisible && !bGlueVisible2 && !bGlueVisible4) GlueInvalidate(); } } void ImpSetGlueVisible4(bool bOn) { if (bGlueVisible4!=bOn) { bGlueVisible4=bOn; if (!bGlueVisible && !bGlueVisible2 && !bGlueVisible3) GlueInvalidate(); } } - bool ImpIsGlueVisible2() const { return bGlueVisible2; } - bool ImpIsGlueVisible3() const { return bGlueVisible3; } - bool ImpIsGlueVisible4() const { return bGlueVisible4; } public: bool ImpIsGlueVisible() { return bGlueVisible || bGlueVisible2 || bGlueVisible3 || bGlueVisible4; } @@ -269,10 +266,6 @@ protected: virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE; void GlueInvalidate() const; - void ShowEncirclement(OutputDevice* pOut); - void HideEncirclement(OutputDevice* pOut); - void DrawEncirclement(OutputDevice* pOut) const; - // ModelHasChanged wird gerufen, sobald nach beliebig vielen HINT_OBJCHG // das System wieder idle ist (StarView-Timer). Wer diese Methode ueberlaed, // muss unbedingt ModelHasChanged() der Basisklasse rufen. @@ -308,17 +301,14 @@ public: // Pixelwerten logische Werte berechnen kann. void SetActualWin(const OutputDevice* pWin); void SetMinMoveDistancePixel(sal_uInt16 nVal) { nMinMovPix=nVal; TheresNewMapMode(); } - sal_uInt16 GetMinMoveDistancePixel() const { return (sal_uInt16)nMinMovPix; } void SetHitTolerancePixel(sal_uInt16 nVal) { nHitTolPix=nVal; TheresNewMapMode(); } sal_uInt16 GetHitTolerancePixel() const { return (sal_uInt16)nHitTolPix; } // data read access on logic HitTolerance and MinMoveTolerance sal_uInt16 getHitTolLog() const { return nHitTolLog; } - sal_uInt16 getMinMovLog() const { return nMinMovLog; } // Flag zur Visualisierung von Gruppen abfragen/testen bool DoVisualizeEnteredGroup() const { return bVisualizeEnteredGroup; } - void SetVisualizeEnteredGroup(bool bNew) { bVisualizeEnteredGroup = bNew; } // Am DragStatus laesst sich beispielsweise erfragen, welche // entfernung bereits gedraggd wurde, etc. @@ -392,7 +382,6 @@ public: bool IsGridFront() const { return bGridFront ; } // Rastergitter ueber die Objekte druebermalen oder dahinter bool IsHlplVisible() const { return bHlplVisible; } // Hilfslinien der Seiten malen oder nicht bool IsHlplFront() const { return bHlplFront ; } // Hilfslinie ueber die Objekte druebermalen oder dahinter - bool IsGlueVisible() const { return bGlueVisible; } // Konnektoren der objekte sichtbar oder nicht Color GetGridColor() const { return maGridColor;} void SetPageVisible(bool bOn = true) { bPageVisible=bOn; InvalidateAllWin(); } void SetPageBorderVisible(bool bOn = true) { bPageBorderVisible=bOn; InvalidateAllWin(); } @@ -454,10 +443,6 @@ public: void SetNotPersistDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll); void MergeNotPersistDefaultAttr(SfxItemSet& rAttr, bool bOnlyHardAttr) const; - // use this mode as mode to draw all internal GraphicManager objects with - GraphicManagerDrawFlags GetGraphicManagerDrawMode() const { return nGraphicManagerDrawMode; } - void SetGraphicManagerDrawMode( GraphicManagerDrawFlags nMode ) { nGraphicManagerDrawMode = nMode; } - // SwapIn (z.B. von Grafiken) asynchron durchfuehren. Also nicht // beim Paint sofort nachladen, sondern dort das Nachladen anstossen. // Nach Abschluss des Nachladens wird das Objekt dann angezeigt. @@ -491,7 +476,6 @@ public: void SetAnimationEnabled( bool bEnable=true ); // set/unset pause state for animations - bool IsAnimationPause() const { return bAnimationPause; } void SetAnimationPause( bool bSet ); // Verhalten beim Starten von Animation im Paint-Handler: @@ -499,7 +483,6 @@ public: // 2. Nur die Ersatzdarstellung der Animation zeichnen ( SDR_ANIMATION_DONT_ANIMATE ) // 3. Nicht starten und nichts ersatzweise ausgeben ( SDR_ANIMATION_DISABLE ) void SetAnimationMode( const SdrAnimationMode eMode ); - SdrAnimationMode GetAnimationMode() const { return eAnimationMode; } // bei bShow=sal_False wird der Browser destruiert #ifdef DBG_UTIL diff --git a/include/svx/svdpoev.hxx b/include/svx/svdpoev.hxx index e7a47c617c83..871c3f9fd2a9 100644 --- a/include/svx/svdpoev.hxx +++ b/include/svx/svdpoev.hxx @@ -73,7 +73,6 @@ public: // Alle markierten Polylines werden zu Polygonen, alle offenen // Bezierkurven zu geschlossenen. - void CloseMarkedObjects(bool bToggle=false, bool bOpen=false) SAL_OVERRIDE; // , long nOpenDistance=0); bool IsOpenCloseMarkedObjectsPossible() const SAL_OVERRIDE; SdrObjClosedKind GetMarkedObjectsClosedState() const SAL_OVERRIDE; diff --git a/include/svx/svdsnpv.hxx b/include/svx/svdsnpv.hxx index 1554fb0c4402..238475880321 100644 --- a/include/svx/svdsnpv.hxx +++ b/include/svx/svdsnpv.hxx @@ -109,7 +109,6 @@ public: const Fraction& GetSnapGridWidthY() const { return aSnapWdtY; } void SetSnapMagnetic(const Size& rSiz) { if (rSiz!=aMagnSiz) { aMagnSiz=rSiz; } } - const Size& GetSnapMagnetic() const { return aMagnSiz; } void SetSnapMagneticPixel(sal_uInt16 nPix) { nMagnSizPix=nPix; } sal_uInt16 GetSnapMagneticPixel() const { return nMagnSizPix; } @@ -146,21 +145,6 @@ public: void SetMoveSnapOnlyTopLeft(bool bOn) { bMoveSnapOnlyTopLeft=bOn; } bool IsMoveSnapOnlyTopLeft() const { return bMoveSnapOnlyTopLeft; } - // auxiliary lines fixed (not moveable) - // persistent, Default=FALSE. - bool IsHlplFixed() const { return bHlplFixed; } - void SetHlplFixed(bool bOn) { bHlplFixed=bOn; } - - bool IsMoveMFrmSnap() const { return bMoveMFrmSnap; } // Fang des LogFram aller markierten Objekte - bool IsMoveOFrmSnap() const { return bMoveOFrmSnap; } // Fang aller LogFram der markierten Objekte - bool IsMoveOPntSnap() const { return bMoveOPntSnap; } // Fang ausgepraegter Punkte der markierten Objekte - bool IsMoveOConSnap() const { return bMoveOConSnap; } // Fang der Konnektoren der markierten Objekte - - void SetMoveMFrmSnap(bool bOn) { bMoveMFrmSnap=bOn; } - void SetMoveOFrmSnap(bool bOn) { bMoveOFrmSnap=bOn; } - void SetMoveOPntSnap(bool bOn) { bMoveOPntSnap=bOn; } - void SetMoveOConSnap(bool bOn) { bMoveOConSnap=bOn; } - // #114409#-1 Migrate PageOrigin bool BegSetPageOrg(const Point& rPnt); void MovSetPageOrg(const Point& rPnt); diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx index 7ce7b8d8f807..221b7ad3a405 100644 --- a/include/svx/svdtrans.hxx +++ b/include/svx/svdtrans.hxx @@ -302,10 +302,6 @@ public: SdrFormatter(MapUnit eSrc, FieldUnit eDst) { eSrcMU=eSrc; bSrcFU=false; eDstFU=eDst; bDstFU=true; bDirty=true; } SdrFormatter(FieldUnit eSrc, MapUnit eDst) { eSrcFU=eSrc; bSrcFU=true; eDstMU=eDst; bDstFU=false; bDirty=true; } SdrFormatter(FieldUnit eSrc, FieldUnit eDst) { eSrcFU=eSrc; bSrcFU=true; eDstFU=eDst; bDstFU=true; bDirty=true; } - void SetSourceUnit(MapUnit eSrc) { eSrcMU=eSrc; bSrcFU=false; bDirty=true; } - void SetSourceUnit(FieldUnit eSrc) { eSrcFU=eSrc; bSrcFU=true; bDirty=true; } - void SetDestinationUnit(MapUnit eDst) { eDstMU=eDst; bDstFU=false; bDirty=true; } - void SetDestinationUnit(FieldUnit eDst) { eDstFU=eDst; bDstFU=true; bDirty=true; } void TakeStr(long nVal, OUString& rStr) const; static void TakeUnitStr(MapUnit eUnit, OUString& rStr); static void TakeUnitStr(FieldUnit eUnit, OUString& rStr); diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 9f29a315c82c..6b4773f72fc7 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -107,7 +107,6 @@ public: virtual bool CanSdrRepeat(SdrView& rView) const SAL_OVERRIDE; virtual void SdrRepeat(SdrView& rView) SAL_OVERRIDE; void SetRepeatFunction(SdrRepeatFunc eFunc) { eFunction=eFunc; } - SdrRepeatFunc GetRepeatFunction() const { return eFunction; } }; /** @@ -189,9 +188,6 @@ public: SdrUndoMoveObj(SdrObject& rNewObj, const Size& rDist): SdrUndoObj(rNewObj),aDistance(rDist) {} virtual ~SdrUndoMoveObj(); - void SetDistance(const Size& rDist) { aDistance=rDist; } - const Size& GetDistance() const { return aDistance; } - virtual void Undo() SAL_OVERRIDE; virtual void Redo() SAL_OVERRIDE; @@ -247,13 +243,8 @@ protected: SdrUndoObjList(SdrObject& rNewObj, bool bOrdNumDirect = false); virtual ~SdrUndoObjList(); - void SetView(SdrView* pView1, SdrPageView* pPageView1) { pView=pView1; pPageView=pPageView1; } bool IsOwner() { return bOwner; } void SetOwner(bool bNew); - -private: - sal_uInt32 GetOrdNum() const { return nOrdNum;} - void SetOrdNum(sal_uInt32 nOrdNum_); }; /** diff --git a/include/svx/svdview.hxx b/include/svx/svdview.hxx index ab97b798274e..29673efeee16 100644 --- a/include/svx/svdview.hxx +++ b/include/svx/svdview.hxx @@ -129,9 +129,6 @@ struct SVX_DLLPUBLIC SdrViewEvent public: SdrViewEvent(); ~SdrViewEvent(); - - // nEventKind is SdrMouseEventKind::BUTTONDOWN, SdrMouseEventKind::MOVE or SdrMouseEventKind::BUTTONUP - void SetMouseEvent(const MouseEvent& rMEvt, SdrMouseEventKind nEventKind); }; // helper class for all D&D overlays @@ -190,10 +187,8 @@ public: bool IsExtendedKeyInputDispatcherEnabled() const { return bNoExtendedKeyDispatcher; } void EnableExtendedCommandEventDispatcher(bool bOn) { bNoExtendedCommandDispatcher=!bOn; } - bool IsExtendedCommandEventDispatcherEnabled() const { return bNoExtendedCommandDispatcher; } void EnableTextEditOnObjectsWithoutTextIfTextTool(bool bOn) { bTextEditOnObjectsWithoutTextIfTextTool=bOn; } - bool IsEnableTextEditOnObjectsWithoutTextIfTextToolEnabled() const { return bTextEditOnObjectsWithoutTextIfTextTool; } void SetMasterPagePaintCaching(bool bOn); bool IsMasterPagePaintCaching() const { return mbMasterPagePaintCaching; } diff --git a/include/svx/svdxcgv.hxx b/include/svx/svdxcgv.hxx index ec5d3be323c3..114adfce1231 100644 --- a/include/svx/svdxcgv.hxx +++ b/include/svx/svdxcgv.hxx @@ -115,7 +115,6 @@ public: static bool Yank( sal_uIntPtr nFormat = SDR_ANYFORMAT ); static bool Paste( vcl::Window* pWin = NULL, sal_uIntPtr nFormat = SDR_ANYFORMAT ); - bool PasteClipboard( OutputDevice* pOut = NULL, sal_uIntPtr nFormat = SDR_ANYFORMAT, sal_uInt32 nOptions = 0 ); }; #endif // INCLUDED_SVX_SVDXCGV_HXX diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx index 696666b38306..369a58148323 100644 --- a/include/svx/svxdlg.hxx +++ b/include/svx/svxdlg.hxx @@ -69,13 +69,13 @@ public: class AbstractFmShowColsDialog : public VclAbstractDialog { - public: +public: virtual void SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols)= 0; }; class AbstractSvxZoomDialog : public VclAbstractDialog { - public: +public: virtual void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) = 0; virtual void HideButton( ZoomButtonId nBtnId )= 0; virtual const SfxItemSet* GetOutputItemSet() const = 0 ; @@ -83,9 +83,7 @@ class AbstractSvxZoomDialog : public VclAbstractDialog class AbstractSpellDialog : public VclAbstractDialog { - public: - virtual void SetLanguage( sal_uInt16 nLang ) = 0; - virtual bool Close() = 0; +public: virtual void Invalidate() = 0; virtual vcl::Window* GetWindow() = 0; virtual SfxBindings& GetBindings() = 0; @@ -95,17 +93,10 @@ typedef sal_IntPtr (*PLinkStub)( void*, void* ); class AbstractSearchProgress :public VclAbstractRefreshableDialog { -public: - virtual void SetFileType( const OUString& rType ) = 0; - virtual void SetDirectory( const INetURLObject& rURL ) = 0; - virtual PLinkStub GetLinkStubCleanUpHdl() = 0; }; class AbstractTakeProgress :public VclAbstractRefreshableDialog { -public: - virtual void SetFile( const INetURLObject& rURL ) = 0; - virtual PLinkStub GetLinkStubCleanUpHdl() = 0; }; class AbstractTitleDialog :public VclAbstractDialog @@ -132,18 +123,6 @@ public: class AbstractSvxHlinkDlgMarkWnd :public VclAbstractDialog { -public: - virtual bool MoveTo ( Point aNewPos ) const = 0; - virtual bool ConnectToDialog( bool bDoit = true ) const = 0; - virtual void RefreshTree ( const OUString& aStrURL ) = 0; - virtual void SelectEntry ( const OUString& aStrMark ) = 0; - virtual sal_uInt16 SetError( sal_uInt16 nError) = 0; - // in class Window - virtual void SetSizePixel( const Size& rNewSize ) = 0; - virtual Size GetSizePixel() const = 0; - virtual void Hide() = 0; - virtual bool IsVisible() const = 0; - virtual void Invalidate( InvalidateFlags nFlags = InvalidateFlags::NONE ) = 0; }; class AbstractSvxSearchSimilarityDialog :public VclAbstractDialog @@ -201,8 +180,6 @@ public: class AbstractSvxMessDialog :public VclAbstractDialog { -public: - virtual void SetButtonText( sal_uInt16 nBtnId, const OUString& rNewTxt ) = 0; }; class AbstractSvxMultiPathDialog : public VclAbstractDialog @@ -263,8 +240,6 @@ public: virtual void ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) = 0; virtual void DontChangeAuthor() = 0; virtual void HideAuthor() = 0; - virtual void SetReadonlyPostIt(bool bDisable) = 0; - virtual bool IsOkEnabled() const = 0; virtual vcl::Window * GetWindow() = 0; }; @@ -323,9 +298,6 @@ public: virtual VclAbstractRefreshableDialog * CreateActualizeProgressDialog( vcl::Window* pParent, GalleryTheme* pThm ) = 0; - virtual AbstractSearchProgress * CreateSearchProgressDialog( vcl::Window* pParent, - const INetURLObject& rStartURL ) = 0; - virtual AbstractTakeProgress * CreateTakeProgressDialog( vcl::Window* pParent ) = 0; virtual AbstractTitleDialog * CreateTitleDialog( vcl::Window* pParent, const OUString& rOldText ) = 0; virtual AbstractGalleryIdDialog * CreateGalleryIdDialog( vcl::Window* pParent, @@ -337,7 +309,6 @@ public: const OUString& rURL, const OUString& rAltText, const OUString& rDescription, const OUString& rTarget, const OUString& rName, TargetList& rTargetList ) = 0; - virtual AbstractSvxHlinkDlgMarkWnd* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId ) =0; virtual SfxAbstractTabDialog* CreateTabItemDialog(vcl::Window* pParent, const SfxItemSet& rSet) = 0; @@ -383,10 +354,6 @@ public: virtual AbstractSvxObjectNameDialog* CreateSvxObjectNameDialog(vcl::Window* pParent, const OUString& rName ) = 0; virtual AbstractSvxObjectTitleDescDialog* CreateSvxObjectTitleDescDialog(vcl::Window* pParent, const OUString& rTitle, const OUString& rDescription) = 0; - virtual AbstractSvxMessDialog * CreateSvxMessDialog( vcl::Window* pParent, sal_uInt32 nResId, - const OUString& rText, const OUString& rDesc, - Image* pImg = NULL ) = 0; - virtual AbstractSvxMultiPathDialog * CreateSvxMultiPathDialog(vcl::Window* pParent) = 0 ; virtual AbstractSvxMultiPathDialog * CreateSvxPathSelectDialog(vcl::Window* pParent) = 0 ; virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg (vcl::Window* pParent, @@ -438,7 +405,6 @@ public: bool bPrevNext = false) = 0; virtual VclAbstractDialog* CreateSvxScriptOrgDialog( vcl::Window* pParent, const OUString& rLanguage ) SAL_OVERRIDE = 0; - virtual CreateSvxDistributePage GetSvxDistributePageCreatorFunc() = 0; virtual DialogGetRanges GetDialogGetRangesFunc() = 0; virtual AbstractScriptSelectorDialog* diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx index 2f66ebe864f2..072e3776d4a9 100644 --- a/include/svx/view3d.hxx +++ b/include/svx/view3d.hxx @@ -123,131 +123,11 @@ public: double GetDefaultCamPosZ(); - double &DefaultScaleX () - { - return fDefaultScaleX; - } - - double DefaultScaleX () const - { - return fDefaultScaleX; - } - - double &DefaultScaleY () - { - return fDefaultScaleY; - } - - double DefaultScaleY () const - { - return fDefaultScaleY; - } - - double &DefaultScaleZ () - { - return fDefaultScaleZ; - } - - double DefaultScaleZ () const - { - return fDefaultScaleZ; - } - - double &DefaultRotateX () - { - return fDefaultRotateX; - } - - double DefaultRotateX () const - { - return fDefaultRotateX; - } - - double &DefaultRotateY () - { - return fDefaultRotateY; - } - - double DefaultRotateY () const - { - return fDefaultRotateY; - } - - double &DefaultRotateZ () - { - return fDefaultRotateZ; - } - - double DefaultRotateZ () const - { - return fDefaultRotateZ; - } - - double &DefaultExtrusionDeepth () - { - return fDefaultExtrusionDeepth; - } - - double DefaultExtrusionDeepth () const - { - return fDefaultExtrusionDeepth; - } - double GetDefaultCamFocal(); - double &DefaultLightIntensity () - { - return fDefaultLightIntensity; - } - - double DefaultLightIntensity () const - { - return fDefaultLightIntensity; - } - - double &DefaultAmbientIntensity () - { - return fDefaultAmbientIntensity; - } - - double DefaultAmbientIntensity () const - { - return fDefaultAmbientIntensity; - } - - const Color &DefaultLightColor () const - { - return aDefaultLightColor; - } - - Color DefaultLightColor () - { - return aDefaultLightColor; - } - - const Color &DefaultAmbientColor () const - { - return aDefaultAmbientColor; - } - - Color DefaultAmbientColor () - { - return aDefaultAmbientColor; - } - - long GetHDefaultSegments() const { return nHDefaultSegments; } - void SetHDefaultSegments(long nSegs) { nHDefaultSegments = nSegs; } - - long GetVDefaultSegments() const { return nVDefaultSegments; } - void SetVDefaultSegments(long nSegs) { nVDefaultSegments = nSegs; } - bool IsBreak3DObjPossible() const; void Break3DObj(); - bool DoubleSided () const { return bDoubleSided; } - - bool &DoubleSided () { return bDoubleSided; } - SfxItemSet Get3DAttributes(E3dScene* pInScene = NULL, bool bOnly3DAttr=false) const; void Set3DAttributes(const SfxItemSet& rAttr, E3dScene* pInScene = NULL, bool bOnly3DAttr=false); }; diff --git a/include/svx/viewpt3d.hxx b/include/svx/viewpt3d.hxx index e546f20643a0..8ad713a626d6 100644 --- a/include/svx/viewpt3d.hxx +++ b/include/svx/viewpt3d.hxx @@ -87,19 +87,12 @@ class SVX_DLLPUBLIC Viewport3D void SetVPD(double fNewVPD); const basegfx::B3DPoint& GetVRP() const { return aVRP; } - const basegfx::B3DVector& GetVPN() const { return aVPN; } const basegfx::B3DVector& GetVUV() const { return aVUV; } - const basegfx::B3DPoint& GetPRP() const { return aPRP; } - double GetVPD() const { return fVPD; } - double GetNearClipDist() const { return fNearClipDist; } - double GetFarClipDist() const { return fFarClipDist; } void SetProjection(ProjectionType ePrj) { eProjection = ePrj; bTfValid = false; } ProjectionType GetProjection() const { return eProjection; } - void SetAspectMapping(AspectMapType eAsp) - { eAspectMapping = eAsp; bTfValid = false; } AspectMapType GetAspectMapping() { return eAspectMapping; } void SetViewWindow(double fX, double fY, double fW, double fH); diff --git a/include/svx/xit.hxx b/include/svx/xit.hxx index 74fd1cc2442f..446bba1d59f1 100644 --- a/include/svx/xit.hxx +++ b/include/svx/xit.hxx @@ -60,7 +60,6 @@ public: OUString GetName() const { return GetValue(); } void SetName(const OUString& rName) { SetValue(rName); } sal_Int32 GetIndex() const { return nPalIndex; } - void SetIndex(sal_Int32 nIndex) { nPalIndex = nIndex; } bool IsIndex() const { return (nPalIndex >= 0); } /** this static checks if the given NameOrIndex item has a unique name for its value. diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx index 67c19a9c9dc1..499cdc4d62b6 100644 --- a/include/svx/xpoly.hxx +++ b/include/svx/xpoly.hxx @@ -102,7 +102,6 @@ public: void PointsToBezier(sal_uInt16 nFirst); // transformations - void Translate(const Point& rTrans); void Scale(double fSx, double fSy); void Distort(const Rectangle& rRefRect, const XPolygon& rDistortedRect); diff --git a/include/svx/xtable.hxx b/include/svx/xtable.hxx index 6ffe737535db..8d208f9a3c1b 100644 --- a/include/svx/xtable.hxx +++ b/include/svx/xtable.hxx @@ -235,7 +235,6 @@ public: const OUString& GetPath() const { return maPath; } void SetPath(const OUString& rString) { maPath = rString; } - bool IsDirty() const { return mbListDirty; } void SetDirty(bool bDirty = true) { mbListDirty = bDirty; } bool IsEmbedInDocument() const { return mbEmbedInDocument; } |