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
a6dc4cb2
Kaydet (Commit)
a6dc4cb2
authored
May 26, 2014
tarafından
Takeshi Abe
Kaydeden (comit)
Fridrich Štrba
May 28, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid possible memory leaks in case of exceptions
Change-Id: I185e957da57f4da7dbd2b95496bcd5349fc7d039
üst
d5f5f644
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
27 deletions
+26
-27
MediaObjectBar.cxx
sd/source/ui/view/MediaObjectBar.cxx
+3
-6
drtxtob1.cxx
sd/source/ui/view/drtxtob1.cxx
+4
-4
drviews3.cxx
sd/source/ui/view/drviews3.cxx
+6
-4
drviews4.cxx
sd/source/ui/view/drviews4.cxx
+3
-3
drviews5.cxx
sd/source/ui/view/drviews5.cxx
+3
-3
drviews9.cxx
sd/source/ui/view/drviews9.cxx
+3
-3
drviewsa.cxx
sd/source/ui/view/drviewsa.cxx
+4
-4
No files found.
sd/source/ui/view/MediaObjectBar.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -39,6 +39,7 @@
#include "drawview.hxx"
#include "sdresid.hxx"
#include "drawdoc.hxx"
#include <boost/scoped_ptr.hpp>
using
namespace
sd
;
...
...
@@ -89,7 +90,7 @@ void MediaObjectBar::GetState( SfxItemSet& rSet )
{
if
(
SID_AVMEDIA_TOOLBOX
==
nWhich
)
{
SdrMarkList
*
pMarkList
=
new
SdrMarkList
(
mpView
->
GetMarkedObjectList
()
);
boost
::
scoped_ptr
<
SdrMarkList
>
pMarkList
(
new
SdrMarkList
(
mpView
->
GetMarkedObjectList
()
)
);
bool
bDisable
=
true
;
if
(
1
==
pMarkList
->
GetMarkCount
()
)
...
...
@@ -108,8 +109,6 @@ void MediaObjectBar::GetState( SfxItemSet& rSet )
if
(
bDisable
)
rSet
.
DisableItem
(
SID_AVMEDIA_TOOLBOX
);
delete
pMarkList
;
}
nWhich
=
aIter
.
NextWhich
();
...
...
@@ -130,7 +129,7 @@ void MediaObjectBar::Execute( SfxRequest& rReq )
if
(
pItem
)
{
SdrMarkList
*
pMarkList
=
new
SdrMarkList
(
mpView
->
GetMarkedObjectList
()
);
boost
::
scoped_ptr
<
SdrMarkList
>
pMarkList
(
new
SdrMarkList
(
mpView
->
GetMarkedObjectList
()
)
);
if
(
1
==
pMarkList
->
GetMarkCount
()
)
{
...
...
@@ -146,8 +145,6 @@ void MediaObjectBar::Execute( SfxRequest& rReq )
rDoc
.
SetChanged
(
true
);
}
}
delete
pMarkList
;
}
}
}
...
...
sd/source/ui/view/drtxtob1.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -150,7 +150,7 @@ void TextObjectBar::Execute( SfxRequest &rReq )
SfxItemSet
aTmpSet
(
pOLV
->
GetOutliner
()
->
GetParaAttribs
(
nPara
)
);
aAttr
.
Put
(
aTmpSet
,
false
);
// sal_False= InvalidItems is not default, handle it as "holes"
const
SvxULSpaceItem
&
rItem
=
(
const
SvxULSpaceItem
&
)
aAttr
.
Get
(
EE_PARA_ULSPACE
);
SvxULSpaceItem
*
pNewItem
=
(
SvxULSpaceItem
*
)
rItem
.
Clone
(
);
boost
::
scoped_ptr
<
SvxULSpaceItem
>
pNewItem
((
SvxULSpaceItem
*
)
rItem
.
Clone
()
);
long
nUpper
=
pNewItem
->
GetUpper
();
if
(
nSlot
==
SID_PARASPACE_INCREASE
)
...
...
@@ -174,7 +174,7 @@ void TextObjectBar::Execute( SfxRequest &rReq )
SfxItemSet
aNewAttrs
(
aAttr
);
aNewAttrs
.
Put
(
*
pNewItem
);
delete
pNewItem
;
pNewItem
.
reset
()
;
pOLV
->
GetOutliner
()
->
SetParaAttribs
(
nPara
,
aNewAttrs
);
}
}
...
...
@@ -191,7 +191,7 @@ void TextObjectBar::Execute( SfxRequest &rReq )
{
SfxItemSet
aNewAttrs
(
*
(
aEditAttr
.
GetPool
()),
aEditAttr
.
GetRanges
());
const
SvxULSpaceItem
&
rItem
=
(
const
SvxULSpaceItem
&
)
aEditAttr
.
Get
(
EE_PARA_ULSPACE
);
SvxULSpaceItem
*
pNewItem
=
(
SvxULSpaceItem
*
)
rItem
.
Clone
(
);
boost
::
scoped_ptr
<
SvxULSpaceItem
>
pNewItem
((
SvxULSpaceItem
*
)
rItem
.
Clone
()
);
long
nUpper
=
pNewItem
->
GetUpper
();
if
(
nSlot
==
SID_PARASPACE_INCREASE
)
...
...
@@ -214,7 +214,7 @@ void TextObjectBar::Execute( SfxRequest &rReq )
pNewItem
->
SetLower
(
(
sal_uInt16
)
nLower
);
aNewAttrs
.
Put
(
*
pNewItem
);
delete
pNewItem
;
pNewItem
.
reset
()
;
mpView
->
SetAttributes
(
aNewAttrs
);
}
...
...
sd/source/ui/view/drviews3.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -83,6 +83,8 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <editeng/lspcitem.hxx>
#include <editeng/ulspitem.hxx>
#include <boost/scoped_ptr.hpp>
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
drawing
::
framework
;
using
::
com
::
sun
::
star
::
frame
::
XFrame
;
...
...
@@ -291,11 +293,11 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq)
case
SID_INSERT_DATE_TIME
:
{
SdAbstractDialogFactory
*
pFact
=
SdAbstractDialogFactory
::
Create
();
AbstractHeaderFooterDialog
*
pDlg
=
pFact
?
pFact
->
CreateHeaderFooterDialog
(
(
::
ViewShell
*
)
this
,
GetActiveWindow
(),
GetDoc
(),
mpActualPage
)
:
0
;
boost
::
scoped_ptr
<
AbstractHeaderFooterDialog
>
pDlg
(
pFact
?
pFact
->
CreateHeaderFooterDialog
(
(
::
ViewShell
*
)
this
,
GetActiveWindow
(),
GetDoc
(),
mpActualPage
)
:
0
)
;
if
(
pDlg
)
{
pDlg
->
Execute
();
delete
pDlg
;
pDlg
.
reset
()
;
GetActiveWindow
()
->
Invalidate
();
UpdatePreview
(
mpActualPage
);
...
...
@@ -315,11 +317,11 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq)
pPage
=
static_cast
<
SdPage
*>
(
&
pPage
->
TRG_GetMasterPage
());
SdAbstractDialogFactory
*
pFact
=
SdAbstractDialogFactory
::
Create
();
VclAbstractDialog
*
pDlg
=
pFact
?
pFact
->
CreateMasterLayoutDialog
(
GetActiveWindow
(),
GetDoc
(),
pPage
)
:
0
;
boost
::
scoped_ptr
<
VclAbstractDialog
>
pDlg
(
pFact
?
pFact
->
CreateMasterLayoutDialog
(
GetActiveWindow
(),
GetDoc
(),
pPage
)
:
0
)
;
if
(
pDlg
)
{
pDlg
->
Execute
();
delete
pDlg
;
pDlg
.
reset
()
;
Invalidate
();
}
rReq
.
Done
();
...
...
sd/source/ui/view/drviews4.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -65,6 +65,8 @@
#include <svx/svditer.hxx>
#include <navigatr.hxx>
#include <boost/scoped_ptr.hpp>
namespace
sd
{
#define PIPETTE_RANGE 0
...
...
@@ -558,7 +560,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
aMPos
=
Point
(
20
,
20
);
aFieldPopup
.
Execute
(
pWin
,
aMPos
);
SvxFieldData
*
pField
=
aFieldPopup
.
GetField
(
);
boost
::
scoped_ptr
<
SvxFieldData
>
pField
(
aFieldPopup
.
GetField
()
);
if
(
pField
)
{
SvxFieldItem
aFieldItem
(
*
pField
,
EE_FEATURE_FIELD
);
...
...
@@ -578,8 +580,6 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
if
(
!
bSel
)
aSel
.
nEndPos
--
;
pOLV
->
SetSelection
(
aSel
);
delete
pField
;
}
}
else
...
...
sd/source/ui/view/drviews5.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -64,6 +64,7 @@
#include "FormShellManager.hxx"
#include "LayerDialogContent.hxx"
#include "DrawController.hxx"
#include <boost/scoped_ptr.hpp>
namespace
sd
{
...
...
@@ -619,12 +620,11 @@ void DrawViewShell::SetActiveTabLayerIndex (int nIndex)
// Tell the draw view and the tab control of the new active layer.
mpDrawView
->
SetActiveLayer
(
pBar
->
GetPageText
(
pBar
->
GetPageId
((
sal_uInt16
)
nIndex
)));
pBar
->
SetCurPageId
(
pBar
->
GetPageId
((
sal_uInt16
)
nIndex
));
SdUnoDrawView
*
pUnoDrawView
=
new
SdUnoDrawView
(
boost
::
scoped_ptr
<
SdUnoDrawView
>
pUnoDrawView
(
new
SdUnoDrawView
(
*
this
,
*
GetView
());
*
GetView
())
)
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XLayer
>
rLayer
=
pUnoDrawView
->
getActiveLayer
();
GetViewShellBase
().
GetDrawController
().
fireChangeLayer
(
&
rLayer
);
delete
pUnoDrawView
;
}
}
}
...
...
sd/source/ui/view/drviews9.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -59,6 +59,7 @@
#include <svx/galleryitem.hxx>
#include <com/sun/star/gallery/GalleryItemType.hpp>
#include <boost/scoped_ptr.hpp>
namespace
sd
{
...
...
@@ -208,7 +209,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
CheckLineTo
(
rReq
);
SfxBindings
&
rBindings
=
GetViewFrame
()
->
GetBindings
();
SfxItemSet
*
pAttr
=
new
SfxItemSet
(
GetDoc
()
->
GetPool
()
);
boost
::
scoped_ptr
<
SfxItemSet
>
pAttr
(
new
SfxItemSet
(
GetDoc
()
->
GetPool
()
)
);
GetView
()
->
GetAttributes
(
*
pAttr
);
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
...
...
@@ -733,9 +734,8 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
;
}
mpDrawView
->
SetAttributes
(
*
(
const
SfxItemSet
*
)
pAttr
);
mpDrawView
->
SetAttributes
(
*
(
const
SfxItemSet
*
)
pAttr
.
get
()
);
rReq
.
Ignore
();
delete
pAttr
;
}
/**
...
...
sd/source/ui/view/drviewsa.cxx
Dosyayı görüntüle @
a6dc4cb2
...
...
@@ -69,6 +69,7 @@
#include "DrawController.hxx"
#include <boost/bind.hpp>
#include <boost/scoped_ptr.hpp>
using
namespace
::
rtl
;
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -598,13 +599,13 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet)
}
else
{
SvxZoomItem
*
pZoomItem
;
boost
::
scoped_ptr
<
SvxZoomItem
>
pZoomItem
;
sal_uInt16
nZoom
=
(
sal_uInt16
)
GetActiveWindow
()
->
GetZoom
();
if
(
mbZoomOnPage
)
pZoomItem
=
new
SvxZoomItem
(
SVX_ZOOM_WHOLEPAGE
,
nZoom
);
pZoomItem
.
reset
(
new
SvxZoomItem
(
SVX_ZOOM_WHOLEPAGE
,
nZoom
)
);
else
pZoomItem
=
new
SvxZoomItem
(
SVX_ZOOM_PERCENT
,
nZoom
);
pZoomItem
.
reset
(
new
SvxZoomItem
(
SVX_ZOOM_PERCENT
,
nZoom
)
);
// constrain area
sal_uInt16
nZoomValues
=
SVX_ZOOM_ENABLE_ALL
;
...
...
@@ -618,7 +619,6 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet)
pZoomItem
->
SetValueSet
(
nZoomValues
);
rSet
.
Put
(
*
pZoomItem
);
delete
pZoomItem
;
}
}
if
(
SFX_ITEM_AVAILABLE
==
rSet
.
GetItemState
(
SID_ATTR_ZOOMSLIDER
)
)
...
...
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