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
7ec3861d
Kaydet (Commit)
7ec3861d
authored
Ock 08, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove one variant of HasField() which takes arcane TypeId.
Change-Id: Ic8236b291ed5f318f67378bbc57b7cf027cbb92a
üst
59555e5b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
44 deletions
+20
-44
editobj.hxx
editeng/inc/editeng/editobj.hxx
+3
-2
editobj.cxx
editeng/source/editeng/editobj.cxx
+6
-30
editobj2.hxx
editeng/source/editeng/editobj2.hxx
+1
-2
sdrtextprimitive2d.cxx
svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx
+6
-6
svdotext.cxx
svx/source/svdraw/svdotext.cxx
+4
-4
No files found.
editeng/inc/editeng/editobj.hxx
Dosyayı görüntüle @
7ec3861d
...
...
@@ -28,6 +28,8 @@
#include <editeng/editdata.hxx>
#include "editeng/editengdllapi.h"
#include <com/sun/star/text/textfield/Type.hpp>
#include <vector>
DBG_NAMEEX
(
EE_EditTextObject
)
...
...
@@ -101,8 +103,7 @@ public:
virtual
sal_Bool
IsFieldObject
()
const
;
virtual
const
SvxFieldItem
*
GetField
()
const
;
virtual
sal_Bool
HasField
(
TypeId
aType
=
NULL
)
const
;
virtual
bool
HasField
(
sal_Int32
nType
)
const
=
0
;
virtual
bool
HasField
(
sal_Int32
nType
=
com
::
sun
::
star
::
text
::
textfield
::
Type
::
UNSPECIFIED
)
const
=
0
;
virtual
SfxItemSet
GetParaAttribs
(
size_t
nPara
)
const
;
virtual
void
SetParaAttribs
(
size_t
nPara
,
const
SfxItemSet
&
rAttribs
);
...
...
editeng/source/editeng/editobj.cxx
Dosyayı görüntüle @
7ec3861d
...
...
@@ -44,6 +44,8 @@
#include <unotools/fontcvt.hxx>
#include <tools/tenccvt.hxx>
using
namespace
com
::
sun
::
star
;
DBG_NAME
(
EE_EditTextObject
)
DBG_NAME
(
XEditAttribute
)
...
...
@@ -267,12 +269,6 @@ const SvxFieldItem* EditTextObject::GetField() const
return
0
;
}
sal_Bool
EditTextObject
::
HasField
(
TypeId
/*aType*/
)
const
{
OSL_FAIL
(
"Virtual method direct from EditTextObject!"
);
return
false
;
}
SfxItemSet
EditTextObject
::
GetParaAttribs
(
size_t
/*nPara*/
)
const
{
OSL_FAIL
(
"Virtual method direct from EditTextObject!"
);
...
...
@@ -854,30 +850,6 @@ const SvxFieldItem* BinTextObject::GetField() const
return
0
;
}
sal_Bool
BinTextObject
::
HasField
(
TypeId
aType
)
const
{
size_t
nParagraphs
=
aContents
.
size
();
for
(
size_t
nPara
=
0
;
nPara
<
nParagraphs
;
++
nPara
)
{
const
ContentInfo
&
rC
=
aContents
[
nPara
];
size_t
nAttrs
=
rC
.
aAttribs
.
size
();
for
(
size_t
nAttr
=
0
;
nAttr
<
nAttrs
;
++
nAttr
)
{
const
XEditAttribute
&
rAttr
=
rC
.
aAttribs
[
nAttr
];
if
(
rAttr
.
GetItem
()
->
Which
()
==
EE_FEATURE_FIELD
)
{
if
(
!
aType
)
return
true
;
const
SvxFieldData
*
pFldData
=
static_cast
<
const
SvxFieldItem
*>
(
rAttr
.
GetItem
())
->
GetField
();
if
(
pFldData
&&
pFldData
->
IsA
(
aType
)
)
return
true
;
}
}
}
return
false
;
}
bool
BinTextObject
::
HasField
(
sal_Int32
nType
)
const
{
size_t
nParagraphs
=
aContents
.
size
();
...
...
@@ -891,6 +863,10 @@ bool BinTextObject::HasField( sal_Int32 nType ) const
if
(
rAttr
.
GetItem
()
->
Which
()
!=
EE_FEATURE_FIELD
)
continue
;
if
(
nType
==
text
::
textfield
::
Type
::
UNSPECIFIED
)
// Match any field type.
return
true
;
const
SvxFieldData
*
pFldData
=
static_cast
<
const
SvxFieldItem
*>
(
rAttr
.
GetItem
())
->
GetField
();
if
(
pFldData
&&
pFldData
->
GetClassId
()
==
nType
)
return
true
;
...
...
editeng/source/editeng/editobj2.hxx
Dosyayı görüntüle @
7ec3861d
...
...
@@ -232,8 +232,7 @@ public:
virtual
sal_Bool
IsFieldObject
()
const
;
virtual
const
SvxFieldItem
*
GetField
()
const
;
virtual
sal_Bool
HasField
(
TypeId
Type
=
NULL
)
const
;
virtual
bool
HasField
(
sal_Int32
nType
)
const
;
virtual
bool
HasField
(
sal_Int32
nType
=
com
::
sun
::
star
::
text
::
textfield
::
Type
::
UNSPECIFIED
)
const
;
virtual
SfxItemSet
GetParaAttribs
(
size_t
nPara
)
const
;
virtual
void
SetParaAttribs
(
size_t
nPara
,
const
SfxItemSet
&
rAttribs
);
...
...
svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx
Dosyayı görüntüle @
7ec3861d
...
...
@@ -117,12 +117,12 @@ namespace drawinglayer
{
const
EditTextObject
&
rETO
=
maOutlinerParaObject
.
GetTextObject
();
mbContainsPageField
=
rETO
.
HasField
(
SvxPageField
::
Static
Type
());
mbContainsPageCountField
=
rETO
.
HasField
(
SvxPagesField
::
Static
Type
());
mbContainsOtherFields
=
rETO
.
HasField
(
SvxHeaderField
::
Static
Type
())
||
rETO
.
HasField
(
SvxFooterField
::
Static
Type
())
||
rETO
.
HasField
(
SvxDateTimeField
::
Static
Type
())
||
rETO
.
HasField
(
SvxAuthorField
::
Static
Type
());
mbContainsPageField
=
rETO
.
HasField
(
SvxPageField
::
Static
ClassId
());
mbContainsPageCountField
=
rETO
.
HasField
(
SvxPagesField
::
Static
ClassId
());
mbContainsOtherFields
=
rETO
.
HasField
(
SvxHeaderField
::
Static
ClassId
())
||
rETO
.
HasField
(
SvxFooterField
::
Static
ClassId
())
||
rETO
.
HasField
(
SvxDateTimeField
::
Static
ClassId
())
||
rETO
.
HasField
(
SvxAuthorField
::
Static
ClassId
());
}
bool
SdrTextPrimitive2D
::
operator
==
(
const
BasePrimitive2D
&
rPrimitive
)
const
...
...
svx/source/svdraw/svdotext.cxx
Dosyayı görüntüle @
7ec3861d
...
...
@@ -1167,16 +1167,16 @@ void SdrTextObj::ImpCheckMasterCachable()
if
(
!
bNotVisibleAsMaster
&&
pOutlinerParaObject
&&
pOutlinerParaObject
->
IsEditDoc
()
)
{
const
EditTextObject
&
rText
=
pOutlinerParaObject
->
GetTextObject
();
bNotMasterCachable
=
rText
.
HasField
(
SvxPageField
::
Static
Type
());
bNotMasterCachable
=
rText
.
HasField
(
SvxPageField
::
Static
ClassId
());
if
(
!
bNotMasterCachable
)
{
bNotMasterCachable
=
rText
.
HasField
(
SvxHeaderField
::
Static
Type
());
bNotMasterCachable
=
rText
.
HasField
(
SvxHeaderField
::
Static
ClassId
());
if
(
!
bNotMasterCachable
)
{
bNotMasterCachable
=
rText
.
HasField
(
SvxFooterField
::
Static
Type
());
bNotMasterCachable
=
rText
.
HasField
(
SvxFooterField
::
Static
ClassId
());
if
(
!
bNotMasterCachable
)
{
bNotMasterCachable
=
rText
.
HasField
(
SvxDateTimeField
::
Static
Type
());
bNotMasterCachable
=
rText
.
HasField
(
SvxDateTimeField
::
Static
ClassId
());
}
}
}
...
...
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