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
c04cff6e
Kaydet (Commit)
c04cff6e
authored
Ock 15, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make thse constructors non-inline.
Change-Id: Iaf23a9962c9dd748247cb986ffabb1a5ba173c09
üst
e128bf2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
15 deletions
+37
-15
framelink.hxx
include/svx/framelink.hxx
+6
-15
framelink.cxx
svx/source/dialog/framelink.cxx
+31
-0
No files found.
include/svx/framelink.hxx
Dosyayı görüntüle @
c04cff6e
...
@@ -108,25 +108,16 @@ class SVX_DLLPUBLIC Style
...
@@ -108,25 +108,16 @@ class SVX_DLLPUBLIC Style
{
{
public
:
public
:
/** Constructs an invisible frame style. */
/** Constructs an invisible frame style. */
inline
explicit
Style
()
explicit
Style
();
:
meRefMode
(
REFMODE_CENTERED
)
,
mnType
(
::
com
::
sun
::
star
::
table
::
BorderLineStyle
::
SOLID
)
{
Clear
();
}
/** Constructs a frame style with passed line widths. */
/** Constructs a frame style with passed line widths. */
inline
explicit
Style
(
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
)
:
explicit
Style
(
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
);
meRefMode
(
REFMODE_CENTERED
),
mnType
(
nType
)
{
Clear
();
Set
(
nP
,
nD
,
nS
);
}
/** Constructs a frame style with passed color and line widths. */
/** Constructs a frame style with passed color and line widths. */
inline
explicit
Style
(
const
Color
&
rColorPrim
,
const
Color
&
rColorSecn
,
const
Color
&
rColorGap
,
bool
bUseGapColor
,
explicit
Style
(
const
Color
&
rColorPrim
,
const
Color
&
rColorSecn
,
const
Color
&
rColorGap
,
bool
bUseGapColor
,
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
)
:
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
);
meRefMode
(
REFMODE_CENTERED
),
mnType
(
nType
)
{
Set
(
rColorPrim
,
rColorSecn
,
rColorGap
,
bUseGapColor
,
nP
,
nD
,
nS
);
}
/** Constructs a frame style from the passed SvxBorderLine struct. */
/** Constructs a frame style from the passed SvxBorderLine struct. */
inline
explicit
Style
(
const
editeng
::
SvxBorderLine
&
rBorder
,
double
fScale
=
1.0
,
sal_uInt16
nMaxWidth
=
SAL_MAX_UINT16
)
:
explicit
Style
(
const
editeng
::
SvxBorderLine
&
rBorder
,
double
fScale
=
1.0
,
sal_uInt16
nMaxWidth
=
SAL_MAX_UINT16
);
meRefMode
(
REFMODE_CENTERED
)
{
Set
(
rBorder
,
fScale
,
nMaxWidth
);
}
/** Constructs a frame style from the passed SvxBorderLine struct. Clears the style, if pBorder is 0. */
/** Constructs a frame style from the passed SvxBorderLine struct. Clears the style, if pBorder is 0. */
inline
explicit
Style
(
const
editeng
::
SvxBorderLine
*
pBorder
,
double
fScale
=
1.0
,
sal_uInt16
nMaxWidth
=
SAL_MAX_UINT16
)
:
explicit
Style
(
const
editeng
::
SvxBorderLine
*
pBorder
,
double
fScale
=
1.0
,
sal_uInt16
nMaxWidth
=
SAL_MAX_UINT16
);
meRefMode
(
REFMODE_CENTERED
)
{
Set
(
pBorder
,
fScale
,
nMaxWidth
);
}
inline
RefMode
GetRefMode
()
const
{
return
meRefMode
;
}
inline
RefMode
GetRefMode
()
const
{
return
meRefMode
;
}
inline
const
Color
&
GetColorPrim
()
const
{
return
maColorPrim
;
}
inline
const
Color
&
GetColorPrim
()
const
{
return
maColorPrim
;
}
...
...
svx/source/dialog/framelink.cxx
Dosyayı görüntüle @
c04cff6e
...
@@ -1124,6 +1124,37 @@ void lclDrawDiagFrameBorders(
...
@@ -1124,6 +1124,37 @@ void lclDrawDiagFrameBorders(
#define SCALEVALUE( value ) lclScaleValue( value, fScale, nMaxWidth )
#define SCALEVALUE( value ) lclScaleValue( value, fScale, nMaxWidth )
Style
::
Style
()
:
meRefMode
(
REFMODE_CENTERED
)
,
mnType
(
::
com
::
sun
::
star
::
table
::
BorderLineStyle
::
SOLID
)
{
Clear
();
}
Style
::
Style
(
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
)
:
meRefMode
(
REFMODE_CENTERED
),
mnType
(
nType
)
{
Clear
();
Set
(
nP
,
nD
,
nS
);
}
Style
::
Style
(
const
Color
&
rColorPrim
,
const
Color
&
rColorSecn
,
const
Color
&
rColorGap
,
bool
bUseGapColor
,
double
nP
,
double
nD
,
double
nS
,
editeng
::
SvxBorderStyle
nType
)
:
meRefMode
(
REFMODE_CENTERED
),
mnType
(
nType
)
{
Set
(
rColorPrim
,
rColorSecn
,
rColorGap
,
bUseGapColor
,
nP
,
nD
,
nS
);
}
Style
::
Style
(
const
editeng
::
SvxBorderLine
&
rBorder
,
double
fScale
,
sal_uInt16
nMaxWidth
)
:
meRefMode
(
REFMODE_CENTERED
)
{
Set
(
rBorder
,
fScale
,
nMaxWidth
);
}
Style
::
Style
(
const
editeng
::
SvxBorderLine
*
pBorder
,
double
fScale
,
sal_uInt16
nMaxWidth
)
:
meRefMode
(
REFMODE_CENTERED
)
{
Set
(
pBorder
,
fScale
,
nMaxWidth
);
}
void
Style
::
Clear
()
void
Style
::
Clear
()
{
{
Set
(
Color
(),
Color
(),
Color
(),
false
,
0
,
0
,
0
);
Set
(
Color
(),
Color
(),
Color
(),
false
,
0
,
0
,
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