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
7d2cf760
Kaydet (Commit)
7d2cf760
authored
Agu 17, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert XFormTextShadow to scoped enum
Change-Id: I1ff9d2f4aec60f050d9dde8e4c0e991169f585cd
üst
6e81c582
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
18 deletions
+18
-18
xenum.hxx
include/svx/xenum.hxx
+2
-2
xftshit.hxx
include/svx/xftshit.hxx
+1
-1
fontwork.cxx
svx/source/dialog/fontwork.cxx
+5
-5
sdrformtextattribute.cxx
svx/source/sdr/attribute/sdrformtextattribute.cxx
+3
-3
svdibrow.cxx
svx/source/svdraw/svdibrow.cxx
+1
-1
svdotextpathdecomposition.cxx
svx/source/svdraw/svdotextpathdecomposition.cxx
+3
-3
sdpropls.cxx
xmloff/source/draw/sdpropls.cxx
+3
-3
No files found.
include/svx/xenum.hxx
Dosyayı görüntüle @
7d2cf760
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
enum
XFormTextStyle
{
XFT_ROTATE
,
XFT_UPRIGHT
,
XFT_SLANTX
,
XFT_SLANTY
,
enum
XFormTextStyle
{
XFT_ROTATE
,
XFT_UPRIGHT
,
XFT_SLANTX
,
XFT_SLANTY
,
XFT_NONE
};
XFT_NONE
};
enum
XFormTextAdjust
{
XFT_LEFT
,
XFT_RIGHT
,
XFT_AUTOSIZE
,
XFT_CENTER
};
enum
XFormTextAdjust
{
XFT_LEFT
,
XFT_RIGHT
,
XFT_AUTOSIZE
,
XFT_CENTER
};
enum
XFormTextShadow
{
XFTSHADOW_NONE
,
XFTSHADOW_NORMAL
,
XFTSHADOW_SLANT
};
enum
class
XFormTextShadow
{
NONE
,
Normal
,
Slant
};
enum
class
XBitmapType
{
Import
,
N8x8
};
enum
class
XBitmapType
{
Import
,
N8x8
};
#endif // INCLUDED_SVX_XENUM_HXX
#endif // INCLUDED_SVX_XENUM_HXX
...
...
include/svx/xftshit.hxx
Dosyayı görüntüle @
7d2cf760
...
@@ -35,7 +35,7 @@ class SVX_DLLPUBLIC XFormTextShadowItem : public SfxEnumItem
...
@@ -35,7 +35,7 @@ class SVX_DLLPUBLIC XFormTextShadowItem : public SfxEnumItem
public
:
public
:
static
SfxPoolItem
*
CreateDefault
();
static
SfxPoolItem
*
CreateDefault
();
XFormTextShadowItem
(
XFormTextShadow
=
XF
TSHADOW_
NONE
);
XFormTextShadowItem
(
XFormTextShadow
=
XF
ormTextShadow
::
NONE
);
XFormTextShadowItem
(
SvStream
&
rIn
);
XFormTextShadowItem
(
SvStream
&
rIn
);
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
virtual
SfxPoolItem
*
Create
(
SvStream
&
rIn
,
sal_uInt16
nVer
)
const
override
;
virtual
SfxPoolItem
*
Create
(
SvStream
&
rIn
,
sal_uInt16
nVer
)
const
override
;
...
...
svx/source/dialog/fontwork.cxx
Dosyayı görüntüle @
7d2cf760
...
@@ -471,7 +471,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem,
...
@@ -471,7 +471,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem,
m_pTbxShadow
->
Enable
();
m_pTbxShadow
->
Enable
();
if
(
pItem
->
GetValue
()
==
XF
TSHADOW_
NONE
)
if
(
pItem
->
GetValue
()
==
XF
ormTextShadow
::
NONE
)
{
{
nId
=
nShadowOffId
;
nId
=
nShadowOffId
;
m_pFbShadowX
->
Hide
();
m_pFbShadowX
->
Hide
();
...
@@ -488,7 +488,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem,
...
@@ -488,7 +488,7 @@ void SvxFontWorkDialog::SetShadow_Impl(const XFormTextShadowItem* pItem,
m_pMtrFldShadowY
->
Enable
();
m_pMtrFldShadowY
->
Enable
();
m_pShadowColorLB
->
Enable
();
m_pShadowColorLB
->
Enable
();
if
(
pItem
->
GetValue
()
==
XF
TSHADOW_NORMAL
)
if
(
pItem
->
GetValue
()
==
XF
ormTextShadow
::
Normal
)
{
{
nId
=
nShadowNormalId
;
nId
=
nShadowNormalId
;
const
FieldUnit
eDlgUnit
=
rBindings
.
GetDispatcher
()
->
GetModule
()
->
GetFieldUnit
();
const
FieldUnit
eDlgUnit
=
rBindings
.
GetDispatcher
()
->
GetModule
()
->
GetFieldUnit
();
...
@@ -708,7 +708,7 @@ IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectShadowHdl_Impl, ToolBox *, void)
...
@@ -708,7 +708,7 @@ IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectShadowHdl_Impl, ToolBox *, void)
}
}
else
if
(
nId
!=
nLastShadowTbxId
)
else
if
(
nId
!=
nLastShadowTbxId
)
{
{
XFormTextShadow
eShadow
=
XF
TSHADOW_
NONE
;
XFormTextShadow
eShadow
=
XF
ormTextShadow
::
NONE
;
if
(
nLastShadowTbxId
==
nShadowNormalId
)
if
(
nLastShadowTbxId
==
nShadowNormalId
)
{
{
...
@@ -722,8 +722,8 @@ IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectShadowHdl_Impl, ToolBox *, void)
...
@@ -722,8 +722,8 @@ IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectShadowHdl_Impl, ToolBox *, void)
}
}
nLastShadowTbxId
=
nId
;
nLastShadowTbxId
=
nId
;
if
(
nId
==
nShadowNormalId
)
eShadow
=
XF
TSHADOW_NORMAL
;
if
(
nId
==
nShadowNormalId
)
eShadow
=
XF
ormTextShadow
::
Normal
;
else
if
(
nId
==
nShadowSlantId
)
eShadow
=
XF
TSHADOW_SLANT
;
else
if
(
nId
==
nShadowSlantId
)
eShadow
=
XF
ormTextShadow
::
Slant
;
XFormTextShadowItem
aItem
(
eShadow
);
XFormTextShadowItem
aItem
(
eShadow
);
GetBindings
().
GetDispatcher
()
->
ExecuteList
(
SID_FORMTEXT_SHADOW
,
GetBindings
().
GetDispatcher
()
->
ExecuteList
(
SID_FORMTEXT_SHADOW
,
...
...
svx/source/sdr/attribute/sdrformtextattribute.cxx
Dosyayı görüntüle @
7d2cf760
...
@@ -159,7 +159,7 @@ namespace drawinglayer
...
@@ -159,7 +159,7 @@ namespace drawinglayer
Color
maFormTextShdwColor
;
// shadow color
Color
maFormTextShdwColor
;
// shadow color
// outline attributes; used when getFormTextOutline() is true and (for
// outline attributes; used when getFormTextOutline() is true and (for
// shadow) when getFormTextShadow() != XF
TSHADOW_
NONE
// shadow) when getFormTextShadow() != XF
ormTextShadow::
NONE
SdrFormTextOutlineAttribute
maOutline
;
SdrFormTextOutlineAttribute
maOutline
;
SdrFormTextOutlineAttribute
maShadowOutline
;
SdrFormTextOutlineAttribute
maShadowOutline
;
...
@@ -195,7 +195,7 @@ namespace drawinglayer
...
@@ -195,7 +195,7 @@ namespace drawinglayer
aLineAttribute
,
aStrokeAttribute
,
nTransparence
);
aLineAttribute
,
aStrokeAttribute
,
nTransparence
);
}
}
if
(
XF
TSHADOW_
NONE
!=
getFormTextShadow
())
if
(
XF
ormTextShadow
::
NONE
!=
getFormTextShadow
())
{
{
// also need to prepare attributes for shadow outlines
// also need to prepare attributes for shadow outlines
const
LineAttribute
aLineAttribute
(
impGetLineAttribute
(
true
,
rSet
));
const
LineAttribute
aLineAttribute
(
impGetLineAttribute
(
true
,
rSet
));
...
@@ -215,7 +215,7 @@ namespace drawinglayer
...
@@ -215,7 +215,7 @@ namespace drawinglayer
mnFormTextShdwTransp
(
0
),
mnFormTextShdwTransp
(
0
),
meFormTextStyle
(
XFT_NONE
),
meFormTextStyle
(
XFT_NONE
),
meFormTextAdjust
(
XFT_CENTER
),
meFormTextAdjust
(
XFT_CENTER
),
meFormTextShadow
(
XF
TSHADOW_
NONE
),
meFormTextShadow
(
XF
ormTextShadow
::
NONE
),
maFormTextShdwColor
(),
maFormTextShdwColor
(),
maOutline
(),
maOutline
(),
maShadowOutline
(),
maShadowOutline
(),
...
...
svx/source/svdraw/svdibrow.cxx
Dosyayı görüntüle @
7d2cf760
...
@@ -737,7 +737,7 @@ bool IsItemIneffective(sal_uInt16 nWhich, const SfxItemSet* pSet, sal_uInt16& rI
...
@@ -737,7 +737,7 @@ bool IsItemIneffective(sal_uInt16 nWhich, const SfxItemSet* pSet, sal_uInt16& rI
rIndent
=
2
;
rIndent
=
2
;
if
(
ImpGetItem
(
*
pSet
,
XATTR_FORMTXTSHADOW
,
pItem
))
{
if
(
ImpGetItem
(
*
pSet
,
XATTR_FORMTXTSHADOW
,
pItem
))
{
XFormTextShadow
eShadow
=
static_cast
<
const
XFormTextShadowItem
*>
(
pItem
)
->
GetValue
();
XFormTextShadow
eShadow
=
static_cast
<
const
XFormTextShadowItem
*>
(
pItem
)
->
GetValue
();
if
(
eShadow
==
XF
TSHADOW_
NONE
)
return
true
;
if
(
eShadow
==
XF
ormTextShadow
::
NONE
)
return
true
;
}
}
}
}
}
break
;
}
break
;
...
...
svx/source/svdraw/svdotextpathdecomposition.cxx
Dosyayı görüntüle @
7d2cf760
...
@@ -380,17 +380,17 @@ namespace
...
@@ -380,17 +380,17 @@ namespace
}
}
// eventually create shadow primitives from aDecomposition and add to rDecomposition
// eventually create shadow primitives from aDecomposition and add to rDecomposition
const
bool
bShadow
(
XF
TSHADOW_
NONE
!=
maSdrFormTextAttribute
.
getFormTextShadow
());
const
bool
bShadow
(
XF
ormTextShadow
::
NONE
!=
maSdrFormTextAttribute
.
getFormTextShadow
());
if
(
bShadow
)
if
(
bShadow
)
{
{
if
(
XF
TSHADOW_NORMAL
==
maSdrFormTextAttribute
.
getFormTextShadow
())
if
(
XF
ormTextShadow
::
Normal
==
maSdrFormTextAttribute
.
getFormTextShadow
())
{
{
aNewShadowTransform
.
translate
(
aNewShadowTransform
.
translate
(
maSdrFormTextAttribute
.
getFormTextShdwXVal
(),
maSdrFormTextAttribute
.
getFormTextShdwXVal
(),
-
maSdrFormTextAttribute
.
getFormTextShdwYVal
());
-
maSdrFormTextAttribute
.
getFormTextShdwYVal
());
}
}
else
// XF
TSHADOW_SLANT
else
// XF
ormTextShadow::Slant
{
{
double
fScaleValue
(
maSdrFormTextAttribute
.
getFormTextShdwYVal
()
/
100.0
);
double
fScaleValue
(
maSdrFormTextAttribute
.
getFormTextShdwYVal
()
/
100.0
);
double
fShearValue
(
-
maSdrFormTextAttribute
.
getFormTextShdwXVal
()
*
F_PI1800
);
double
fShearValue
(
-
maSdrFormTextAttribute
.
getFormTextShdwXVal
()
*
F_PI1800
);
...
...
xmloff/source/draw/sdpropls.cxx
Dosyayı görüntüle @
7d2cf760
...
@@ -688,9 +688,9 @@ static SvXMLEnumMapEntry const pXML_Fontwork_Adjust_Enum[] =
...
@@ -688,9 +688,9 @@ static SvXMLEnumMapEntry const pXML_Fontwork_Adjust_Enum[] =
static
SvXMLEnumMapEntry
const
pXML_Fontwork_Shadow_Enum
[]
=
static
SvXMLEnumMapEntry
const
pXML_Fontwork_Shadow_Enum
[]
=
{
{
{
XML_NORMAL
,
0
},
//XF
TSHADOW_NORMAL
,
{
XML_NORMAL
,
0
},
//XF
ormTextShadow::Normal
,
{
XML_SLANT
,
1
},
//XF
TSHADOW_SLANT
,
{
XML_SLANT
,
1
},
//XF
ormTextShadow::Slant
,
{
XML_NONE
,
2
},
//XF
TSHADOW_
NONE
{
XML_NONE
,
2
},
//XF
ormTextShadow::
NONE
{
XML_TOKEN_INVALID
,
0
}
{
XML_TOKEN_INVALID
,
0
}
};
};
...
...
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