Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
28d1c250
Kaydet (Commit)
28d1c250
authored
Haz 29, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#676858: ghost uneditable drawing objects
üst
282def6f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
4 deletions
+62
-4
svdobj.hxx
svx/inc/svx/svdobj.hxx
+3
-0
viewcontactofsdrcaptionobj.cxx
svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx
+10
-0
viewcontactofsdrcircobj.cxx
svx/source/sdr/contact/viewcontactofsdrcircobj.cxx
+15
-2
viewcontactofsdrobjcustomshape.cxx
svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx
+10
-0
viewcontactofsdrpathobj.cxx
svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
+12
-1
viewcontactofsdrrectobj.cxx
svx/source/sdr/contact/viewcontactofsdrrectobj.cxx
+11
-1
svdobj.cxx
svx/source/svdraw/svdobj.cxx
+1
-0
No files found.
svx/inc/svx/svdobj.hxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -483,6 +483,7 @@ protected:
// beim Clone wird das Flag nicht mitkopiert!
// Das Flag ist persistent.
unsigned
bEmptyPresObj
:
1
;
// Leeres Praesentationsobjekt (Draw)
unsigned
mbGhosted
:
1
;
// FIXME find a better way to ghost writer drawing objects
// sal_True=Objekt ist als Objekt der MasterPage nicht sichtbar
unsigned
bNotVisibleAsMaster
:
1
;
...
...
@@ -1036,6 +1037,8 @@ public:
sal_Bool
IsEmptyPresObj
()
const
{
return
bEmptyPresObj
;
}
void
SetNotVisibleAsMaster
(
sal_Bool
bFlg
)
{
bNotVisibleAsMaster
=
bFlg
;
}
sal_Bool
IsNotVisibleAsMaster
()
const
{
return
bNotVisibleAsMaster
;
}
void
SetGhosted
(
sal_Bool
bGhosted
)
{
mbGhosted
=
bGhosted
;
}
sal_Bool
IsGhosted
()
const
{
return
mbGhosted
;
}
// #i25616#
sal_Bool
LineIsOutsideGeometry
()
const
{
return
mbLineIsOutsideGeometry
;
}
...
...
svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -45,6 +45,7 @@
#include <svx/xfltrit.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <svx/sdr/primitive2d/sdrdecompositiontools.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -171,6 +172,15 @@ namespace sdr
}
}
if
(
rCaptionObj
.
IsGhosted
())
{
const
basegfx
::
BColor
aRGBWhite
(
1.0
,
1.0
,
1.0
);
const
basegfx
::
BColorModifier
aBColorModifier
(
aRGBWhite
,
0.5
,
basegfx
::
BCOLORMODIFYMODE_INTERPOLATE
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
xGhostedRef
(
new
drawinglayer
::
primitive2d
::
ModifiedColorPrimitive2D
(
xRetval
,
aBColorModifier
));
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xGhostedRef
,
1
);
}
return
xRetval
;
}
}
// end of namespace contact
...
...
svx/source/sdr/contact/viewcontactofsdrcircobj.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -36,6 +36,7 @@
#include <svl/itemset.hxx>
#include <svx/sxciaitm.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -78,6 +79,8 @@ namespace sdr
// create primitive data
const
sal_uInt16
nIdentifier
(
GetCircObj
().
GetObjIdentifier
());
drawinglayer
::
primitive2d
::
Primitive2DSequence
xRetval
;
// always create primitives to allow the decomposition of SdrEllipsePrimitive2D
// or SdrEllipseSegmentPrimitive2D to create needed invisible elements for HitTest
// and/or BoundRect
...
...
@@ -88,7 +91,7 @@ namespace sdr
aObjectMatrix
,
aAttribute
));
return
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
}
else
{
...
...
@@ -108,8 +111,18 @@ namespace sdr
bCloseSegment
,
bCloseUsingCenter
));
return
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
}
if
(
GetCircObj
().
IsGhosted
())
{
const
basegfx
::
BColor
aRGBWhite
(
1.0
,
1.0
,
1.0
);
const
basegfx
::
BColorModifier
aBColorModifier
(
aRGBWhite
,
0.5
,
basegfx
::
BCOLORMODIFYMODE_INTERPOLATE
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
xReference
(
new
drawinglayer
::
primitive2d
::
ModifiedColorPrimitive2D
(
xRetval
,
aBColorModifier
));
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
}
return
xRetval
;
}
}
// end of namespace contact
}
// end of namespace sdr
...
...
svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -39,6 +39,7 @@
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <svx/obj3d.hxx>
#include <drawinglayer/primitive2d/sdrdecompositiontools2d.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -233,6 +234,15 @@ namespace sdr
drawinglayer
::
primitive2d
::
createHiddenGeometryPrimitives2D
(
false
,
aObjectRange
));
if
(
GetCustomShapeObj
().
IsGhosted
())
{
const
basegfx
::
BColor
aRGBWhite
(
1.0
,
1.0
,
1.0
);
const
basegfx
::
BColorModifier
aBColorModifier
(
aRGBWhite
,
0.5
,
basegfx
::
BCOLORMODIFYMODE_INTERPOLATE
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
xReference
(
new
drawinglayer
::
primitive2d
::
ModifiedColorPrimitive2D
(
xRetval
,
aBColorModifier
));
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
}
return
xRetval
;
}
}
// end of namespace contact
...
...
svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -35,6 +35,7 @@
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <svx/sdr/primitive2d/sdrpathprimitive2d.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -137,7 +138,17 @@ namespace sdr
aAttribute
,
aUnitPolyPolygon
));
return
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
drawinglayer
::
primitive2d
::
Primitive2DSequence
xRetval
(
&
xReference
,
1
);
if
(
GetPathObj
().
IsGhosted
())
{
const
basegfx
::
BColor
aRGBWhite
(
1.0
,
1.0
,
1.0
);
const
basegfx
::
BColorModifier
aBColorModifier
(
aRGBWhite
,
0.5
,
basegfx
::
BCOLORMODIFYMODE_INTERPOLATE
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
xGhostedRef
(
new
drawinglayer
::
primitive2d
::
ModifiedColorPrimitive2D
(
xRetval
,
aBColorModifier
));
xRetval
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xGhostedRef
,
1
);
}
return
xRetval
;
}
}
// end of namespace contact
}
// end of namespace sdr
...
...
svx/source/sdr/contact/viewcontactofsdrrectobj.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -37,6 +37,7 @@
#include <svx/sdr/primitive2d/sdrprimitivetools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <svx/svdmodel.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -95,8 +96,17 @@ namespace sdr
fCornerRadiusY
,
// #i105856# use fill for HitTest when TextFrame and not PickThrough
GetRectObj
().
IsTextFrame
()
&&
!
bPickThroughTransparentTextFrames
));
drawinglayer
::
primitive2d
::
Primitive2DSequence
xRetVal
(
&
xReference
,
1
);
return
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xReference
,
1
);
if
(
GetRectObj
().
IsGhosted
(
)
)
{
const
basegfx
::
BColor
aRGBWhite
(
1.0
,
1.0
,
1.0
);
const
basegfx
::
BColorModifier
aBColorModifier
(
aRGBWhite
,
0.5
,
basegfx
::
BCOLORMODIFYMODE_INTERPOLATE
);
const
drawinglayer
::
primitive2d
::
Primitive2DReference
xGhostedRef
(
new
drawinglayer
::
primitive2d
::
ModifiedColorPrimitive2D
(
xRetVal
,
aBColorModifier
));
xRetVal
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
xGhostedRef
,
1
);
}
return
xRetVal
;
}
}
// end of namespace contact
}
// end of namespace sdr
...
...
svx/source/svdraw/svdobj.cxx
Dosyayı görüntüle @
28d1c250
...
...
@@ -388,6 +388,7 @@ SdrObject::SdrObject()
bNoPrint
=
sal_False
;
bEmptyPresObj
=
sal_False
;
bNotVisibleAsMaster
=
sal_False
;
mbGhosted
=
sal_False
;
bClosedObj
=
sal_False
;
mbVisible
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment