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
99e95346
Kaydet (Commit)
99e95346
authored
Eyl 19, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert CopyOrNewType to scoped enum
Change-Id: I4bc01dfbf3305e7eaa0887444e894d14e9e4d092
üst
9049c94b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
ndhints.hxx
sw/inc/ndhints.hxx
+2
-5
ndtxt.cxx
sw/source/core/txtnode/ndtxt.cxx
+1
-1
thints.cxx
sw/source/core/txtnode/thints.cxx
+4
-4
No files found.
sw/inc/ndhints.hxx
Dosyayı görüntüle @
99e95346
...
...
@@ -33,10 +33,7 @@ class SfxPoolItem;
class
SfxItemSet
;
class
SwDoc
;
typedef
enum
{
COPY
=
int
(
true
),
NEW
=
int
(
false
),
}
CopyOrNew_t
;
enum
class
CopyOrNewType
{
Copy
,
New
};
/// if COPY then pTextNode must be given!
SwTextAttr
*
MakeTextAttr
(
...
...
@@ -44,7 +41,7 @@ SwTextAttr * MakeTextAttr(
SfxPoolItem
&
rNew
,
sal_Int32
const
nStt
,
sal_Int32
const
nEnd
,
CopyOrNew
_t
const
bIsCopy
=
NEW
,
CopyOrNew
Type
const
bIsCopy
=
CopyOrNewType
::
New
,
SwTextNode
*
const
pTextNode
=
nullptr
);
SwTextAttr
*
MakeTextAttr
(
...
...
sw/source/core/txtnode/ndtxt.cxx
Dosyayı görüntüle @
99e95346
...
...
@@ -1839,7 +1839,7 @@ void SwTextNode::CopyText( SwTextNode *const pDest,
{
// copy the hint here, but insert it later
pNewHt
=
MakeTextAttr
(
*
GetDoc
(),
pHt
->
GetAttr
(),
nAttrStt
,
nAttrEnd
,
C
OPY
,
pDest
);
nAttrStt
,
nAttrEnd
,
C
opyOrNewType
::
Copy
,
pDest
);
lcl_CopyHint
(
nWhich
,
pHt
,
pNewHt
,
nullptr
,
pDest
);
aArr
.
push_back
(
pNewHt
);
...
...
sw/source/core/txtnode/thints.cxx
Dosyayı görüntüle @
99e95346
...
...
@@ -985,7 +985,7 @@ SwTextAttr* MakeTextAttr(
SfxPoolItem
&
rAttr
,
sal_Int32
const
nStt
,
sal_Int32
const
nEnd
,
CopyOrNew
_t
const
bIsCopy
,
CopyOrNew
Type
const
bIsCopy
,
SwTextNode
*
const
pTextNode
)
{
if
(
isCHRATR
(
rAttr
.
Which
())
)
...
...
@@ -1042,7 +1042,7 @@ SwTextAttr* MakeTextAttr(
case
RES_TXTATR_ANNOTATION
:
{
pNew
=
new
SwTextAnnotationField
(
static_cast
<
SwFormatField
&>
(
rNew
),
nStt
,
rDoc
.
IsClipBoard
()
);
if
(
bIsCopy
==
C
OPY
)
if
(
bIsCopy
==
C
opyOrNewType
::
Copy
)
{
// On copy of the annotation field do not keep the annotated text range by removing
// the relation to its annotation mark (relation established via annotation field's name).
...
...
@@ -1090,7 +1090,7 @@ SwTextAttr* MakeTextAttr(
case
RES_TXTATR_META
:
case
RES_TXTATR_METAFIELD
:
pNew
=
SwTextMeta
::
CreateTextMeta
(
rDoc
.
GetMetaFieldManager
(),
pTextNode
,
static_cast
<
SwFormatMeta
&>
(
rNew
),
nStt
,
nEnd
,
bIsCopy
==
C
OPY
);
static_cast
<
SwFormatMeta
&>
(
rNew
),
nStt
,
nEnd
,
bIsCopy
==
C
opyOrNewType
::
Copy
);
break
;
default
:
assert
(
RES_TXTATR_AUTOFMT
==
rNew
.
Which
());
...
...
@@ -1223,7 +1223,7 @@ SwTextAttr* SwTextNode::InsertItem(
rAttr
,
nStart
,
nEnd
,
(
nMode
&
SetAttrMode
::
IS_COPY
)
?
C
OPY
:
NEW
,
(
nMode
&
SetAttrMode
::
IS_COPY
)
?
C
opyOrNewType
::
Copy
:
CopyOrNewType
::
New
,
this
);
if
(
pNew
)
...
...
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