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
533f390e
Kaydet (Commit)
533f390e
authored
Ock 24, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1265796 Dereference null return value
Change-Id: I779dacdb7fb18ba8148e932b4dc684d08f824cbe
üst
8e375ba2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
23 deletions
+14
-23
imapdlg.hxx
include/svx/imapdlg.hxx
+1
-7
imapwrap.cxx
sc/source/ui/view/imapwrap.cxx
+0
-10
imapwrap.hxx
sc/source/ui/view/imapwrap.hxx
+0
-2
tabvwsh9.cxx
sc/source/ui/view/tabvwsh9.cxx
+4
-3
imapdlg.cxx
svx/source/dialog/imapdlg.cxx
+9
-1
No files found.
include/svx/imapdlg.hxx
Dosyayı görüntüle @
533f390e
...
@@ -155,13 +155,7 @@ public:
...
@@ -155,13 +155,7 @@ public:
virtual
void
KeyInput
(
const
KeyEvent
&
rKEvt
)
SAL_OVERRIDE
;
virtual
void
KeyInput
(
const
KeyEvent
&
rKEvt
)
SAL_OVERRIDE
;
};
};
inline
SvxIMapDlg
*
SVXIMAPDLG
()
SVX_DLLPUBLIC
SvxIMapDlg
*
GetIMapDlg
();
{
SfxChildWindow
*
pWnd
=
NULL
;
if
(
SfxViewFrame
::
Current
()
&&
SfxViewFrame
::
Current
()
->
HasChildWindow
(
SvxIMapDlgChildWindow
::
GetChildWindowId
()))
pWnd
=
SfxViewFrame
::
Current
()
->
GetChildWindow
(
SvxIMapDlgChildWindow
::
GetChildWindowId
());
return
pWnd
?
static_cast
<
SvxIMapDlg
*>
(
pWnd
->
GetWindow
())
:
NULL
;
}
#endif // INCLUDED_SVX_IMAPDLG_HXX
#endif // INCLUDED_SVX_IMAPDLG_HXX
...
...
sc/source/ui/view/imapwrap.cxx
Dosyayı görüntüle @
533f390e
...
@@ -27,16 +27,6 @@ sal_uInt16 ScIMapChildWindowId()
...
@@ -27,16 +27,6 @@ sal_uInt16 ScIMapChildWindowId()
return
SvxIMapDlgChildWindow
::
GetChildWindowId
();
return
SvxIMapDlgChildWindow
::
GetChildWindowId
();
}
}
SvxIMapDlg
*
ScGetIMapDlg
()
{
//! pass view frame here and in SVXIMAPDLG()
SfxViewFrame
*
pViewFrm
=
SfxViewFrame
::
Current
();
if
(
pViewFrm
&&
pViewFrm
->
HasChildWindow
(
SvxIMapDlgChildWindow
::
GetChildWindowId
()))
return
SVXIMAPDLG
();
else
return
NULL
;
}
void
ScIMapDlgSet
(
const
Graphic
&
rGraphic
,
const
ImageMap
*
pImageMap
,
void
ScIMapDlgSet
(
const
Graphic
&
rGraphic
,
const
ImageMap
*
pImageMap
,
const
TargetList
*
pTargetList
,
void
*
pEditingObj
)
const
TargetList
*
pTargetList
,
void
*
pEditingObj
)
{
{
...
...
sc/source/ui/view/imapwrap.hxx
Dosyayı görüntüle @
533f390e
...
@@ -28,8 +28,6 @@ class Graphic;
...
@@ -28,8 +28,6 @@ class Graphic;
class
ImageMap
;
class
ImageMap
;
class
SvxIMapDlg
;
class
SvxIMapDlg
;
SvxIMapDlg
*
ScGetIMapDlg
();
sal_uInt16
ScIMapChildWindowId
();
sal_uInt16
ScIMapChildWindowId
();
ImageMap
const
&
ScIMapDlgGetMap
(
SvxIMapDlg
*
pDlg
);
ImageMap
const
&
ScIMapDlgGetMap
(
SvxIMapDlg
*
pDlg
);
...
...
sc/source/ui/view/tabvwsh9.cxx
Dosyayı görüntüle @
533f390e
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <svx/imapdlg.hxx>
#include <svx/svdmark.hxx>
#include <svx/svdmark.hxx>
#include <svx/svdview.hxx>
#include <svx/svdview.hxx>
#include <svx/gallery.hxx>
#include <svx/gallery.hxx>
...
@@ -106,7 +107,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
...
@@ -106,7 +107,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
if
(
pThisFrame
->
HasChildWindow
(
nId
)
)
if
(
pThisFrame
->
HasChildWindow
(
nId
)
)
{
{
SvxIMapDlg
*
pDlg
=
Sc
GetIMapDlg
();
SvxIMapDlg
*
pDlg
=
GetIMapDlg
();
if
(
pDlg
)
if
(
pDlg
)
{
{
SdrView
*
pDrView
=
GetSdrView
();
SdrView
*
pDrView
=
GetSdrView
();
...
@@ -131,7 +132,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
...
@@ -131,7 +132,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
if
(
pMark
)
if
(
pMark
)
{
{
SdrObject
*
pSdrObj
=
pMark
->
GetMarkedSdrObj
();
SdrObject
*
pSdrObj
=
pMark
->
GetMarkedSdrObj
();
SvxIMapDlg
*
pDlg
=
Sc
GetIMapDlg
();
SvxIMapDlg
*
pDlg
=
GetIMapDlg
();
if
(
ScIMapDlgGetObj
(
pDlg
)
==
(
void
*
)
pSdrObj
)
if
(
ScIMapDlgGetObj
(
pDlg
)
==
(
void
*
)
pSdrObj
)
{
{
...
@@ -192,7 +193,7 @@ void ScTabViewShell::GetImageMapState( SfxItemSet& rSet )
...
@@ -192,7 +193,7 @@ void ScTabViewShell::GetImageMapState( SfxItemSet& rSet )
{
{
const
SdrMarkList
&
rMarkList
=
pDrView
->
GetMarkedObjectList
();
const
SdrMarkList
&
rMarkList
=
pDrView
->
GetMarkedObjectList
();
if
(
rMarkList
.
GetMarkCount
()
==
1
)
if
(
rMarkList
.
GetMarkCount
()
==
1
)
if
(
ScIMapDlgGetObj
(
Sc
GetIMapDlg
())
==
if
(
ScIMapDlgGetObj
(
GetIMapDlg
())
==
(
void
*
)
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
()
)
(
void
*
)
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
()
)
bDisable
=
false
;
bDisable
=
false
;
}
}
...
...
svx/source/dialog/imapdlg.cxx
Dosyayı görüntüle @
533f390e
...
@@ -109,7 +109,7 @@ SvxIMapDlgChildWindow::SvxIMapDlgChildWindow( vcl::Window* _pParent, sal_uInt16
...
@@ -109,7 +109,7 @@ SvxIMapDlgChildWindow::SvxIMapDlgChildWindow( vcl::Window* _pParent, sal_uInt16
void
SvxIMapDlgChildWindow
::
UpdateIMapDlg
(
const
Graphic
&
rGraphic
,
const
ImageMap
*
pImageMap
,
void
SvxIMapDlgChildWindow
::
UpdateIMapDlg
(
const
Graphic
&
rGraphic
,
const
ImageMap
*
pImageMap
,
const
TargetList
*
pTargetList
,
void
*
pEditingObj
)
const
TargetList
*
pTargetList
,
void
*
pEditingObj
)
{
{
SvxIMapDlg
*
pDlg
=
SVXIMAPDLG
();
SvxIMapDlg
*
pDlg
=
GetIMapDlg
();
if
(
pDlg
)
if
(
pDlg
)
pDlg
->
UpdateLink
(
rGraphic
,
pImageMap
,
pTargetList
,
pEditingObj
);
pDlg
->
UpdateLink
(
rGraphic
,
pImageMap
,
pTargetList
,
pEditingObj
);
}
}
...
@@ -773,4 +773,12 @@ IMPL_LINK_NOARG(SvxIMapDlg, MiscHdl)
...
@@ -773,4 +773,12 @@ IMPL_LINK_NOARG(SvxIMapDlg, MiscHdl)
return
0L
;
return
0L
;
}
}
SvxIMapDlg
*
GetIMapDlg
()
{
SfxChildWindow
*
pWnd
=
NULL
;
if
(
SfxViewFrame
::
Current
()
&&
SfxViewFrame
::
Current
()
->
HasChildWindow
(
SvxIMapDlgChildWindow
::
GetChildWindowId
()))
pWnd
=
SfxViewFrame
::
Current
()
->
GetChildWindow
(
SvxIMapDlgChildWindow
::
GetChildWindowId
());
return
pWnd
?
static_cast
<
SvxIMapDlg
*>
(
pWnd
->
GetWindow
())
:
NULL
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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