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
4f75ad50
Kaydet (Commit)
4f75ad50
authored
May 23, 2018
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ScTabViewShell is never optional
Change-Id: I9f42fd6179c0a64cc14a051ca7c9e2ed9300f5c8
üst
8f1a64bb
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
103 additions
and
103 deletions
+103
-103
fuconarc.cxx
sc/source/ui/drawfunc/fuconarc.cxx
+3
-3
fuconcustomshape.cxx
sc/source/ui/drawfunc/fuconcustomshape.cxx
+2
-2
fuconpol.cxx
sc/source/ui/drawfunc/fuconpol.cxx
+3
-3
fuconrec.cxx
sc/source/ui/drawfunc/fuconrec.cxx
+3
-3
fuconstr.cxx
sc/source/ui/drawfunc/fuconstr.cxx
+3
-3
fuconuno.cxx
sc/source/ui/drawfunc/fuconuno.cxx
+3
-3
fudraw.cxx
sc/source/ui/drawfunc/fudraw.cxx
+5
-5
fuins1.cxx
sc/source/ui/drawfunc/fuins1.cxx
+11
-11
fuins2.cxx
sc/source/ui/drawfunc/fuins2.cxx
+25
-25
fupoor.cxx
sc/source/ui/drawfunc/fupoor.cxx
+2
-2
fusel.cxx
sc/source/ui/drawfunc/fusel.cxx
+1
-1
futext.cxx
sc/source/ui/drawfunc/futext.cxx
+3
-3
fuconarc.hxx
sc/source/ui/inc/fuconarc.hxx
+3
-3
fuconcustomshape.hxx
sc/source/ui/inc/fuconcustomshape.hxx
+1
-1
fuconpol.hxx
sc/source/ui/inc/fuconpol.hxx
+2
-2
fuconrec.hxx
sc/source/ui/inc/fuconrec.hxx
+3
-3
fuconstr.hxx
sc/source/ui/inc/fuconstr.hxx
+3
-3
fuconuno.hxx
sc/source/ui/inc/fuconuno.hxx
+1
-1
fudraw.hxx
sc/source/ui/inc/fudraw.hxx
+1
-1
fuinsert.hxx
sc/source/ui/inc/fuinsert.hxx
+10
-10
fupoor.hxx
sc/source/ui/inc/fupoor.hxx
+1
-1
futext.hxx
sc/source/ui/inc/futext.hxx
+1
-1
tabvwsh2.cxx
sc/source/ui/view/tabvwsh2.cxx
+8
-8
tabvwshb.cxx
sc/source/ui/view/tabvwshb.cxx
+5
-5
No files found.
sc/source/ui/drawfunc/fuconarc.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#include <svx/svdocirc.hxx>
#include <svx/svdocirc.hxx>
#include <svx/sxciaitm.hxx>
#include <svx/sxciaitm.hxx>
FuConstArc
::
FuConstArc
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuConstArc
::
FuConstArc
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuConstruct
(
pViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
rViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/drawfunc/fuconcustomshape.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
FuConstCustomShape
::
FuConstCustomShape
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
FuConstCustomShape
::
FuConstCustomShape
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuConstruct
(
pViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
rViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
if
(
pArgs
)
if
(
pArgs
)
...
...
sc/source/ui/drawfunc/fuconpol.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/point/b2dpoint.hxx>
FuConstPolygon
::
FuConstPolygon
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuConstPolygon
::
FuConstPolygon
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuConstruct
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/drawfunc/fuconrec.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/point/b2dpoint.hxx>
FuConstRectangle
::
FuConstRectangle
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuConstRectangle
::
FuConstRectangle
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuConstruct
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/drawfunc/fuconstr.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
//! fusel,fuconstr,futext - combine them!
//! fusel,fuconstr,futext - combine them!
#define SC_MAXDRAGMOVE 3
#define SC_MAXDRAGMOVE 3
FuConstruct
::
FuConstruct
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuConstruct
::
FuConstruct
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
FuDraw
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuDraw
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/drawfunc/fuconuno.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
#include <sc.hrc>
#include <sc.hrc>
#include <drawview.hxx>
#include <drawview.hxx>
FuConstUnoControl
::
FuConstUnoControl
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuConstUnoControl
::
FuConstUnoControl
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuConstruct
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
,
nInventor
(
SdrInventor
::
Unknown
)
,
nInventor
(
SdrInventor
::
Unknown
)
,
nIdentifier
(
0
)
,
nIdentifier
(
0
)
{
{
...
...
sc/source/ui/drawfunc/fudraw.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -40,11 +40,11 @@
...
@@ -40,11 +40,11 @@
#include <drawview.hxx>
#include <drawview.hxx>
// base class for draw module specific functions
// base class for draw module specific functions
FuDraw
::
FuDraw
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuDraw
::
FuDraw
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
FuPoor
(
pViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
),
:
FuPoor
(
rViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
aNewPointer
(
PointerStyle
::
Arrow
),
,
aNewPointer
(
PointerStyle
::
Arrow
)
aOldPointer
(
PointerStyle
::
Arrow
)
,
aOldPointer
(
PointerStyle
::
Arrow
)
{
{
}
}
...
...
sc/source/ui/drawfunc/fuins1.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -99,7 +99,7 @@ void ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage )
...
@@ -99,7 +99,7 @@ void ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage )
static
void
lcl_InsertGraphic
(
const
Graphic
&
rGraphic
,
static
void
lcl_InsertGraphic
(
const
Graphic
&
rGraphic
,
const
OUString
&
rFileName
,
const
OUString
&
rFilterName
,
bool
bAsLink
,
bool
bApi
,
const
OUString
&
rFileName
,
const
OUString
&
rFilterName
,
bool
bAsLink
,
bool
bApi
,
ScTabViewShell
*
p
ViewSh
,
const
vcl
::
Window
*
pWindow
,
SdrView
*
pView
,
ScTabViewShell
&
r
ViewSh
,
const
vcl
::
Window
*
pWindow
,
SdrView
*
pView
,
ScAnchorType
aAnchorType
=
SCA_CELL
)
ScAnchorType
aAnchorType
=
SCA_CELL
)
{
{
Graphic
&
rGraphic1
=
const_cast
<
Graphic
&>
(
rGraphic
);
Graphic
&
rGraphic1
=
const_cast
<
Graphic
&>
(
rGraphic
);
...
@@ -117,7 +117,7 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
...
@@ -117,7 +117,7 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
}
}
}
}
}
}
ScDrawView
*
pDrawView
=
pViewSh
->
GetScDrawView
();
ScDrawView
*
pDrawView
=
rViewSh
.
GetScDrawView
();
// #i123922# check if an existing object is selected; if yes, evtl. replace
// #i123922# check if an existing object is selected; if yes, evtl. replace
// the graphic for a SdrGraphObj (including link state updates) or adapt the fill
// the graphic for a SdrGraphObj (including link state updates) or adapt the fill
...
@@ -167,9 +167,9 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
...
@@ -167,9 +167,9 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
SdrPageView
*
pPV
=
pView
->
GetSdrPageView
();
SdrPageView
*
pPV
=
pView
->
GetSdrPageView
();
SdrPage
*
pPage
=
pPV
->
GetPage
();
SdrPage
*
pPage
=
pPV
->
GetPage
();
Point
aInsertPos
=
pViewSh
->
GetInsertPos
();
Point
aInsertPos
=
rViewSh
.
GetInsertPos
();
ScViewData
&
rData
=
pViewSh
->
GetViewData
();
ScViewData
&
rData
=
rViewSh
.
GetViewData
();
if
(
rData
.
GetDocument
()
->
IsNegativePage
(
rData
.
GetTabNo
()
)
)
if
(
rData
.
GetDocument
()
->
IsNegativePage
(
rData
.
GetTabNo
()
)
)
aInsertPos
.
AdjustX
(
-
(
aLogicSize
.
Width
())
);
// move position to left edge
aInsertPos
.
AdjustX
(
-
(
aLogicSize
.
Width
())
);
// move position to left edge
...
@@ -255,12 +255,12 @@ static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi,
...
@@ -255,12 +255,12 @@ static void lcl_InsertMedia( const OUString& rMediaURL, bool bApi,
pView
->
InsertObjectAtView
(
pObj
,
*
pPV
,
bApi
?
SdrInsertFlags
::
DONTMARK
:
SdrInsertFlags
::
NONE
);
pView
->
InsertObjectAtView
(
pObj
,
*
pPV
,
bApi
?
SdrInsertFlags
::
DONTMARK
:
SdrInsertFlags
::
NONE
);
}
}
FuInsertGraphic
::
FuInsertGraphic
(
ScTabViewShell
*
p
ViewSh
,
FuInsertGraphic
::
FuInsertGraphic
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
)
SfxRequest
&
rReq
)
:
FuPoor
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuPoor
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
...
@@ -281,7 +281,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
...
@@ -281,7 +281,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
ErrCode
nError
=
GraphicFilter
::
LoadGraphic
(
aFileName
,
aFilterName
,
aGraphic
,
&
GraphicFilter
::
GetGraphicFilter
()
);
ErrCode
nError
=
GraphicFilter
::
LoadGraphic
(
aFileName
,
aFilterName
,
aGraphic
,
&
GraphicFilter
::
GetGraphicFilter
()
);
if
(
nError
==
ERRCODE_NONE
)
if
(
nError
==
ERRCODE_NONE
)
{
{
lcl_InsertGraphic
(
aGraphic
,
aFileName
,
aFilterName
,
bAsLink
,
true
,
p
ViewSh
,
pWindow
,
pView
);
lcl_InsertGraphic
(
aGraphic
,
aFileName
,
aFilterName
,
bAsLink
,
true
,
r
ViewSh
,
pWindow
,
pView
);
}
}
}
}
else
else
...
@@ -347,7 +347,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
...
@@ -347,7 +347,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
else
else
aAnchorType
=
SCA_DONTKNOW
;
aAnchorType
=
SCA_DONTKNOW
;
lcl_InsertGraphic
(
aGraphic
,
aFileName
,
aFilterName
,
bAsLink
,
false
,
p
ViewSh
,
pWindow
,
pView
,
aAnchorType
);
lcl_InsertGraphic
(
aGraphic
,
aFileName
,
aFilterName
,
bAsLink
,
false
,
r
ViewSh
,
pWindow
,
pView
,
aAnchorType
);
// append items for recording
// append items for recording
rReq
.
AppendItem
(
SfxStringItem
(
SID_INSERT_GRAPHIC
,
aFileName
)
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_INSERT_GRAPHIC
,
aFileName
)
);
...
@@ -367,12 +367,12 @@ FuInsertGraphic::~FuInsertGraphic()
...
@@ -367,12 +367,12 @@ FuInsertGraphic::~FuInsertGraphic()
{
{
}
}
FuInsertMedia
::
FuInsertMedia
(
ScTabViewShell
*
p
ViewSh
,
FuInsertMedia
::
FuInsertMedia
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
const
SfxRequest
&
rReq
)
:
FuPoor
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
FuPoor
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
OUString
aURL
;
OUString
aURL
;
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
...
@@ -413,7 +413,7 @@ FuInsertMedia::FuInsertMedia( ScTabViewShell* pViewSh,
...
@@ -413,7 +413,7 @@ FuInsertMedia::FuInsertMedia( ScTabViewShell* pViewSh,
else
else
#endif
#endif
{
{
lcl_InsertMedia
(
aURL
,
bAPI
,
p
ViewSh
,
pWindow
,
pView
,
aPrefSize
,
lcl_InsertMedia
(
aURL
,
bAPI
,
&
r
ViewSh
,
pWindow
,
pView
,
aPrefSize
,
bLink
);
bLink
);
if
(
pWin
)
if
(
pWin
)
...
...
sc/source/ui/drawfunc/fuins2.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -219,9 +219,9 @@ void lcl_ChartInit(const uno::Reference <embed::XEmbeddedObject>& xObj, ScViewDa
...
@@ -219,9 +219,9 @@ void lcl_ChartInit(const uno::Reference <embed::XEmbeddedObject>& xObj, ScViewDa
}
}
FuInsertOLE
::
FuInsertOLE
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuInsertOLE
::
FuInsertOLE
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
SfxRequest
&
rReq
)
:
FuPoor
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuPoor
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
if
(
!
rReq
.
IsAPI
()
)
if
(
!
rReq
.
IsAPI
()
)
rReq
.
Done
();
rReq
.
Done
();
...
@@ -278,7 +278,7 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
...
@@ -278,7 +278,7 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
nAspect
=
embed
::
Aspects
::
MSOLE_ICON
;
nAspect
=
embed
::
Aspects
::
MSOLE_ICON
;
if
(
xObj
.
is
()
)
if
(
xObj
.
is
()
)
pViewSh
->
GetObjectShell
()
->
GetEmbeddedObjectContainer
().
InsertEmbeddedObject
(
xObj
,
aName
);
rViewSh
.
GetObjectShell
()
->
GetEmbeddedObjectContainer
().
InsertEmbeddedObject
(
xObj
,
aName
);
// to activate DrawShell (no need to activate Object)
// to activate DrawShell (no need to activate Object)
bIsFromFile
=
!
pDlg
->
IsCreateNew
();
bIsFromFile
=
!
pDlg
->
IsCreateNew
();
}
}
...
@@ -341,11 +341,11 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
...
@@ -341,11 +341,11 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
// initialize chart ?
// initialize chart ?
if
(
SvtModuleOptions
().
IsChart
()
&&
SotExchange
::
IsChart
(
SvGlobalName
(
xObj
->
getClassID
()
)
)
)
if
(
SvtModuleOptions
().
IsChart
()
&&
SotExchange
::
IsChart
(
SvGlobalName
(
xObj
->
getClassID
()
)
)
)
lcl_ChartInit
(
xObj
,
&
pViewSh
->
GetViewData
(),
OUString
(),
false
);
lcl_ChartInit
(
xObj
,
&
rViewSh
.
GetViewData
(),
OUString
(),
false
);
ScViewData
&
rData
=
pViewSh
->
GetViewData
();
ScViewData
&
rData
=
rViewSh
.
GetViewData
();
Point
aPnt
=
pViewSh
->
GetInsertPos
();
Point
aPnt
=
rViewSh
.
GetInsertPos
();
if
(
rData
.
GetDocument
()
->
IsNegativePage
(
rData
.
GetTabNo
()
)
)
if
(
rData
.
GetDocument
()
->
IsNegativePage
(
rData
.
GetTabNo
()
)
)
aPnt
.
AdjustX
(
-
(
aSize
.
Width
())
);
// move position to left edge
aPnt
.
AdjustX
(
-
(
aSize
.
Width
())
);
// move position to left edge
tools
::
Rectangle
aRect
(
aPnt
,
aSize
);
tools
::
Rectangle
aRect
(
aPnt
,
aSize
);
...
@@ -405,9 +405,9 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
...
@@ -405,9 +405,9 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
rReq
.
Ignore
();
rReq
.
Ignore
();
}
}
FuInsertChart
::
FuInsertChart
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuInsertChart
::
FuInsertChart
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
SfxRequest
&
rReq
)
:
FuPoor
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuPoor
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
const
SfxItemSet
*
pReqArgs
=
rReq
.
GetArgs
();
...
@@ -423,21 +423,21 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -423,21 +423,21 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
OUString
aRangeString
;
OUString
aRangeString
;
bool
bRangeIsPivotTable
=
false
;
bool
bRangeIsPivotTable
=
false
;
ScRange
aPositionRange
;
// cell range for chart positioning
ScRange
aPositionRange
;
// cell range for chart positioning
ScMarkData
aMark
=
pViewSh
->
GetViewData
().
GetMarkData
();
ScMarkData
aMark
=
rViewSh
.
GetViewData
().
GetMarkData
();
if
(
pReqArgs
)
if
(
pReqArgs
)
{
{
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
if
(
pReqArgs
->
HasItem
(
FN_PARAM_5
,
&
pItem
)
)
if
(
pReqArgs
->
HasItem
(
FN_PARAM_5
,
&
pItem
)
)
aRangeString
=
static_cast
<
const
SfxStringItem
*>
(
pItem
)
->
GetValue
();
aRangeString
=
static_cast
<
const
SfxStringItem
*>
(
pItem
)
->
GetValue
();
aPositionRange
=
pViewSh
->
GetViewData
().
GetCurPos
();
aPositionRange
=
rViewSh
.
GetViewData
().
GetCurPos
();
}
}
else
else
{
{
ScDocument
*
pDocument
=
pViewSh
->
GetViewData
().
GetDocument
();
ScDocument
*
pDocument
=
rViewSh
.
GetViewData
().
GetDocument
();
ScDPObject
*
pObject
=
pDocument
->
GetDPAtCursor
(
pViewSh
->
GetViewData
().
GetCurX
(),
ScDPObject
*
pObject
=
pDocument
->
GetDPAtCursor
(
rViewSh
.
GetViewData
().
GetCurX
(),
pViewSh
->
GetViewData
().
GetCurY
(),
rViewSh
.
GetViewData
().
GetCurY
(),
pViewSh
->
GetViewData
().
GetTabNo
());
rViewSh
.
GetViewData
().
GetTabNo
());
if
(
pObject
)
if
(
pObject
)
{
{
aRangeString
=
pObject
->
GetName
();
aRangeString
=
pObject
->
GetName
();
...
@@ -448,7 +448,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -448,7 +448,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
bool
bAutomaticMark
=
false
;
bool
bAutomaticMark
=
false
;
if
(
!
aMark
.
IsMarked
()
&&
!
aMark
.
IsMultiMarked
()
)
if
(
!
aMark
.
IsMarked
()
&&
!
aMark
.
IsMultiMarked
()
)
{
{
pViewSh
->
GetViewData
().
GetView
()
->
MarkDataArea
();
rViewSh
.
GetViewData
().
GetView
()
->
MarkDataArea
();
bAutomaticMark
=
true
;
bAutomaticMark
=
true
;
}
}
...
@@ -472,7 +472,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -472,7 +472,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
}
}
if
(
bAutomaticMark
)
if
(
bAutomaticMark
)
pViewSh
->
GetViewData
().
GetView
()
->
Unmark
();
rViewSh
.
GetViewData
().
GetView
()
->
Unmark
();
}
}
}
}
...
@@ -520,7 +520,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -520,7 +520,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
xObj
->
setVisualAreaSize
(
nAspect
,
aSz
);
xObj
->
setVisualAreaSize
(
nAspect
,
aSz
);
}
}
ScViewData
&
rData
=
pViewSh
->
GetViewData
();
ScViewData
&
rData
=
rViewSh
.
GetViewData
();
ScDocShell
*
pScDocSh
=
rData
.
GetDocShell
();
ScDocShell
*
pScDocSh
=
rData
.
GetDocShell
();
ScDocument
&
rScDoc
=
pScDocSh
->
GetDocument
();
ScDocument
&
rScDoc
=
pScDocSh
->
GetDocument
();
bool
bUndo
(
rScDoc
.
IsUndoEnabled
());
bool
bUndo
(
rScDoc
.
IsUndoEnabled
());
...
@@ -569,7 +569,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -569,7 +569,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
}
}
pScDocSh
->
Broadcast
(
ScTablesHint
(
SC_TAB_INSERTED
,
nNewTab
)
);
pScDocSh
->
Broadcast
(
ScTablesHint
(
SC_TAB_INSERTED
,
nNewTab
)
);
pViewSh
->
SetTabNo
(
nNewTab
,
true
);
rViewSh
.
SetTabNo
(
nNewTab
,
true
);
pScDocSh
->
PostPaintExtras
();
//! done afterwards ???
pScDocSh
->
PostPaintExtras
();
//! done afterwards ???
}
}
else
else
...
@@ -579,7 +579,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -579,7 +579,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
}
}
else
if
(
nToTable
!=
rData
.
GetTabNo
()
)
else
if
(
nToTable
!=
rData
.
GetTabNo
()
)
{
{
pViewSh
->
SetTabNo
(
nToTable
,
true
);
rViewSh
.
SetTabNo
(
nToTable
,
true
);
}
}
}
}
...
@@ -588,7 +588,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -588,7 +588,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
// object position
// object position
// get chart position (from window size and data range)
// get chart position (from window size and data range)
Point
aStart
=
pViewSh
->
GetChartInsertPos
(
aSize
,
aPositionRange
);
Point
aStart
=
rViewSh
.
GetChartInsertPos
(
aSize
,
aPositionRange
);
tools
::
Rectangle
aRect
(
aStart
,
aSize
);
tools
::
Rectangle
aRect
(
aStart
,
aSize
);
SdrOle2Obj
*
pObj
=
new
SdrOle2Obj
(
SdrOle2Obj
*
pObj
=
new
SdrOle2Obj
(
...
@@ -709,7 +709,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -709,7 +709,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
// reset marked cell area
// reset marked cell area
pViewSh
->
GetViewData
().
GetViewShell
()
->
SetMarkData
(
aMark
);
rViewSh
.
GetViewData
().
GetViewShell
()
->
SetMarkData
(
aMark
);
}
}
else
else
{
{
...
@@ -734,9 +734,9 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
...
@@ -734,9 +734,9 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
// BM/IHA --
// BM/IHA --
}
}
FuInsertChartFromFile
::
FuInsertChartFromFile
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuInsertChartFromFile
::
FuInsertChartFromFile
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
,
const
OUString
&
rURL
)
:
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
,
const
OUString
&
rURL
)
:
FuPoor
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
FuPoor
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
uno
::
Reference
<
io
::
XInputStream
>
xStorage
=
comphelper
::
OStorageHelper
::
GetInputStreamFromURL
(
uno
::
Reference
<
io
::
XInputStream
>
xStorage
=
comphelper
::
OStorageHelper
::
GetInputStreamFromURL
(
rURL
,
comphelper
::
getProcessComponentContext
());
rURL
,
comphelper
::
getProcessComponentContext
());
...
@@ -751,8 +751,8 @@ FuInsertChartFromFile::FuInsertChartFromFile( ScTabViewShell* pViewSh, vcl::Wind
...
@@ -751,8 +751,8 @@ FuInsertChartFromFile::FuInsertChartFromFile( ScTabViewShell* pViewSh, vcl::Wind
awt
::
Size
aSz
=
xObj
->
getVisualAreaSize
(
nAspect
);
awt
::
Size
aSz
=
xObj
->
getVisualAreaSize
(
nAspect
);
Size
aSize
(
aSz
.
Width
,
aSz
.
Height
);
Size
aSize
(
aSz
.
Width
,
aSz
.
Height
);
ScRange
aPositionRange
=
pViewSh
->
GetViewData
().
GetCurPos
();
ScRange
aPositionRange
=
rViewSh
.
GetViewData
().
GetCurPos
();
Point
aStart
=
pViewSh
->
GetChartInsertPos
(
aSize
,
aPositionRange
);
Point
aStart
=
rViewSh
.
GetChartInsertPos
(
aSize
,
aPositionRange
);
tools
::
Rectangle
aRect
(
aStart
,
aSize
);
tools
::
Rectangle
aRect
(
aStart
,
aSize
);
SdrOle2Obj
*
pObj
=
new
SdrOle2Obj
(
SdrOle2Obj
*
pObj
=
new
SdrOle2Obj
(
*
pDoc
,
// TTTT should be reference
*
pDoc
,
// TTTT should be reference
...
...
sc/source/ui/drawfunc/fupoor.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <svx/sdrhittesthelper.hxx>
#include <svx/sdrhittesthelper.hxx>
FuPoor
::
FuPoor
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuPoor
::
FuPoor
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
pView
(
pViewP
),
pView
(
pViewP
),
pViewShell
(
p
ViewSh
),
pViewShell
(
&
r
ViewSh
),
pWindow
(
pWin
),
pWindow
(
pWin
),
pDrDoc
(
pDoc
),
pDrDoc
(
pDoc
),
aSfxRequest
(
rReq
),
aSfxRequest
(
rReq
),
...
...
sc/source/ui/drawfunc/fusel.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -58,7 +58,7 @@ using namespace com::sun::star;
...
@@ -58,7 +58,7 @@ using namespace com::sun::star;
FuSelection
::
FuSelection
(
ScTabViewShell
&
rViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuSelection
::
FuSelection
(
ScTabViewShell
&
rViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
FuDraw
(
&
rViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuDraw
(
rViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/drawfunc/futext.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -101,9 +101,9 @@ static void lcl_UpdateHyphenator( Outliner& rOutliner, const SdrObject* pObj )
...
@@ -101,9 +101,9 @@ static void lcl_UpdateHyphenator( Outliner& rOutliner, const SdrObject* pObj )
}
}
}
}
FuText
::
FuText
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
FuText
::
FuText
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pViewP
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
:
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
)
FuConstruct
(
p
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
:
FuConstruct
(
r
ViewSh
,
pWin
,
pViewP
,
pDoc
,
rReq
)
{
{
}
}
...
...
sc/source/ui/inc/fuconarc.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
/** Draw rectangle */
/** Draw rectangle */
class
FuConstArc
:
public
FuConstruct
class
FuConstArc
:
public
FuConstruct
{
{
public
:
public
:
FuConstArc
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstArc
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstArc
()
override
;
virtual
~
FuConstArc
()
override
;
// Mouse- & Key-Events
// Mouse- & Key-Events
...
...
sc/source/ui/inc/fuconcustomshape.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -29,7 +29,7 @@ class FuConstCustomShape : public FuConstruct
...
@@ -29,7 +29,7 @@ class FuConstCustomShape : public FuConstruct
void
SetAttributes
(
SdrObject
*
pObj
);
void
SetAttributes
(
SdrObject
*
pObj
);
public
:
public
:
FuConstCustomShape
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstCustomShape
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstCustomShape
()
override
;
virtual
~
FuConstCustomShape
()
override
;
...
...
sc/source/ui/inc/fuconpol.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
/** Base class for all functions */
/** Base class for all functions */
class
FuConstPolygon
:
public
FuConstruct
class
FuConstPolygon
:
public
FuConstruct
{
{
public
:
public
:
FuConstPolygon
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstPolygon
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstPolygon
()
override
;
virtual
~
FuConstPolygon
()
override
;
...
...
sc/source/ui/inc/fuconrec.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
/** Draw rectangle */
/** Draw rectangle */
class
FuConstRectangle
:
public
FuConstruct
class
FuConstRectangle
:
public
FuConstruct
{
{
public
:
public
:
FuConstRectangle
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstRectangle
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstRectangle
()
override
;
virtual
~
FuConstRectangle
()
override
;
// Mouse- & Key-Events
// Mouse- & Key-Events
...
...
sc/source/ui/inc/fuconstr.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
/** Draw rectangle */
/** Draw rectangle */
class
FuConstruct
:
public
FuDraw
class
FuConstruct
:
public
FuDraw
{
{
public
:
public
:
FuConstruct
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstruct
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstruct
()
override
;
virtual
~
FuConstruct
()
override
;
// Mouse- & Key-Events
// Mouse- & Key-Events
...
...
sc/source/ui/inc/fuconuno.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -31,7 +31,7 @@ class FuConstUnoControl final : public FuConstruct
...
@@ -31,7 +31,7 @@ class FuConstUnoControl final : public FuConstruct
sal_uInt16
nIdentifier
;
sal_uInt16
nIdentifier
;
public
:
public
:
FuConstUnoControl
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuConstUnoControl
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuConstUnoControl
()
override
;
virtual
~
FuConstUnoControl
()
override
;
...
...
sc/source/ui/inc/fudraw.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -31,7 +31,7 @@ class FuDraw : public FuPoor
...
@@ -31,7 +31,7 @@ class FuDraw : public FuPoor
Pointer
aOldPointer
;
Pointer
aOldPointer
;
public
:
public
:
FuDraw
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuDraw
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuDraw
()
override
;
virtual
~
FuDraw
()
override
;
...
...
sc/source/ui/inc/fuinsert.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -25,37 +25,37 @@
...
@@ -25,37 +25,37 @@
class
FuInsertGraphic
:
public
FuPoor
class
FuInsertGraphic
:
public
FuPoor
{
{
public
:
public
:
FuInsertGraphic
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuInsertGraphic
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
virtual
~
FuInsertGraphic
()
override
;
virtual
~
FuInsertGraphic
()
override
;
};
};
class
FuInsertOLE
:
public
FuPoor
class
FuInsertOLE
:
public
FuPoor
{
{
public
:
public
:
FuInsertOLE
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuInsertOLE
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
};
};
class
FuInsertChart
:
public
FuPoor
class
FuInsertChart
:
public
FuPoor
{
{
public
:
public
:
FuInsertChart
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuInsertChart
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
SfxRequest
&
rReq
);
};
};
class
FuInsertChartFromFile
:
public
FuPoor
class
FuInsertChartFromFile
:
public
FuPoor
{
{
public
:
public
:
FuInsertChartFromFile
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuInsertChartFromFile
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
,
const
OUString
&
rURL
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
,
const
OUString
&
rURL
);
};
};
class
FuInsertMedia
:
public
FuPoor
class
FuInsertMedia
:
public
FuPoor
{
{
public
:
public
:
FuInsertMedia
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuInsertMedia
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuInsertMedia
()
override
;
virtual
~
FuInsertMedia
()
override
;
};
};
...
...
sc/source/ui/inc/fupoor.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -65,7 +65,7 @@ private:
...
@@ -65,7 +65,7 @@ private:
sal_uInt16
mnCode
;
sal_uInt16
mnCode
;
public
:
public
:
FuPoor
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuPoor
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuPoor
();
virtual
~
FuPoor
();
...
...
sc/source/ui/inc/futext.hxx
Dosyayı görüntüle @
4f75ad50
...
@@ -30,7 +30,7 @@ class SdrOutliner;
...
@@ -30,7 +30,7 @@ class SdrOutliner;
class
FuText
:
public
FuConstruct
class
FuText
:
public
FuConstruct
{
{
public
:
public
:
FuText
(
ScTabViewShell
*
p
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
FuText
(
ScTabViewShell
&
r
ViewSh
,
vcl
::
Window
*
pWin
,
ScDrawView
*
pView
,
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
SdrModel
*
pDoc
,
const
SfxRequest
&
rReq
);
virtual
~
FuText
()
override
;
virtual
~
FuText
()
override
;
...
...
sc/source/ui/view/tabvwsh2.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -90,7 +90,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
...
@@ -90,7 +90,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
if
(
nNewId
==
SID_DRAW_CHART
)
if
(
nNewId
==
SID_DRAW_CHART
)
{
{
// #i71254# directly insert a chart instead of drawing its output rectangle
// #i71254# directly insert a chart instead of drawing its output rectangle
FuInsertChart
(
this
,
pWin
,
pView
,
pDoc
,
rReq
);
FuInsertChart
(
*
this
,
pWin
,
pView
,
pDoc
,
rReq
);
return
;
return
;
}
}
...
@@ -232,12 +232,12 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
...
@@ -232,12 +232,12 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
case
SID_DRAW_RECT
:
case
SID_DRAW_RECT
:
case
SID_DRAW_ELLIPSE
:
case
SID_DRAW_ELLIPSE
:
case
SID_DRAW_MEASURELINE
:
case
SID_DRAW_MEASURELINE
:
pTabView
->
SetDrawFuncPtr
(
new
FuConstRectangle
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstRectangle
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
break
;
break
;
case
SID_DRAW_CAPTION
:
case
SID_DRAW_CAPTION
:
case
SID_DRAW_CAPTION_VERTICAL
:
case
SID_DRAW_CAPTION_VERTICAL
:
pTabView
->
SetDrawFuncPtr
(
new
FuConstRectangle
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstRectangle
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pView
->
SetFrameDragSingles
(
false
);
pView
->
SetFrameDragSingles
(
false
);
rBindings
.
Invalidate
(
SID_BEZIER_EDIT
);
rBindings
.
Invalidate
(
SID_BEZIER_EDIT
);
break
;
break
;
...
@@ -250,25 +250,25 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
...
@@ -250,25 +250,25 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
case
SID_DRAW_BEZIER_FILL
:
case
SID_DRAW_BEZIER_FILL
:
case
SID_DRAW_FREELINE
:
case
SID_DRAW_FREELINE
:
case
SID_DRAW_FREELINE_NOFILL
:
case
SID_DRAW_FREELINE_NOFILL
:
pTabView
->
SetDrawFuncPtr
(
new
FuConstPolygon
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstPolygon
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
break
;
break
;
case
SID_DRAW_ARC
:
case
SID_DRAW_ARC
:
case
SID_DRAW_PIE
:
case
SID_DRAW_PIE
:
case
SID_DRAW_CIRCLECUT
:
case
SID_DRAW_CIRCLECUT
:
pTabView
->
SetDrawFuncPtr
(
new
FuConstArc
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstArc
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
break
;
break
;
case
SID_DRAW_TEXT
:
case
SID_DRAW_TEXT
:
case
SID_DRAW_TEXT_VERTICAL
:
case
SID_DRAW_TEXT_VERTICAL
:
case
SID_DRAW_TEXT_MARQUEE
:
case
SID_DRAW_TEXT_MARQUEE
:
case
SID_DRAW_NOTEEDIT
:
case
SID_DRAW_NOTEEDIT
:
pTabView
->
SetDrawFuncPtr
(
new
FuText
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuText
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
break
;
break
;
case
SID_FM_CREATE_CONTROL
:
case
SID_FM_CREATE_CONTROL
:
SetDrawFormShell
(
true
);
SetDrawFormShell
(
true
);
pTabView
->
SetDrawFuncPtr
(
new
FuConstUnoControl
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstUnoControl
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
nFormSfxId
=
nNewFormId
;
nFormSfxId
=
nNewFormId
;
break
;
break
;
...
@@ -280,7 +280,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
...
@@ -280,7 +280,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
case
SID_DRAWTBX_CS_STAR
:
case
SID_DRAWTBX_CS_STAR
:
case
SID_DRAW_CS_ID
:
case
SID_DRAW_CS_ID
:
{
{
pTabView
->
SetDrawFuncPtr
(
new
FuConstCustomShape
(
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
pTabView
->
SetDrawFuncPtr
(
new
FuConstCustomShape
(
*
this
,
pWin
,
pView
,
pDoc
,
aNewReq
));
if
(
nNewId
!=
SID_DRAW_CS_ID
)
if
(
nNewId
!=
SID_DRAW_CS_ID
)
{
{
const
SfxStringItem
*
pEnumCommand
=
rReq
.
GetArg
<
SfxStringItem
>
(
nNewId
);
const
SfxStringItem
*
pEnumCommand
=
rReq
.
GetArg
<
SfxStringItem
>
(
nNewId
);
...
...
sc/source/ui/view/tabvwshb.cxx
Dosyayı görüntüle @
4f75ad50
...
@@ -325,23 +325,23 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
...
@@ -325,23 +325,23 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
switch
(
nSlot
)
switch
(
nSlot
)
{
{
case
SID_INSERT_GRAPHIC
:
case
SID_INSERT_GRAPHIC
:
FuInsertGraphic
(
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
FuInsertGraphic
(
*
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
// shell is set in MarkListHasChanged
// shell is set in MarkListHasChanged
break
;
break
;
case
SID_INSERT_AVMEDIA
:
case
SID_INSERT_AVMEDIA
:
FuInsertMedia
(
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
FuInsertMedia
(
*
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
// shell is set in MarkListHasChanged
// shell is set in MarkListHasChanged
break
;
break
;
case
SID_INSERT_DIAGRAM
:
case
SID_INSERT_DIAGRAM
:
FuInsertChart
(
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
FuInsertChart
(
*
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
break
;
break
;
case
SID_INSERT_OBJECT
:
case
SID_INSERT_OBJECT
:
case
SID_INSERT_SMATH
:
case
SID_INSERT_SMATH
:
case
SID_INSERT_FLOATINGFRAME
:
case
SID_INSERT_FLOATINGFRAME
:
FuInsertOLE
(
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
FuInsertOLE
(
*
this
,
pWin
,
pView
,
pDrModel
,
rReq
);
break
;
break
;
case
SID_INSERT_DIAGRAM_FROM_FILE
:
case
SID_INSERT_DIAGRAM_FROM_FILE
:
...
@@ -354,7 +354,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
...
@@ -354,7 +354,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
{
{
INetURLObject
aURLObj
(
aDlg
.
GetPath
()
);
INetURLObject
aURLObj
(
aDlg
.
GetPath
()
);
OUString
aURL
=
aURLObj
.
GetURLNoPass
();
OUString
aURL
=
aURLObj
.
GetURLNoPass
();
FuInsertChartFromFile
(
this
,
pWin
,
pView
,
pDrModel
,
rReq
,
aURL
);
FuInsertChartFromFile
(
*
this
,
pWin
,
pView
,
pDrModel
,
rReq
,
aURL
);
}
}
}
}
catch
(
const
uno
::
Exception
&
e
)
catch
(
const
uno
::
Exception
&
e
)
...
...
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