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
16265a1f
Kaydet (Commit)
16265a1f
authored
Haz 13, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use unique_ptr for ImpSdrGDIMetaFileImport::mp*Attr
Change-Id: I8bfe10e46cfaacb329998b11fe507c2302fe2d44
üst
5df3b28a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
svdfmtf.cxx
svx/source/svdraw/svdfmtf.cxx
+4
-10
svdfmtf.hxx
svx/source/svdraw/svdfmtf.hxx
+7
-4
No files found.
svx/source/svdraw/svdfmtf.cxx
Dosyayı görüntüle @
16265a1f
...
...
@@ -19,6 +19,7 @@
#include "svdfmtf.hxx"
#include <editeng/editdata.hxx>
#include <o3tl/make_unique.hxx>
#include <math.h>
#include <svx/xpoly.hxx>
#include <vcl/svapp.hxx>
...
...
@@ -109,19 +110,12 @@ ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport(
mpVD
->
SetLineColor
();
mpVD
->
SetFillColor
();
maOldLineColor
.
SetRed
(
mpVD
->
GetLineColor
().
GetRed
()
+
1
);
mpLineAttr
=
new
SfxItemSet
(
rModel
.
GetItemPool
(),
XATTR_LINE_FIRST
,
XATTR_LINE_LAST
,
0
,
0
);
mpFillAttr
=
new
SfxItemSet
(
rModel
.
GetItemPool
(),
XATTR_FILL_FIRST
,
XATTR_FILL_LAST
,
0
,
0
);
mpTextAttr
=
new
SfxItemSet
(
rModel
.
GetItemPool
(),
EE_ITEMS_START
,
EE_ITEMS_END
,
0
,
0
);
mpLineAttr
=
o3tl
::
make_unique
<
SfxItemSet
>
(
rModel
.
GetItemPool
(),
XATTR_LINE_FIRST
,
XATTR_LINE_LAST
,
0
,
0
);
mpFillAttr
=
o3tl
::
make_unique
<
SfxItemSet
>
(
rModel
.
GetItemPool
(),
XATTR_FILL_FIRST
,
XATTR_FILL_LAST
,
0
,
0
);
mpTextAttr
=
o3tl
::
make_unique
<
SfxItemSet
>
(
rModel
.
GetItemPool
(),
EE_ITEMS_START
,
EE_ITEMS_END
,
0
,
0
);
checkClip
();
}
ImpSdrGDIMetaFileImport
::~
ImpSdrGDIMetaFileImport
()
{
delete
mpLineAttr
;
delete
mpFillAttr
;
delete
mpTextAttr
;
}
void
ImpSdrGDIMetaFileImport
::
DoLoopActions
(
GDIMetaFile
&
rMtf
,
SvdProgressInfo
*
pProgrInfo
,
sal_uInt32
*
pActionsToReport
)
{
const
sal_uLong
nCount
(
rMtf
.
GetActionSize
());
...
...
svx/source/svdraw/svdfmtf.hxx
Dosyayı görüntüle @
16265a1f
...
...
@@ -20,6 +20,10 @@
#ifndef INCLUDED_SVX_SOURCE_SVDRAW_SVDFMTF_HXX
#define INCLUDED_SVX_SOURCE_SVDRAW_SVDFMTF_HXX
#include <sal/config.h>
#include <memory>
#include <tools/contnr.hxx>
#include <tools/fract.hxx>
#include <vcl/metaact.hxx>
...
...
@@ -46,9 +50,9 @@ protected:
ScopedVclPtr
<
VirtualDevice
>
mpVD
;
tools
::
Rectangle
maScaleRect
;
size_t
mnMapScalingOfs
;
// from here on, not edited with MapScaling
SfxItemSet
*
mpLineAttr
;
SfxItemSet
*
mpFillAttr
;
SfxItemSet
*
mpTextAttr
;
std
::
unique_ptr
<
SfxItemSet
>
mpLineAttr
;
std
::
unique_ptr
<
SfxItemSet
>
mpFillAttr
;
std
::
unique_ptr
<
SfxItemSet
>
mpTextAttr
;
SdrModel
*
mpModel
;
SdrLayerID
mnLayer
;
Color
maOldLineColor
;
...
...
@@ -159,7 +163,6 @@ public:
SdrModel
&
rModel
,
SdrLayerID
nLay
,
const
tools
::
Rectangle
&
rRect
);
~
ImpSdrGDIMetaFileImport
();
size_t
DoImport
(
const
GDIMetaFile
&
rMtf
,
...
...
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