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
677fe9e4
Kaydet (Commit)
677fe9e4
authored
Ock 06, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused code
üst
1e847dad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
103 deletions
+0
-103
gdimtf.hxx
vcl/inc/vcl/gdimtf.hxx
+0
-7
gdimtf.cxx
vcl/source/gdi/gdimtf.cxx
+0
-96
No files found.
vcl/inc/vcl/gdimtf.hxx
Dosyayı görüntüle @
677fe9e4
...
@@ -161,7 +161,6 @@ public:
...
@@ -161,7 +161,6 @@ public:
sal_Bool
operator
!=
(
const
GDIMetaFile
&
rMtf
)
const
{
return
!
(
*
this
==
rMtf
);
}
sal_Bool
operator
!=
(
const
GDIMetaFile
&
rMtf
)
const
{
return
!
(
*
this
==
rMtf
);
}
void
Clear
();
void
Clear
();
sal_Bool
IsEqual
(
const
GDIMetaFile
&
rMtf
)
const
;
sal_Bool
Mirror
(
sal_uLong
nMirrorFlags
);
sal_Bool
Mirror
(
sal_uLong
nMirrorFlags
);
void
Move
(
long
nX
,
long
nY
);
void
Move
(
long
nX
,
long
nY
);
// additional Move method getting specifics how to handle MapMode( MAP_PIXEL )
// additional Move method getting specifics how to handle MapMode( MAP_PIXEL )
...
@@ -186,7 +185,6 @@ public:
...
@@ -186,7 +185,6 @@ public:
);
);
void
Convert
(
MtfConversion
eConversion
);
void
Convert
(
MtfConversion
eConversion
);
void
ReplaceColors
(
const
Color
&
rSearchColor
,
const
Color
&
rReplaceColor
,
sal_uLong
nTol
=
0
);
void
ReplaceColors
(
const
Color
*
pSearchColors
,
const
Color
*
rReplaceColors
,
void
ReplaceColors
(
const
Color
*
pSearchColors
,
const
Color
*
rReplaceColors
,
sal_uLong
nColorCount
,
sal_uLong
*
pTols
=
NULL
);
sal_uLong
nColorCount
,
sal_uLong
*
pTols
=
NULL
);
...
@@ -206,10 +204,7 @@ public:
...
@@ -206,10 +204,7 @@ public:
void
Stop
();
void
Stop
();
void
WindStart
();
void
WindStart
();
void
WindEnd
();
void
Wind
(
size_t
nAction
);
void
WindPrev
();
void
WindPrev
();
void
WindNext
();
size_t
GetActionSize
()
const
;
size_t
GetActionSize
()
const
;
...
@@ -224,8 +219,6 @@ public:
...
@@ -224,8 +219,6 @@ public:
MetaAction
*
GetCurAction
()
const
{
return
GetAction
(
nCurrentActionElement
);
}
MetaAction
*
GetCurAction
()
const
{
return
GetAction
(
nCurrentActionElement
);
}
MetaAction
*
ReplaceAction
(
MetaAction
*
pAction
,
size_t
nAction
);
MetaAction
*
ReplaceAction
(
MetaAction
*
pAction
,
size_t
nAction
);
sal_Bool
SaveStatus
();
const
Size
&
GetPrefSize
()
const
{
return
aPrefSize
;
}
const
Size
&
GetPrefSize
()
const
{
return
aPrefSize
;
}
void
SetPrefSize
(
const
Size
&
rSize
)
{
aPrefSize
=
rSize
;
}
void
SetPrefSize
(
const
Size
&
rSize
)
{
aPrefSize
=
rSize
;
}
...
...
vcl/source/gdi/gdimtf.cxx
Dosyayı görüntüle @
677fe9e4
...
@@ -292,34 +292,6 @@ sal_Bool GDIMetaFile::operator==( const GDIMetaFile& rMtf ) const
...
@@ -292,34 +292,6 @@ sal_Bool GDIMetaFile::operator==( const GDIMetaFile& rMtf ) const
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
sal_Bool
GDIMetaFile
::
IsEqual
(
const
GDIMetaFile
&
rMtf
)
const
{
const
size_t
nObjCount
=
aList
.
size
();
sal_Bool
bRet
=
sal_False
;
if
(
this
==
&
rMtf
)
bRet
=
sal_True
;
else
if
(
rMtf
.
GetActionSize
()
==
nObjCount
&&
rMtf
.
GetPrefSize
()
==
aPrefSize
&&
rMtf
.
GetPrefMapMode
()
==
aPrefMapMode
)
{
bRet
=
sal_True
;
for
(
size_t
n
=
0
;
n
<
nObjCount
;
n
++
)
{
if
(
!
aList
[
n
]
->
IsEqual
(
*
(
rMtf
.
GetAction
(
n
))
)
)
{
bRet
=
sal_False
;
break
;
}
}
}
return
bRet
;
}
// ------------------------------------------------------------------------
void
GDIMetaFile
::
Clear
()
void
GDIMetaFile
::
Clear
()
{
{
if
(
bRecord
)
if
(
bRecord
)
...
@@ -735,22 +707,6 @@ void GDIMetaFile::WindStart()
...
@@ -735,22 +707,6 @@ void GDIMetaFile::WindStart()
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
GDIMetaFile
::
WindEnd
()
{
if
(
!
bRecord
)
nCurrentActionElement
=
aList
.
empty
()
?
0
:
(
aList
.
size
()
-
1
);
}
// ------------------------------------------------------------------------
void
GDIMetaFile
::
Wind
(
size_t
nActionPos
)
{
if
(
!
bRecord
)
nCurrentActionElement
=
nActionPos
<
aList
.
size
()
?
nActionPos
:
nCurrentActionElement
;
}
// ------------------------------------------------------------------------
void
GDIMetaFile
::
WindPrev
()
void
GDIMetaFile
::
WindPrev
()
{
{
if
(
!
bRecord
)
if
(
!
bRecord
)
...
@@ -760,15 +716,6 @@ void GDIMetaFile::WindPrev()
...
@@ -760,15 +716,6 @@ void GDIMetaFile::WindPrev()
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
GDIMetaFile
::
WindNext
()
{
if
(
!
bRecord
)
if
(
nCurrentActionElement
+
1
<
aList
.
size
()
)
++
nCurrentActionElement
;
}
// ------------------------------------------------------------------------
void
GDIMetaFile
::
AddAction
(
MetaAction
*
pAction
)
void
GDIMetaFile
::
AddAction
(
MetaAction
*
pAction
)
{
{
aList
.
push_back
(
pAction
);
aList
.
push_back
(
pAction
);
...
@@ -829,42 +776,6 @@ void GDIMetaFile::RemoveAction( size_t nPos )
...
@@ -829,42 +776,6 @@ void GDIMetaFile::RemoveAction( size_t nPos )
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
sal_Bool
GDIMetaFile
::
SaveStatus
()
{
if
(
bRecord
)
{
if
(
bPause
)
Linker
(
pOutDev
,
sal_True
);
AddAction
(
new
MetaLineColorAction
(
pOutDev
->
GetLineColor
(),
pOutDev
->
IsLineColor
()
)
);
AddAction
(
new
MetaFillColorAction
(
pOutDev
->
GetFillColor
(),
pOutDev
->
IsFillColor
()
)
);
AddAction
(
new
MetaFontAction
(
pOutDev
->
GetFont
()
)
);
AddAction
(
new
MetaTextColorAction
(
pOutDev
->
GetTextColor
()
)
);
AddAction
(
new
MetaTextFillColorAction
(
pOutDev
->
GetTextFillColor
(),
pOutDev
->
IsTextFillColor
()
)
);
AddAction
(
new
MetaTextLineColorAction
(
pOutDev
->
GetTextLineColor
(),
pOutDev
->
IsTextLineColor
()
)
);
AddAction
(
new
MetaOverlineColorAction
(
pOutDev
->
GetOverlineColor
(),
pOutDev
->
IsOverlineColor
()
)
);
AddAction
(
new
MetaTextAlignAction
(
pOutDev
->
GetTextAlign
()
)
);
AddAction
(
new
MetaRasterOpAction
(
pOutDev
->
GetRasterOp
()
)
);
AddAction
(
new
MetaMapModeAction
(
pOutDev
->
GetMapMode
()
)
);
AddAction
(
new
MetaClipRegionAction
(
pOutDev
->
GetClipRegion
(),
pOutDev
->
IsClipRegion
()
)
);
if
(
bPause
)
Linker
(
pOutDev
,
sal_False
);
return
sal_True
;
}
else
return
sal_False
;
}
// ------------------------------------------------------------------------
sal_Bool
GDIMetaFile
::
Mirror
(
sal_uLong
nMirrorFlags
)
sal_Bool
GDIMetaFile
::
Mirror
(
sal_uLong
nMirrorFlags
)
{
{
const
Size
aOldPrefSize
(
GetPrefSize
()
);
const
Size
aOldPrefSize
(
GetPrefSize
()
);
...
@@ -2491,13 +2402,6 @@ void GDIMetaFile::Convert( MtfConversion eConversion )
...
@@ -2491,13 +2402,6 @@ void GDIMetaFile::Convert( MtfConversion eConversion )
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
GDIMetaFile
::
ReplaceColors
(
const
Color
&
rSearchColor
,
const
Color
&
rReplaceColor
,
sal_uLong
nTol
)
{
ReplaceColors
(
&
rSearchColor
,
&
rReplaceColor
,
1
,
&
nTol
);
}
// ------------------------------------------------------------------------
void
GDIMetaFile
::
ReplaceColors
(
const
Color
*
pSearchColors
,
const
Color
*
pReplaceColors
,
sal_uLong
nColorCount
,
sal_uLong
*
pTols
)
void
GDIMetaFile
::
ReplaceColors
(
const
Color
*
pSearchColors
,
const
Color
*
pReplaceColors
,
sal_uLong
nColorCount
,
sal_uLong
*
pTols
)
{
{
ImplColReplaceParam
aColParam
;
ImplColReplaceParam
aColParam
;
...
...
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