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
2a6bf436
Kaydet (Commit)
2a6bf436
authored
Haz 06, 2015
tarafından
Noel Grandin
Kaydeden (comit)
Noel Grandin
Haz 15, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SW_PASTESDR to scoped enum
Change-Id: I7c33bb425ea1f32cc810205e025290a957ea68aa
üst
5a2e0998
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
17 deletions
+22
-17
fesh.hxx
sw/inc/fesh.hxx
+8
-4
fecopy.cxx
sw/source/core/frmedt/fecopy.cxx
+9
-9
swdtflvr.cxx
sw/source/uibase/dochdl/swdtflvr.cxx
+0
-0
swdtflvr.hxx
sw/source/uibase/inc/swdtflvr.hxx
+5
-4
No files found.
sw/inc/fesh.hxx
Dosyayı görüntüle @
2a6bf436
...
...
@@ -160,9 +160,13 @@ struct SwGetCurColNumPara
SwGetCurColNumPara
()
:
pFrameFormat
(
0
),
pPrtRect
(
0
),
pFrmRect
(
0
)
{}
};
#define SW_PASTESDR_INSERT 1
#define SW_PASTESDR_REPLACE 2
#define SW_PASTESDR_SETATTR 3
enum
class
SwPasteSdr
{
NONE
=
0
,
Insert
=
1
,
Replace
=
2
,
SetAttr
=
3
};
#define SW_ADD_SELECT 1
#define SW_ENTER_GROUP 2
...
...
@@ -547,7 +551,7 @@ public:
Return value indicates if it was converted. */
bool
GetDrawObjGraphic
(
SotClipboardFormatId
nFormat
,
Graphic
&
rGrf
)
const
;
void
Paste
(
SvStream
&
rStm
,
sal_uInt16
nAction
,
const
Point
*
pPt
=
0
);
void
Paste
(
SvStream
&
rStm
,
SwPasteSdr
nAction
,
const
Point
*
pPt
=
0
);
bool
Paste
(
const
Graphic
&
rGrf
,
const
OUString
&
rURL
);
bool
Paste
(
SotDataObject
&
rObj
,
const
Point
&
rPt
);
...
...
sw/source/core/frmedt/fecopy.cxx
Dosyayı görüntüle @
2a6bf436
...
...
@@ -1327,7 +1327,7 @@ static void lcl_ConvertSdrOle2ObjsToSdrGrafObjs( SdrModel* _pModel )
}
}
void
SwFEShell
::
Paste
(
SvStream
&
rStrm
,
sal_uInt16
nAction
,
const
Point
*
pPt
)
void
SwFEShell
::
Paste
(
SvStream
&
rStrm
,
SwPasteSdr
nAction
,
const
Point
*
pPt
)
{
SET_CURR_SHELL
(
this
);
StartAllAction
();
...
...
@@ -1361,12 +1361,12 @@ void SwFEShell::Paste( SvStream& rStrm, sal_uInt16 nAction, const Point* pPt )
SdrObject
*
pClpObj
=
pModel
->
GetPage
(
0
)
->
GetObj
(
0
);
SdrObject
*
pOldObj
=
pView
->
GetMarkedObjectList
().
GetMark
(
0
)
->
GetMarkedSdrObj
();
if
(
S
W_PASTESDR_SETATTR
==
nAction
&&
pOldObj
->
ISA
(
SwVirtFlyDrawObj
)
)
nAction
=
S
W_PASTESDR_REPLACE
;
if
(
S
wPasteSdr
::
SetAttr
==
nAction
&&
pOldObj
->
ISA
(
SwVirtFlyDrawObj
)
)
nAction
=
S
wPasteSdr
::
Replace
;
switch
(
nAction
)
{
case
S
W_PASTESDR_REPLACE
:
case
S
wPasteSdr
:
:
Replace
:
{
const
SwFrameFormat
*
pFormat
(
0
);
const
SwFrm
*
pAnchor
(
0
);
...
...
@@ -1382,7 +1382,7 @@ void SwFEShell::Paste( SvStream& rStrm, sal_uInt16 nAction, const Point* pPt )
{
// if there is a textframe in the header/footer:
// do not replace but insert
nAction
=
S
W_PASTESDR_INSERT
;
nAction
=
S
wPasteSdr
::
Insert
;
break
;
}
}
...
...
@@ -1451,7 +1451,7 @@ void SwFEShell::Paste( SvStream& rStrm, sal_uInt16 nAction, const Point* pPt )
}
break
;
case
S
W_PASTESDR_SETATTR
:
case
S
wPasteSdr
:
:
SetAttr
:
{
SfxItemSet
aSet
(
GetAttrPool
()
);
const
SdrGrafObj
*
pSdrGrafObj
=
dynamic_cast
<
const
SdrGrafObj
*
>
(
pClpObj
);
...
...
@@ -1496,14 +1496,14 @@ void SwFEShell::Paste( SvStream& rStrm, sal_uInt16 nAction, const Point* pPt )
break
;
default
:
nAction
=
S
W_PASTESDR_INSERT
;
nAction
=
S
wPasteSdr
::
Insert
;
break
;
}
}
else
nAction
=
S
W_PASTESDR_INSERT
;
nAction
=
S
wPasteSdr
::
Insert
;
if
(
S
W_PASTESDR_INSERT
==
nAction
)
if
(
S
wPasteSdr
::
Insert
==
nAction
)
{
::
sw
::
DrawUndoGuard
drawUndoGuard
(
GetDoc
()
->
GetIDocumentUndoRedo
());
...
...
sw/source/uibase/dochdl/swdtflvr.cxx
Dosyayı görüntüle @
2a6bf436
This diff is collapsed.
Click to expand it.
sw/source/uibase/inc/swdtflvr.hxx
Dosyayı görüntüle @
2a6bf436
...
...
@@ -37,6 +37,7 @@ class SwWrtShell;
class
SvxClipboardFormatItem
;
class
SwFrameShell
;
class
SwView_Impl
;
enum
class
SwPasteSdr
;
typedef
sal_uInt16
TransferBufferType
;
namespace
nsTransferBufferType
...
...
@@ -93,17 +94,17 @@ class SW_DLLPUBLIC SwTransferable : public TransferableHelper
static
bool
_PasteOLE
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
SotClipboardFormatId
nFormat
,
sal_uInt8
nActionFlags
,
bool
bMsg
);
static
bool
_PasteTargetURL
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
sal_uInt16
nAction
,
const
Point
*
pPt
,
bool
bInsertGRF
);
SwPasteSdr
nAction
,
const
Point
*
pPt
,
bool
bInsertGRF
);
static
bool
_PasteDDE
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rWrtShell
,
bool
bReReadGrf
,
bool
bMsg
);
static
bool
_PasteSdrFormat
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
sal_uInt16
nAction
,
SwWrtShell
&
rSh
,
SwPasteSdr
nAction
,
const
Point
*
pPt
,
sal_uInt8
nActionFlags
,
bool
bNeedToSelectBeforePaste
);
static
bool
_PasteGrf
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
SotClipboardFormatId
nFormat
,
sal_uInt16
nAction
,
const
Point
*
pPt
,
SotClipboardFormatId
nFormat
,
SwPasteSdr
nAction
,
const
Point
*
pPt
,
sal_uInt8
nActionFlags
,
sal_Int8
nDropAction
,
bool
bNeedToSelectBeforePaste
);
static
bool
_PasteImageMap
(
TransferableDataHelper
&
rData
,
...
...
@@ -113,7 +114,7 @@ class SW_DLLPUBLIC SwTransferable : public TransferableHelper
SwWrtShell
&
rSh
,
SotClipboardFormatId
nFormat
);
static
bool
_PasteFileName
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
SotClipboardFormatId
nFormat
,
sal_uInt16
nAction
,
SwWrtShell
&
rSh
,
SotClipboardFormatId
nFormat
,
SwPasteSdr
nAction
,
const
Point
*
pPt
,
sal_uInt8
nActionFlags
,
bool
bMsg
,
bool
*
graphicInserted
);
static
bool
_PasteDBData
(
TransferableDataHelper
&
rData
,
SwWrtShell
&
rSh
,
...
...
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