diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2009-12-07 14:11:32 +0100 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2009-12-07 14:11:32 +0100 |
commit | 7cb692f6794de11cb1e48f94a2c022ee6ed5dd64 (patch) | |
tree | cef61130f2ea4178503f6a79113170fcdeb765db /svx | |
parent | 6ee2de4b7877c3b1bb4cb4ecb6e2ef2dd353c68b (diff) |
#i104312# fixed print objetcs for pictures and graphics; nopw works for drawing objects as well and does not effect form controls
Diffstat (limited to 'svx')
-rwxr-xr-x[-rw-r--r--] | svx/inc/svx/svdpntv.hxx | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx | 12 | ||||
-rwxr-xr-x[-rw-r--r--] | svx/source/svdraw/svdpntv.cxx | 3 |
3 files changed, 18 insertions, 6 deletions
diff --git a/svx/inc/svx/svdpntv.hxx b/svx/inc/svx/svdpntv.hxx index 48523dc97c3b..214bf4914789 100644..100755 --- a/svx/inc/svx/svdpntv.hxx +++ b/svx/inc/svx/svdpntv.hxx @@ -214,10 +214,11 @@ protected: // is this a preview renderer? unsigned mbPreviewRenderer : 1; - // flags for calc for suppressing OLE, CHART or DRAW objects + // flags for calc and sw for suppressing OLE, CHART or DRAW objects unsigned mbHideOle : 1; unsigned mbHideChart : 1; - unsigned mbHideDraw : 1; + unsigned mbHideDraw : 1; // hide draw objects other than form controls + unsigned mbHideFormControl : 1; // hide form controls only public: // #114898# @@ -431,13 +432,15 @@ public: sal_Bool IsPreviewRenderer() const { return (sal_Bool )mbPreviewRenderer; } void SetPreviewRenderer(bool bOn) { if((unsigned)bOn != mbPreviewRenderer) { mbPreviewRenderer=bOn; }} - // access methods for calc hide object modes + // access methods for calc and sw hide object modes bool getHideOle() const { return mbHideOle; } bool getHideChart() const { return mbHideChart; } bool getHideDraw() const { return mbHideDraw; } + bool getHideFormControl() const { return mbHideFormControl; } void setHideOle(bool bNew) { if(bNew != (bool)mbHideOle) mbHideOle = bNew; } void setHideChart(bool bNew) { if(bNew != (bool)mbHideChart) mbHideChart = bNew; } void setHideDraw(bool bNew) { if(bNew != (bool)mbHideDraw) mbHideDraw = bNew; } + void setHideFormControl(bool bNew) { if(bNew != (bool)mbHideFormControl) mbHideFormControl = bNew; } void SetGridCoarse(const Size& rSiz) { aGridBig=rSiz; } void SetGridFine(const Size& rSiz) { aGridFin=rSiz; if (aGridFin.Height()==0) aGridFin.Height()=aGridFin.Width(); if (bGridVisible) InvalidateAllWin(); } // #40479# diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx index b785b2285873..244fea07285f 100644..100755 --- a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx @@ -40,6 +40,8 @@ #include <svx/svdoole2.hxx> #include <svx/svdview.hxx> +#include "fmobj.hxx" + ////////////////////////////////////////////////////////////////////////////// namespace sdr @@ -91,8 +93,9 @@ namespace sdr const bool bHideOle(rSdrView.getHideOle()); const bool bHideChart(rSdrView.getHideChart()); const bool bHideDraw(rSdrView.getHideDraw()); + const bool bHideFormControl(rSdrView.getHideFormControl()); - if(bHideOle || bHideChart || bHideDraw) + if(bHideOle || bHideChart || bHideDraw || bHideFormControl) { if(OBJ_OLE2 == rObject.GetObjIdentifier()) { @@ -123,8 +126,13 @@ namespace sdr } else { + const bool bIsFormControl = dynamic_cast< const FmFormObj * >( &rObject ) != 0; + if(bIsFormControl && bHideFormControl) + { + return false; + } // any other draw object - if(bHideDraw) + if(!bIsFormControl && bHideDraw) { return false; } diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index c89c458aa9c7..61eeb120cd72 100644..100755 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -275,7 +275,8 @@ SdrPaintView::SdrPaintView(SdrModel* pModel1, OutputDevice* pOut) mbPagePaintingAllowed(true), mbHideOle(false), mbHideChart(false), - mbHideDraw(false) + mbHideDraw(false), + mbHideFormControl(false) { DBG_CTOR(SdrPaintView,NULL); pMod=pModel1; |