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
1b9b886a
Kaydet (Commit)
1b9b886a
authored
Ock 20, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool.
üst
7ce98f34
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
77 deletions
+92
-77
svdograf.hxx
svx/inc/svx/svdograf.hxx
+16
-16
viewobjectcontactofgraphic.cxx
svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
+4
-4
svdograf.cxx
svx/source/svdraw/svdograf.cxx
+72
-57
No files found.
svx/inc/svx/svdograf.hxx
Dosyayı görüntüle @
1b9b886a
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
sal_Bool
bMirrored
;
sal_Bool
bMirrored
;
SdrGrafObjGeoData
()
SdrGrafObjGeoData
()
:
bMirrored
(
sal_F
alse
)
:
bMirrored
(
f
alse
)
{
{
}
}
};
};
...
@@ -104,21 +104,21 @@ private:
...
@@ -104,21 +104,21 @@ private:
String
aFilterName
;
String
aFilterName
;
GraphicObject
*
pGraphic
;
// Zur Beschleunigung von Bitmapausgaben, besonders von gedrehten.
GraphicObject
*
pGraphic
;
// Zur Beschleunigung von Bitmapausgaben, besonders von gedrehten.
SdrGraphicLink
*
pGraphicLink
;
// Und hier noch ein Pointer fuer gelinkte Grafiken
SdrGraphicLink
*
pGraphicLink
;
// Und hier noch ein Pointer fuer gelinkte Grafiken
bool
bMirrored
;
// True bedeutet, die Grafik ist horizontal, d.h. ueber die Y-Achse gespiegelt auszugeben.
bool
bMirrored
:
1
;
// True bedeutet, die Grafik ist horizontal, d.h. ueber die Y-Achse gespiegelt auszugeben.
// #111096#
// #111096#
// Flag for allowing text animation. Default is sal_true.
// Flag for allowing text animation. Default is sal_true.
unsigned
mbGrafAnimationAllowed
:
1
;
bool
mbGrafAnimationAllowed
:
1
;
// #i25616#
// #i25616#
unsigned
mbInsidePaint
:
1
;
bool
mbInsidePaint
:
1
;
unsigned
mbIsPreview
:
1
;
bool
mbIsPreview
:
1
;
private
:
private
:
void
ImpLinkAnmeldung
();
void
ImpLinkAnmeldung
();
void
ImpLinkAbmeldung
();
void
ImpLinkAbmeldung
();
sal_Bool
ImpUpdateGraphicLink
(
sal_Bool
bAsynchron
=
sal_T
rue
)
const
;
bool
ImpUpdateGraphicLink
(
bool
bAsynchron
=
t
rue
)
const
;
void
ImpSetLinkedGraphic
(
const
Graphic
&
rGraphic
);
void
ImpSetLinkedGraphic
(
const
Graphic
&
rGraphic
);
DECL_LINK
(
ImpSwapHdl
,
GraphicObject
*
);
DECL_LINK
(
ImpSwapHdl
,
GraphicObject
*
);
...
@@ -131,7 +131,7 @@ public:
...
@@ -131,7 +131,7 @@ public:
virtual
~
SdrGrafObj
();
virtual
~
SdrGrafObj
();
void
SetGraphicObject
(
const
GraphicObject
&
rGrfObj
);
void
SetGraphicObject
(
const
GraphicObject
&
rGrfObj
);
const
GraphicObject
&
GetGraphicObject
(
bool
bForceSwapIn
=
false
)
const
;
const
GraphicObject
&
GetGraphicObject
(
bool
bForceSwapIn
=
false
)
const
;
void
NbcSetGraphic
(
const
Graphic
&
rGrf
);
void
NbcSetGraphic
(
const
Graphic
&
rGrf
);
void
SetGraphic
(
const
Graphic
&
rGrf
);
void
SetGraphic
(
const
Graphic
&
rGrf
);
...
@@ -143,11 +143,11 @@ public:
...
@@ -143,11 +143,11 @@ public:
// #111096#
// #111096#
// Keep ATM for SD.
// Keep ATM for SD.
sal_B
ool
IsAnimated
()
const
;
b
ool
IsAnimated
()
const
;
sal_B
ool
IsEPS
()
const
;
b
ool
IsEPS
()
const
;
sal_B
ool
IsRenderGraphic
()
const
;
b
ool
IsRenderGraphic
()
const
;
sal_B
ool
HasRenderGraphic
()
const
;
b
ool
HasRenderGraphic
()
const
;
sal_B
ool
IsSwappedOut
()
const
;
b
ool
IsSwappedOut
()
const
;
const
MapMode
&
GetGrafPrefMapMode
()
const
;
const
MapMode
&
GetGrafPrefMapMode
()
const
;
const
Size
&
GetGrafPrefSize
()
const
;
const
Size
&
GetGrafPrefSize
()
const
;
...
@@ -160,7 +160,7 @@ public:
...
@@ -160,7 +160,7 @@ public:
void
SetGraphicLink
(
const
String
&
rFileName
,
const
String
&
rFilterName
);
void
SetGraphicLink
(
const
String
&
rFileName
,
const
String
&
rFilterName
);
void
ReleaseGraphicLink
();
void
ReleaseGraphicLink
();
sal_Bool
IsLinkedGraphic
()
const
{
return
(
sal_Bool
)
aFileName
.
Len
();
}
bool
IsLinkedGraphic
()
const
;
const
String
&
GetFileName
()
const
{
return
aFileName
;
}
const
String
&
GetFileName
()
const
{
return
aFileName
;
}
const
String
&
GetFilterName
()
const
{
return
aFilterName
;
}
const
String
&
GetFilterName
()
const
{
return
aFilterName
;
}
...
@@ -203,12 +203,12 @@ public:
...
@@ -203,12 +203,12 @@ public:
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
);
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
);
bool
IsMirrored
()
{
return
bMirrored
;
}
bool
IsMirrored
()
const
;
void
SetMirrored
(
bool
_bMirrored
)
{
bMirrored
=
_bMirrored
;
}
void
SetMirrored
(
bool
_bMirrored
);
// #111096#
// #111096#
// Access to GrafAnimationAllowed flag
// Access to GrafAnimationAllowed flag
void
SetGrafAnimationAllowed
(
sal_B
ool
bNew
);
void
SetGrafAnimationAllowed
(
b
ool
bNew
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
getInputStream
();
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
getInputStream
();
...
...
svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
Dosyayı görüntüle @
1b9b886a
...
@@ -140,9 +140,9 @@ namespace sdr
...
@@ -140,9 +140,9 @@ namespace sdr
else
else
{
{
// SwapIn direct
// SwapIn direct
rGrafObj
.
mbInsidePaint
=
sal_T
rue
;
rGrafObj
.
mbInsidePaint
=
t
rue
;
rGrafObj
.
ForceSwapIn
();
rGrafObj
.
ForceSwapIn
();
rGrafObj
.
mbInsidePaint
=
sal_F
alse
;
rGrafObj
.
mbInsidePaint
=
f
alse
;
}
}
bRetval
=
true
;
bRetval
=
true
;
...
@@ -192,9 +192,9 @@ namespace sdr
...
@@ -192,9 +192,9 @@ namespace sdr
else
else
{
{
// SwapIn direct
// SwapIn direct
rGrafObj
.
mbInsidePaint
=
sal_T
rue
;
rGrafObj
.
mbInsidePaint
=
t
rue
;
rGrafObj
.
ForceSwapIn
();
rGrafObj
.
ForceSwapIn
();
rGrafObj
.
mbInsidePaint
=
sal_F
alse
;
rGrafObj
.
mbInsidePaint
=
f
alse
;
}
}
bRetval
=
true
;
bRetval
=
true
;
...
...
svx/source/svdraw/svdograf.cxx
Dosyayı görüntüle @
1b9b886a
...
@@ -93,7 +93,7 @@ const Graphic ImpLoadLinkedGraphic( const String aFileName, const String aFilter
...
@@ -93,7 +93,7 @@ const Graphic ImpLoadLinkedGraphic( const String aFileName, const String aFilter
{
{
Graphic
aGraphic
;
Graphic
aGraphic
;
SfxMedium
xMed
(
aFileName
,
STREAM_STD_READ
,
sal_T
rue
);
SfxMedium
xMed
(
aFileName
,
STREAM_STD_READ
,
t
rue
);
xMed
.
DownLoad
();
xMed
.
DownLoad
();
SvStream
*
pInStrm
=
xMed
.
GetInStream
();
SvStream
*
pInStrm
=
xMed
.
GetInStream
();
...
@@ -114,7 +114,7 @@ const Graphic ImpLoadLinkedGraphic( const String aFileName, const String aFilter
...
@@ -114,7 +114,7 @@ const Graphic ImpLoadLinkedGraphic( const String aFileName, const String aFilter
// But this link is required by some filters to access the native graphic (PDF export/MS export),
// But this link is required by some filters to access the native graphic (PDF export/MS export),
// there we should create a new service to provide this data if needed
// there we should create a new service to provide this data if needed
aFilterData
[
0
].
Name
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateNativeLink"
)
);
aFilterData
[
0
].
Name
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateNativeLink"
)
);
aFilterData
[
0
].
Value
=
Any
(
sal_T
rue
);
aFilterData
[
0
].
Value
=
Any
(
t
rue
);
rGF
.
ImportGraphic
(
aGraphic
,
aEmptyStr
,
*
pInStrm
,
nFilter
,
NULL
,
0
,
&
aFilterData
);
rGF
.
ImportGraphic
(
aGraphic
,
aEmptyStr
,
*
pInStrm
,
nFilter
,
NULL
,
0
,
&
aFilterData
);
}
}
return
aGraphic
;
return
aGraphic
;
...
@@ -176,7 +176,7 @@ SdrGraphicUpdater::SdrGraphicUpdater( const String& rFileName, const String& rFi
...
@@ -176,7 +176,7 @@ SdrGraphicUpdater::SdrGraphicUpdater( const String& rFileName, const String& rFi
:
maFileName
(
rFileName
)
:
maFileName
(
rFileName
)
,
maFilterName
(
rFilterName
)
,
maFilterName
(
rFilterName
)
,
mrGraphicLink
(
rGraphicLink
)
,
mrGraphicLink
(
rGraphicLink
)
,
mbIsTerminated
(
sal_F
alse
)
,
mbIsTerminated
(
f
alse
)
{
{
create
();
create
();
}
}
...
@@ -187,7 +187,7 @@ SdrGraphicUpdater::~SdrGraphicUpdater( void )
...
@@ -187,7 +187,7 @@ SdrGraphicUpdater::~SdrGraphicUpdater( void )
void
SdrGraphicUpdater
::
Terminate
()
void
SdrGraphicUpdater
::
Terminate
()
{
{
mbIsTerminated
=
sal_T
rue
;
mbIsTerminated
=
t
rue
;
}
}
void
SAL_CALL
SdrGraphicUpdater
::
onTerminated
(
void
)
void
SAL_CALL
SdrGraphicUpdater
::
onTerminated
(
void
)
...
@@ -213,7 +213,7 @@ SdrGraphicLink::SdrGraphicLink(SdrGrafObj* pObj)
...
@@ -213,7 +213,7 @@ SdrGraphicLink::SdrGraphicLink(SdrGrafObj* pObj)
,
pGrafObj
(
pObj
)
,
pGrafObj
(
pObj
)
,
pGraphicUpdater
(
NULL
)
,
pGraphicUpdater
(
NULL
)
{
{
SetSynchron
(
sal_F
alse
);
SetSynchron
(
f
alse
);
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -324,21 +324,21 @@ TYPEINIT1(SdrGrafObj,SdrRectObj);
...
@@ -324,21 +324,21 @@ TYPEINIT1(SdrGrafObj,SdrRectObj);
SdrGrafObj
::
SdrGrafObj
()
SdrGrafObj
::
SdrGrafObj
()
:
SdrRectObj
(),
:
SdrRectObj
(),
pGraphicLink
(
NULL
),
pGraphicLink
(
NULL
),
bMirrored
(
sal_F
alse
)
bMirrored
(
f
alse
)
{
{
pGraphic
=
new
GraphicObject
;
pGraphic
=
new
GraphicObject
;
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
bNoShear
=
sal_T
rue
;
bNoShear
=
t
rue
;
mbGrafAnimationAllowed
=
sal_T
rue
;
mbGrafAnimationAllowed
=
t
rue
;
// #i25616#
// #i25616#
mbLineIsOutsideGeometry
=
sal_T
rue
;
mbLineIsOutsideGeometry
=
t
rue
;
mbInsidePaint
=
sal_F
alse
;
mbInsidePaint
=
f
alse
;
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
// #i25616#
// #i25616#
mbSupportTextIndentingOnLineWidthChange
=
sal_F
alse
;
mbSupportTextIndentingOnLineWidthChange
=
f
alse
;
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -346,21 +346,21 @@ SdrGrafObj::SdrGrafObj()
...
@@ -346,21 +346,21 @@ SdrGrafObj::SdrGrafObj()
SdrGrafObj
::
SdrGrafObj
(
const
Graphic
&
rGrf
,
const
Rectangle
&
rRect
)
SdrGrafObj
::
SdrGrafObj
(
const
Graphic
&
rGrf
,
const
Rectangle
&
rRect
)
:
SdrRectObj
(
rRect
),
:
SdrRectObj
(
rRect
),
pGraphicLink
(
NULL
),
pGraphicLink
(
NULL
),
bMirrored
(
sal_F
alse
)
bMirrored
(
f
alse
)
{
{
pGraphic
=
new
GraphicObject
(
rGrf
);
pGraphic
=
new
GraphicObject
(
rGrf
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
bNoShear
=
sal_T
rue
;
bNoShear
=
t
rue
;
mbGrafAnimationAllowed
=
sal_T
rue
;
mbGrafAnimationAllowed
=
t
rue
;
// #i25616#
// #i25616#
mbLineIsOutsideGeometry
=
sal_T
rue
;
mbLineIsOutsideGeometry
=
t
rue
;
mbInsidePaint
=
sal_F
alse
;
mbInsidePaint
=
f
alse
;
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
// #i25616#
// #i25616#
mbSupportTextIndentingOnLineWidthChange
=
sal_F
alse
;
mbSupportTextIndentingOnLineWidthChange
=
f
alse
;
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -368,21 +368,21 @@ SdrGrafObj::SdrGrafObj(const Graphic& rGrf, const Rectangle& rRect)
...
@@ -368,21 +368,21 @@ SdrGrafObj::SdrGrafObj(const Graphic& rGrf, const Rectangle& rRect)
SdrGrafObj
::
SdrGrafObj
(
const
Graphic
&
rGrf
)
SdrGrafObj
::
SdrGrafObj
(
const
Graphic
&
rGrf
)
:
SdrRectObj
(),
:
SdrRectObj
(),
pGraphicLink
(
NULL
),
pGraphicLink
(
NULL
),
bMirrored
(
sal_F
alse
)
bMirrored
(
f
alse
)
{
{
pGraphic
=
new
GraphicObject
(
rGrf
);
pGraphic
=
new
GraphicObject
(
rGrf
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
bNoShear
=
sal_T
rue
;
bNoShear
=
t
rue
;
mbGrafAnimationAllowed
=
sal_T
rue
;
mbGrafAnimationAllowed
=
t
rue
;
// #i25616#
// #i25616#
mbLineIsOutsideGeometry
=
sal_T
rue
;
mbLineIsOutsideGeometry
=
t
rue
;
mbInsidePaint
=
sal_F
alse
;
mbInsidePaint
=
f
alse
;
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
// #i25616#
// #i25616#
mbSupportTextIndentingOnLineWidthChange
=
sal_F
alse
;
mbSupportTextIndentingOnLineWidthChange
=
f
alse
;
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -400,7 +400,7 @@ void SdrGrafObj::SetGraphicObject( const GraphicObject& rGrfObj )
...
@@ -400,7 +400,7 @@ void SdrGrafObj::SetGraphicObject( const GraphicObject& rGrfObj )
*
pGraphic
=
rGrfObj
;
*
pGraphic
=
rGrfObj
;
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
pGraphic
->
SetSwapStreamHdl
(
LINK
(
this
,
SdrGrafObj
,
ImpSwapHdl
),
SWAPGRAPHIC_TIMEOUT
);
pGraphic
->
SetUserData
();
pGraphic
->
SetUserData
();
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
SetChanged
();
SetChanged
();
BroadcastObjectChange
();
BroadcastObjectChange
();
}
}
...
@@ -423,7 +423,7 @@ void SdrGrafObj::NbcSetGraphic( const Graphic& rGrf )
...
@@ -423,7 +423,7 @@ void SdrGrafObj::NbcSetGraphic( const Graphic& rGrf )
{
{
pGraphic
->
SetGraphic
(
rGrf
);
pGraphic
->
SetGraphic
(
rGrf
);
pGraphic
->
SetUserData
();
pGraphic
->
SetUserData
();
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
}
}
void
SdrGrafObj
::
SetGraphic
(
const
Graphic
&
rGrf
)
void
SdrGrafObj
::
SetGraphic
(
const
Graphic
&
rGrf
)
...
@@ -490,29 +490,29 @@ GraphicType SdrGrafObj::GetGraphicType() const
...
@@ -490,29 +490,29 @@ GraphicType SdrGrafObj::GetGraphicType() const
return
pGraphic
->
GetType
();
return
pGraphic
->
GetType
();
}
}
sal_B
ool
SdrGrafObj
::
IsAnimated
()
const
b
ool
SdrGrafObj
::
IsAnimated
()
const
{
{
return
pGraphic
->
IsAnimated
();
return
pGraphic
->
IsAnimated
();
}
}
sal_B
ool
SdrGrafObj
::
IsEPS
()
const
b
ool
SdrGrafObj
::
IsEPS
()
const
{
{
return
pGraphic
->
IsEPS
();
return
pGraphic
->
IsEPS
();
}
}
sal_B
ool
SdrGrafObj
::
IsRenderGraphic
()
const
b
ool
SdrGrafObj
::
IsRenderGraphic
()
const
{
{
return
pGraphic
->
IsRenderGraphic
();
return
pGraphic
->
IsRenderGraphic
();
}
}
sal_B
ool
SdrGrafObj
::
HasRenderGraphic
()
const
b
ool
SdrGrafObj
::
HasRenderGraphic
()
const
{
{
return
pGraphic
->
HasRenderGraphic
();
return
pGraphic
->
HasRenderGraphic
();
}
}
sal_B
ool
SdrGrafObj
::
IsSwappedOut
()
const
b
ool
SdrGrafObj
::
IsSwappedOut
()
const
{
{
return
mbIsPreview
?
sal_T
rue
:
pGraphic
->
IsSwappedOut
();
return
mbIsPreview
?
t
rue
:
pGraphic
->
IsSwappedOut
();
}
}
const
MapMode
&
SdrGrafObj
::
GetGrafPrefMapMode
()
const
const
MapMode
&
SdrGrafObj
::
GetGrafPrefMapMode
()
const
...
@@ -529,7 +529,7 @@ const Size& SdrGrafObj::GetGrafPrefSize() const
...
@@ -529,7 +529,7 @@ const Size& SdrGrafObj::GetGrafPrefSize() const
void
SdrGrafObj
::
SetGrafStreamURL
(
const
String
&
rGraphicStreamURL
)
void
SdrGrafObj
::
SetGrafStreamURL
(
const
String
&
rGraphicStreamURL
)
{
{
mbIsPreview
=
sal_F
alse
;
mbIsPreview
=
f
alse
;
if
(
!
rGraphicStreamURL
.
Len
()
)
if
(
!
rGraphicStreamURL
.
Len
()
)
{
{
pGraphic
->
SetUserData
();
pGraphic
->
SetUserData
();
...
@@ -565,10 +565,10 @@ void SdrGrafObj::ForceSwapIn() const
...
@@ -565,10 +565,10 @@ void SdrGrafObj::ForceSwapIn() const
pGraphic
->
SetUserData
(
aUserData
);
pGraphic
->
SetUserData
(
aUserData
);
pGraphic
->
SetSwapState
();
pGraphic
->
SetSwapState
();
const_cast
<
SdrGrafObj
*
>
(
this
)
->
mbIsPreview
=
sal_F
alse
;
const_cast
<
SdrGrafObj
*
>
(
this
)
->
mbIsPreview
=
f
alse
;
}
}
if
(
pGraphicLink
&&
pGraphic
->
IsSwappedOut
()
)
if
(
pGraphicLink
&&
pGraphic
->
IsSwappedOut
()
)
ImpUpdateGraphicLink
(
sal_F
alse
);
ImpUpdateGraphicLink
(
f
alse
);
else
else
pGraphic
->
FireSwapInRequest
();
pGraphic
->
FireSwapInRequest
();
...
@@ -643,6 +643,11 @@ void SdrGrafObj::ReleaseGraphicLink()
...
@@ -643,6 +643,11 @@ void SdrGrafObj::ReleaseGraphicLink()
aFilterName
=
String
();
aFilterName
=
String
();
}
}
bool
SdrGrafObj
::
IsLinkedGraphic
()
const
{
return
aFileName
.
Len
()
>
0
;
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SdrGrafObj
::
TakeObjInfo
(
SdrObjTransformInfoRec
&
rInfo
)
const
void
SdrGrafObj
::
TakeObjInfo
(
SdrObjTransformInfoRec
&
rInfo
)
const
...
@@ -655,19 +660,19 @@ void SdrGrafObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
...
@@ -655,19 +660,19 @@ void SdrGrafObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
aGeo
.
nDrehWink
%
18000
==
0
||
aGeo
.
nDrehWink
%
18000
==
0
||
aGeo
.
nDrehWink
%
27000
==
0
;
aGeo
.
nDrehWink
%
27000
==
0
;
rInfo
.
bResizePropAllowed
=
sal_T
rue
;
rInfo
.
bResizePropAllowed
=
t
rue
;
rInfo
.
bRotateFreeAllowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bRotateFreeAllowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bRotate90Allowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bRotate90Allowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bMirrorFreeAllowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bMirrorFreeAllowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bMirror45Allowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bMirror45Allowed
=
bNoPresGrf
&&
!
bAnim
&&
!
bRenderGraphic
;
rInfo
.
bMirror90Allowed
=
!
bEmptyPresObj
&&
!
bRenderGraphic
;
rInfo
.
bMirror90Allowed
=
!
bEmptyPresObj
&&
!
bRenderGraphic
;
rInfo
.
bTransparenceAllowed
=
sal_F
alse
;
rInfo
.
bTransparenceAllowed
=
f
alse
;
rInfo
.
bGradientAllowed
=
sal_F
alse
;
rInfo
.
bGradientAllowed
=
f
alse
;
rInfo
.
bShearAllowed
=
sal_F
alse
;
rInfo
.
bShearAllowed
=
f
alse
;
rInfo
.
bEdgeRadiusAllowed
=
sal_F
alse
;
rInfo
.
bEdgeRadiusAllowed
=
f
alse
;
rInfo
.
bCanConvToPath
=
sal_F
alse
;
rInfo
.
bCanConvToPath
=
f
alse
;
rInfo
.
bCanConvToPathLineToArea
=
sal_F
alse
;
rInfo
.
bCanConvToPathLineToArea
=
f
alse
;
rInfo
.
bCanConvToPolyLineToArea
=
sal_F
alse
;
rInfo
.
bCanConvToPolyLineToArea
=
f
alse
;
rInfo
.
bCanConvToPoly
=
!
IsEPS
()
&&
!
bRenderGraphic
;
rInfo
.
bCanConvToPoly
=
!
IsEPS
()
&&
!
bRenderGraphic
;
rInfo
.
bCanConvToContour
=
(
rInfo
.
bCanConvToPoly
||
LineGeometryUsageIsNecessary
());
rInfo
.
bCanConvToContour
=
(
rInfo
.
bCanConvToPoly
||
LineGeometryUsageIsNecessary
());
}
}
...
@@ -684,16 +689,16 @@ sal_uInt16 SdrGrafObj::GetObjIdentifier() const
...
@@ -684,16 +689,16 @@ sal_uInt16 SdrGrafObj::GetObjIdentifier() const
/* The graphic of the GraphicLink will be loaded. If it is called with
/* The graphic of the GraphicLink will be loaded. If it is called with
bAsynchron = true then the graphic will be set later via DataChanged
bAsynchron = true then the graphic will be set later via DataChanged
*/
*/
sal_Bool
SdrGrafObj
::
ImpUpdateGraphicLink
(
sal_B
ool
bAsynchron
)
const
bool
SdrGrafObj
::
ImpUpdateGraphicLink
(
b
ool
bAsynchron
)
const
{
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
pGraphicLink
)
if
(
pGraphicLink
)
{
{
if
(
bAsynchron
)
if
(
bAsynchron
)
pGraphicLink
->
UpdateAsynchron
();
pGraphicLink
->
UpdateAsynchron
();
else
else
pGraphicLink
->
DataChanged
(
ImpLoadLinkedGraphic
(
aFileName
,
aFilterName
)
);
pGraphicLink
->
DataChanged
(
ImpLoadLinkedGraphic
(
aFileName
,
aFilterName
)
);
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
}
return
bRet
;
return
bRet
;
}
}
...
@@ -1002,7 +1007,7 @@ void SdrGrafObj::SetModel( SdrModel* pNewModel )
...
@@ -1002,7 +1007,7 @@ void SdrGrafObj::SetModel( SdrModel* pNewModel )
void
SdrGrafObj
::
StartAnimation
(
OutputDevice
*
/*pOutDev*/
,
const
Point
&
/*rPoint*/
,
const
Size
&
/*rSize*/
,
long
/*nExtraData*/
)
void
SdrGrafObj
::
StartAnimation
(
OutputDevice
*
/*pOutDev*/
,
const
Point
&
/*rPoint*/
,
const
Size
&
/*rSize*/
,
long
/*nExtraData*/
)
{
{
SetGrafAnimationAllowed
(
sal_T
rue
);
SetGrafAnimationAllowed
(
t
rue
);
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -1077,7 +1082,7 @@ SdrObject* SdrGrafObj::DoConvertToPolyObj(sal_Bool bBezier) const
...
@@ -1077,7 +1082,7 @@ SdrObject* SdrGrafObj::DoConvertToPolyObj(sal_Bool bBezier) const
Bitmap
aBitmap
(
GetTransformedGraphic
().
GetBitmap
()
);
Bitmap
aBitmap
(
GetTransformedGraphic
().
GetBitmap
()
);
XOBitmap
aXBmp
(
aBitmap
,
XBITMAP_STRETCH
);
XOBitmap
aXBmp
(
aBitmap
,
XBITMAP_STRETCH
);
aSet
.
Put
(
XFillBitmapItem
(
String
(),
aXBmp
));
aSet
.
Put
(
XFillBitmapItem
(
String
(),
aXBmp
));
aSet
.
Put
(
XFillBmpTileItem
(
sal_F
alse
));
aSet
.
Put
(
XFillBmpTileItem
(
f
alse
));
pRetval
->
SetMergedItemSet
(
aSet
);
pRetval
->
SetMergedItemSet
(
aSet
);
}
}
...
@@ -1103,6 +1108,16 @@ void SdrGrafObj::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
...
@@ -1103,6 +1108,16 @@ void SdrGrafObj::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
ImpSetAttrToGrafInfo
();
ImpSetAttrToGrafInfo
();
}
}
bool
SdrGrafObj
::
IsMirrored
()
const
{
return
bMirrored
;
}
void
SdrGrafObj
::
SetMirrored
(
bool
_bMirrored
)
{
bMirrored
=
_bMirrored
;
}
void
SdrGrafObj
::
ImpSetAttrToGrafInfo
()
void
SdrGrafObj
::
ImpSetAttrToGrafInfo
()
{
{
const
SfxItemSet
&
rSet
=
GetObjectItemSet
();
const
SfxItemSet
&
rSet
=
GetObjectItemSet
();
...
@@ -1239,8 +1254,8 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
...
@@ -1239,8 +1254,8 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
pFilterData
=
new
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
(
3
);
pFilterData
=
new
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
(
3
);
com
::
sun
::
star
::
awt
::
Size
aPreviewSizeHint
(
64
,
64
);
com
::
sun
::
star
::
awt
::
Size
aPreviewSizeHint
(
64
,
64
);
sal_Bool
bAllowPartialStreamRead
=
sal_T
rue
;
sal_Bool
bAllowPartialStreamRead
=
t
rue
;
sal_Bool
bCreateNativeLink
=
sal_F
alse
;
sal_Bool
bCreateNativeLink
=
f
alse
;
(
*
pFilterData
)[
0
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"PreviewSizeHint"
)
);
(
*
pFilterData
)[
0
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"PreviewSizeHint"
)
);
(
*
pFilterData
)[
0
].
Value
<<=
aPreviewSizeHint
;
(
*
pFilterData
)[
0
].
Value
<<=
aPreviewSizeHint
;
(
*
pFilterData
)[
1
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"AllowPartialStreamRead"
)
);
(
*
pFilterData
)[
1
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"AllowPartialStreamRead"
)
);
...
@@ -1248,7 +1263,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
...
@@ -1248,7 +1263,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
(
*
pFilterData
)[
2
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateNativeLink"
)
);
(
*
pFilterData
)[
2
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateNativeLink"
)
);
(
*
pFilterData
)[
2
].
Value
<<=
bCreateNativeLink
;
(
*
pFilterData
)[
2
].
Value
<<=
bCreateNativeLink
;
mbIsPreview
=
sal_T
rue
;
mbIsPreview
=
t
rue
;
}
}
if
(
!
GraphicFilter
::
GetGraphicFilter
().
ImportGraphic
(
aGraphic
,
if
(
!
GraphicFilter
::
GetGraphicFilter
().
ImportGraphic
(
aGraphic
,
...
@@ -1270,7 +1285,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
...
@@ -1270,7 +1285,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
pStream
->
ResetError
();
pStream
->
ResetError
();
}
}
}
}
else
if
(
!
ImpUpdateGraphicLink
(
sal_F
alse
)
)
else
if
(
!
ImpUpdateGraphicLink
(
f
alse
)
)
{
{
pRet
=
GRFMGR_AUTOSWAPSTREAM_TEMP
;
pRet
=
GRFMGR_AUTOSWAPSTREAM_TEMP
;
}
}
...
@@ -1288,7 +1303,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
...
@@ -1288,7 +1303,7 @@ IMPL_LINK( SdrGrafObj, ImpSwapHdl, GraphicObject*, pO )
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SdrGrafObj
::
SetGrafAnimationAllowed
(
sal_B
ool
bNew
)
void
SdrGrafObj
::
SetGrafAnimationAllowed
(
b
ool
bNew
)
{
{
if
(
mbGrafAnimationAllowed
!=
bNew
)
if
(
mbGrafAnimationAllowed
!=
bNew
)
{
{
...
@@ -1324,8 +1339,8 @@ Reference< XInputStream > SdrGrafObj::getInputStream()
...
@@ -1324,8 +1339,8 @@ Reference< XInputStream > SdrGrafObj::getInputStream()
memcpy
(
pBuffer
,
pSourceData
,
nSize
);
memcpy
(
pBuffer
,
pSourceData
,
nSize
);
SvMemoryStream
*
pStream
=
new
SvMemoryStream
(
(
void
*
)
pBuffer
,
(
sal_Size
)
nSize
,
STREAM_READ
);
SvMemoryStream
*
pStream
=
new
SvMemoryStream
(
(
void
*
)
pBuffer
,
(
sal_Size
)
nSize
,
STREAM_READ
);
pStream
->
ObjectOwnsMemory
(
sal_T
rue
);
pStream
->
ObjectOwnsMemory
(
t
rue
);
xStream
.
set
(
new
utl
::
OInputStreamWrapper
(
pStream
,
sal_T
rue
)
);
xStream
.
set
(
new
utl
::
OInputStreamWrapper
(
pStream
,
t
rue
)
);
}
}
}
}
}
}
...
...
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