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
4a4c1bf4
Kaydet (Commit)
4a4c1bf4
authored
Agu 17, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert XFormTextStyle to scoped enum
Change-Id: I88facbbbe262d9e26d2b45703c4f05c71bf51479
üst
a43de3d5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
28 deletions
+27
-28
xenum.hxx
include/svx/xenum.hxx
+1
-2
xtextit0.hxx
include/svx/xtextit0.hxx
+1
-1
fontwork.cxx
svx/source/dialog/fontwork.cxx
+10
-10
sdrformtextattribute.cxx
svx/source/sdr/attribute/sdrformtextattribute.cxx
+1
-1
sdrtextattribute.cxx
svx/source/sdr/attribute/sdrtextattribute.cxx
+1
-1
svdibrow.cxx
svx/source/svdraw/svdibrow.cxx
+1
-1
svdotext.cxx
svx/source/svdraw/svdotext.cxx
+1
-1
svdotextpathdecomposition.cxx
svx/source/svdraw/svdotextpathdecomposition.cxx
+5
-5
sdpropls.cxx
xmloff/source/draw/sdpropls.cxx
+6
-6
No files found.
include/svx/xenum.hxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -21,8 +21,7 @@
#define INCLUDED_SVX_XENUM_HXX
enum
XFormTextStyle
{
XFT_ROTATE
,
XFT_UPRIGHT
,
XFT_SLANTX
,
XFT_SLANTY
,
XFT_NONE
};
enum
class
XFormTextStyle
{
Rotate
,
Upright
,
SlantX
,
SlantY
,
NONE
};
enum
class
XFormTextAdjust
{
Left
,
Right
,
AutoSize
,
Center
};
enum
class
XFormTextShadow
{
NONE
,
Normal
,
Slant
};
enum
class
XBitmapType
{
Import
,
N8x8
};
...
...
include/svx/xtextit0.hxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -34,7 +34,7 @@ class SVX_DLLPUBLIC XFormTextStyleItem : public SfxEnumItem
{
public
:
static
SfxPoolItem
*
CreateDefault
();
XFormTextStyleItem
(
XFormTextStyle
=
XF
T_
NONE
);
XFormTextStyleItem
(
XFormTextStyle
=
XF
ormTextStyle
::
NONE
);
XFormTextStyleItem
(
SvStream
&
rIn
);
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
virtual
SfxPoolItem
*
Create
(
SvStream
&
rIn
,
sal_uInt16
nVer
)
const
override
;
...
...
svx/source/dialog/fontwork.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -346,16 +346,16 @@ void SvxFontWorkDialog::SetStyle_Impl(const XFormTextStyleItem* pItem)
switch
(
pItem
->
GetValue
()
)
{
case
XF
T_ROTATE
:
nId
=
nStyleRotateId
;
break
;
case
XF
T_UPRIGHT
:
nId
=
nStyleUprightId
;
break
;
case
XF
T_SLANT
X
:
nId
=
nStyleSlantXId
;
break
;
case
XF
T_SLANT
Y
:
nId
=
nStyleSlantYId
;
break
;
case
XF
ormTextStyle
:
:
Rotate
:
nId
=
nStyleRotateId
;
break
;
case
XF
ormTextStyle
:
:
Upright
:
nId
=
nStyleUprightId
;
break
;
case
XF
ormTextStyle
:
:
Slant
X
:
nId
=
nStyleSlantXId
;
break
;
case
XF
ormTextStyle
:
:
Slant
Y
:
nId
=
nStyleSlantYId
;
break
;
default
:
;
//prevent warning
}
m_pTbxStyle
->
Enable
();
// Make sure that there is always exactly one checked toolbox item.
if
(
pItem
->
GetValue
()
==
XF
T_
NONE
)
if
(
pItem
->
GetValue
()
==
XF
ormTextStyle
::
NONE
)
{
m_pTbxStyle
->
CheckItem
(
nStyleRotateId
,
false
);
m_pTbxStyle
->
CheckItem
(
nStyleUprightId
,
false
);
...
...
@@ -642,16 +642,16 @@ IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectStyleHdl_Impl, ToolBox *, void)
// enabled that is.)
if
(
nId
==
nStyleOffId
||
nId
!=
nLastStyleTbxId
)
{
XFormTextStyle
eStyle
=
XF
T_
NONE
;
XFormTextStyle
eStyle
=
XF
ormTextStyle
::
NONE
;
if
(
nId
==
nStyleRotateId
)
eStyle
=
XF
T_ROTATE
;
eStyle
=
XF
ormTextStyle
::
Rotate
;
else
if
(
nId
==
nStyleUprightId
)
eStyle
=
XF
T_UPRIGHT
;
eStyle
=
XF
ormTextStyle
::
Upright
;
else
if
(
nId
==
nStyleSlantXId
)
eStyle
=
XF
T_SLANT
X
;
eStyle
=
XF
ormTextStyle
::
Slant
X
;
else
if
(
nId
==
nStyleSlantYId
)
eStyle
=
XF
T_SLANT
Y
;
eStyle
=
XF
ormTextStyle
::
Slant
Y
;
XFormTextStyleItem
aItem
(
eStyle
);
GetBindings
().
GetDispatcher
()
->
ExecuteList
(
SID_FORMTEXT_STYLE
,
...
...
svx/source/sdr/attribute/sdrformtextattribute.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -213,7 +213,7 @@ namespace drawinglayer
mnFormTextShdwXVal
(
0
),
mnFormTextShdwYVal
(
0
),
mnFormTextShdwTransp
(
0
),
meFormTextStyle
(
XF
T_
NONE
),
meFormTextStyle
(
XF
ormTextStyle
::
NONE
),
meFormTextAdjust
(
XFormTextAdjust
::
Center
),
meFormTextShadow
(
XFormTextShadow
::
NONE
),
maFormTextShdwColor
(),
...
...
svx/source/sdr/attribute/sdrtextattribute.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -114,7 +114,7 @@ namespace drawinglayer
{
if
(
pSdrText
)
{
if
(
XF
T_
NONE
!=
eFormTextStyle
)
if
(
XF
ormTextStyle
::
NONE
!=
eFormTextStyle
)
{
// text on path. Create FormText attribute
const
SfxItemSet
&
rSet
=
pSdrText
->
GetItemSet
();
...
...
svx/source/svdraw/svdibrow.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -731,7 +731,7 @@ bool IsItemIneffective(sal_uInt16 nWhich, const SfxItemSet* pSet, sal_uInt16& rI
rIndent
=
1
;
if
(
ImpGetItem
(
*
pSet
,
XATTR_FORMTXTSTYLE
,
pItem
))
{
XFormTextStyle
eStyle
=
static_cast
<
const
XFormTextStyleItem
*>
(
pItem
)
->
GetValue
();
if
(
eStyle
==
XF
T_
NONE
)
return
true
;
if
(
eStyle
==
XF
ormTextStyle
::
NONE
)
return
true
;
}
if
((
nWhich
>=
XATTR_FORMTXTSHDWCOLOR
&&
nWhich
<=
XATTR_FORMTXTSHDWYVAL
)
||
nWhich
>=
XATTR_FORMTXTSHDWTRANSP
)
{
rIndent
=
2
;
...
...
svx/source/svdraw/svdotext.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -1808,7 +1808,7 @@ long SdrTextObj::GetMaxTextFrameWidth() const
bool
SdrTextObj
::
IsFontwork
()
const
{
return
!
bTextFrame
// Default is FALSE
&&
static_cast
<
const
XFormTextStyleItem
&>
(
GetObjectItemSet
().
Get
(
XATTR_FORMTXTSTYLE
)).
GetValue
()
!=
XF
T_
NONE
;
&&
static_cast
<
const
XFormTextStyleItem
&>
(
GetObjectItemSet
().
Get
(
XATTR_FORMTXTSTYLE
)).
GetValue
()
!=
XF
ormTextStyle
::
NONE
;
}
bool
SdrTextObj
::
IsHideContour
()
const
...
...
svx/source/svdraw/svdotextpathdecomposition.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -403,7 +403,7 @@ namespace
switch
(
maSdrFormTextAttribute
.
getFormTextStyle
())
{
case
XF
T_ROTATE
:
case
XF
ormTextStyle
:
:
Rotate
:
{
aEndPos
=
basegfx
::
tools
::
getPositionAbsolute
(
aPolygonCandidate
,
fPolyStart
+
fPortionLength
,
fPolyLength
);
const
basegfx
::
B2DVector
aDirection
(
aEndPos
-
aStartPos
);
...
...
@@ -412,13 +412,13 @@ namespace
break
;
}
case
XF
T_UPRIGHT
:
case
XF
ormTextStyle
:
:
Upright
:
{
aNewTransformB
.
translate
(
aStartPos
.
getX
()
-
(
fPortionLength
/
2.0
),
aStartPos
.
getY
());
break
;
}
case
XF
T_SLANT
X
:
case
XF
ormTextStyle
:
:
Slant
X
:
{
aEndPos
=
basegfx
::
tools
::
getPositionAbsolute
(
aPolygonCandidate
,
fPolyStart
+
fPortionLength
,
fPolyLength
);
const
basegfx
::
B2DVector
aDirection
(
aEndPos
-
aStartPos
);
...
...
@@ -436,7 +436,7 @@ namespace
break
;
}
case
XF
T_SLANT
Y
:
case
XF
ormTextStyle
:
:
Slant
Y
:
{
aEndPos
=
basegfx
::
tools
::
getPositionAbsolute
(
aPolygonCandidate
,
fPolyStart
+
fPortionLength
,
fPolyLength
);
const
basegfx
::
B2DVector
aDirection
(
aEndPos
-
aStartPos
);
...
...
@@ -455,7 +455,7 @@ namespace
break
;
}
default
:
break
;
// XF
T_
NONE
default
:
break
;
// XF
ormTextStyle::
NONE
}
// distance from path?
...
...
xmloff/source/draw/sdpropls.cxx
Dosyayı görüntüle @
4a4c1bf4
...
...
@@ -669,11 +669,11 @@ static SvXMLEnumMapEntry const pXML_Measure_VAlign_Enum[] =
// #FontWork#
static
SvXMLEnumMapEntry
const
pXML_Fontwork_Style_Enum
[]
=
{
{
XML_ROTATE
,
0
},
//XF
T_ROTATE
,
{
XML_UPRIGHT
,
1
},
//XF
T_UPRIGHT
,
{
XML_SLANT_X
,
2
},
//XF
T_SLANT
X,
{
XML_SLANT_Y
,
3
},
//XF
T_SLANT
Y,
{
XML_NONE
,
4
},
//XF
T_
NONE
{
XML_ROTATE
,
0
},
//XF
ormTextStyle::Rotate
,
{
XML_UPRIGHT
,
1
},
//XF
ormTextStyle::Upright
,
{
XML_SLANT_X
,
2
},
//XF
ormTextStyle::Slant
X,
{
XML_SLANT_Y
,
3
},
//XF
ormTextStyle::Slant
Y,
{
XML_NONE
,
4
},
//XF
ormTextStyle::
NONE
{
XML_TOKEN_INVALID
,
0
}
};
...
...
@@ -1453,7 +1453,7 @@ void XMLShapeExportPropertyMapper::ContextFilter(
if
(
pFontWorkStyle
->
maValue
>>=
nStyle
)
{
if
(
/*XF
T_
NONE*/
4
==
nStyle
)
if
(
/*XF
ormTextStyle::
NONE*/
4
==
nStyle
)
{
pFontWorkStyle
->
mnIndex
=
-
1
;
if
(
pFontWorkAdjust
)
...
...
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