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
110d0915
Kaydet (Commit)
110d0915
authored
Eki 09, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use typedef rather than raw nested std::vector everywhere...
Change-Id: Id4b58d13b229776f2ef1f270e937547ece9e1248
üst
d7dd3063
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
97 additions
and
94 deletions
+97
-94
Tickmarks.cxx
chart2/source/view/axes/Tickmarks.cxx
+8
-8
Tickmarks.hxx
chart2/source/view/axes/Tickmarks.hxx
+10
-7
Tickmarks_Dates.cxx
chart2/source/view/axes/Tickmarks_Dates.cxx
+5
-5
Tickmarks_Dates.hxx
chart2/source/view/axes/Tickmarks_Dates.hxx
+3
-3
Tickmarks_Equidistant.cxx
chart2/source/view/axes/Tickmarks_Equidistant.cxx
+4
-4
Tickmarks_Equidistant.hxx
chart2/source/view/axes/Tickmarks_Equidistant.hxx
+4
-4
VAxisBase.cxx
chart2/source/view/axes/VAxisBase.cxx
+5
-5
VAxisBase.hxx
chart2/source/view/axes/VAxisBase.hxx
+2
-2
VCartesianAxis.cxx
chart2/source/view/axes/VCartesianAxis.cxx
+24
-24
VCartesianAxis.hxx
chart2/source/view/axes/VCartesianAxis.hxx
+4
-4
VCartesianGrid.cxx
chart2/source/view/axes/VCartesianGrid.cxx
+7
-7
VPolarGrid.cxx
chart2/source/view/axes/VPolarGrid.cxx
+15
-15
VPolarGrid.hxx
chart2/source/view/axes/VPolarGrid.hxx
+5
-5
VPolarRadiusAxis.cxx
chart2/source/view/axes/VPolarRadiusAxis.cxx
+1
-1
No files found.
chart2/source/view/axes/Tickmarks.cxx
Dosyayı görüntüle @
110d0915
...
@@ -58,7 +58,7 @@ sal_Int32 TickInfo::getScreenDistanceBetweenTicks( const TickInfo& rOherTickInfo
...
@@ -58,7 +58,7 @@ sal_Int32 TickInfo::getScreenDistanceBetweenTicks( const TickInfo& rOherTickInfo
return
nRet
;
return
nRet
;
}
}
PureTickIter
::
PureTickIter
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
)
PureTickIter
::
PureTickIter
(
TickInfoArrayType
&
rTickInfoVector
)
:
m_rTickVector
(
rTickInfoVector
)
:
m_rTickVector
(
rTickInfoVector
)
,
m_aTickIter
(
m_rTickVector
.
begin
())
,
m_aTickIter
(
m_rTickVector
.
begin
())
{
{
...
@@ -116,7 +116,7 @@ bool TickFactory::isDateAxis() const
...
@@ -116,7 +116,7 @@ bool TickFactory::isDateAxis() const
return
m_rScale
.
AxisType
==
chart2
::
AxisType
::
DATE
;
return
m_rScale
.
AxisType
==
chart2
::
AxisType
::
DATE
;
}
}
void
TickFactory
::
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
TickFactory
::
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
if
(
isDateAxis
()
)
if
(
isDateAxis
()
)
DateTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicks
(
rAllTickInfos
);
DateTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicks
(
rAllTickInfos
);
...
@@ -124,7 +124,7 @@ void TickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo > >& rAllT
...
@@ -124,7 +124,7 @@ void TickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo > >& rAllT
EquidistantTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicks
(
rAllTickInfos
);
EquidistantTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicks
(
rAllTickInfos
);
}
}
void
TickFactory
::
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
TickFactory
::
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
if
(
isDateAxis
()
)
if
(
isDateAxis
()
)
DateTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicksShifted
(
rAllTickInfos
);
DateTickFactory
(
m_rScale
,
m_rIncrement
).
getAllTicksShifted
(
rAllTickInfos
);
...
@@ -288,15 +288,15 @@ void TickFactory2D::createPointSequenceForAxisMainLine( drawing::PointSequenceSe
...
@@ -288,15 +288,15 @@ void TickFactory2D::createPointSequenceForAxisMainLine( drawing::PointSequenceSe
rPoints
[
0
][
1
].
Y
=
static_cast
<
sal_Int32
>
(
m_aAxisEndScreenPosition2D
.
getY
());
rPoints
[
0
][
1
].
Y
=
static_cast
<
sal_Int32
>
(
m_aAxisEndScreenPosition2D
.
getY
());
}
}
void
TickFactory2D
::
updateScreenValues
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
TickFactory2D
::
updateScreenValues
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
//get the transformed screen values for all tickmarks in rAllTickInfos
//get the transformed screen values for all tickmarks in rAllTickInfos
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>::
iterator
aDepthIter
=
rAllTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
rAllTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>::
const_iterator
aDepthEnd
=
rAllTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
rAllTickInfos
.
end
();
for
(
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
)
for
(
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
)
{
{
::
std
::
vector
<
TickInfo
>::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
...
...
chart2/source/view/axes/Tickmarks.hxx
Dosyayı görüntüle @
110d0915
...
@@ -53,6 +53,9 @@ private:
...
@@ -53,6 +53,9 @@ private:
TickInfo
();
TickInfo
();
};
};
typedef
std
::
vector
<
TickInfo
>
TickInfoArrayType
;
typedef
std
::
vector
<
TickInfoArrayType
>
TickInfoArraysType
;
class
TickIter
class
TickIter
{
{
public
:
public
:
...
@@ -64,14 +67,14 @@ public:
...
@@ -64,14 +67,14 @@ public:
class
PureTickIter
:
public
TickIter
class
PureTickIter
:
public
TickIter
{
{
public
:
public
:
PureTickIter
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
);
PureTickIter
(
TickInfoArrayType
&
rTickInfoVector
);
virtual
~
PureTickIter
();
virtual
~
PureTickIter
();
virtual
TickInfo
*
firstInfo
()
SAL_OVERRIDE
;
virtual
TickInfo
*
firstInfo
()
SAL_OVERRIDE
;
virtual
TickInfo
*
nextInfo
()
SAL_OVERRIDE
;
virtual
TickInfo
*
nextInfo
()
SAL_OVERRIDE
;
private
:
private
:
::
std
::
vector
<
TickInfo
>
&
m_rTickVector
;
TickInfoArrayType
&
m_rTickVector
;
::
std
::
vector
<
TickInfo
>
::
iterator
m_aTickIter
;
TickInfoArrayType
::
iterator
m_aTickIter
;
};
};
class
TickFactory
class
TickFactory
...
@@ -82,9 +85,9 @@ public:
...
@@ -82,9 +85,9 @@ public:
,
const
ExplicitIncrementData
&
rIncrement
);
,
const
ExplicitIncrementData
&
rIncrement
);
virtual
~
TickFactory
();
virtual
~
TickFactory
();
void
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
virtual
void
updateScreenValues
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
/*rAllTickInfos*/
)
const
{}
virtual
void
updateScreenValues
(
TickInfoArraysType
&
/*rAllTickInfos*/
)
const
{}
private
:
//methods
private
:
//methods
bool
isDateAxis
()
const
;
bool
isDateAxis
()
const
;
...
@@ -122,7 +125,7 @@ public:
...
@@ -122,7 +125,7 @@ public:
,
bool
bIncludeFarAwayDistanceIfSo
=
false
,
bool
bIncludeFarAwayDistanceIfSo
=
false
,
bool
bIncludeSpaceBetweenTickAndText
=
true
)
const
;
,
bool
bIncludeSpaceBetweenTickAndText
=
true
)
const
;
virtual
void
updateScreenValues
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
SAL_OVERRIDE
;
virtual
void
updateScreenValues
(
TickInfoArraysType
&
rAllTickInfos
)
const
SAL_OVERRIDE
;
bool
isHorizontalAxis
()
const
;
bool
isHorizontalAxis
()
const
;
bool
isVerticalAxis
()
const
;
bool
isVerticalAxis
()
const
;
...
...
chart2/source/view/axes/Tickmarks_Dates.cxx
Dosyayı görüntüle @
110d0915
...
@@ -59,11 +59,11 @@ DateTickFactory::~DateTickFactory()
...
@@ -59,11 +59,11 @@ DateTickFactory::~DateTickFactory()
{
{
}
}
void
DateTickFactory
::
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
bool
bShifted
)
const
void
DateTickFactory
::
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
,
bool
bShifted
)
const
{
{
rAllTickInfos
.
resize
(
2
);
rAllTickInfos
.
resize
(
2
);
::
std
::
vector
<
TickInfo
>
&
rMajorTicks
=
rAllTickInfos
[
0
];
TickInfoArrayType
&
rMajorTicks
=
rAllTickInfos
[
0
];
::
std
::
vector
<
TickInfo
>
&
rMinorTicks
=
rAllTickInfos
[
1
];
TickInfoArrayType
&
rMinorTicks
=
rAllTickInfos
[
1
];
rMajorTicks
.
clear
();
rMajorTicks
.
clear
();
rMinorTicks
.
clear
();
rMinorTicks
.
clear
();
...
@@ -143,12 +143,12 @@ void DateTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo > >& r
...
@@ -143,12 +143,12 @@ void DateTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo > >& r
}
}
}
}
void
DateTickFactory
::
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
DateTickFactory
::
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
getAllTicks
(
rAllTickInfos
,
false
);
getAllTicks
(
rAllTickInfos
,
false
);
}
}
void
DateTickFactory
::
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
DateTickFactory
::
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
getAllTicks
(
rAllTickInfos
,
true
);
getAllTicks
(
rAllTickInfos
,
true
);
}
}
...
...
chart2/source/view/axes/Tickmarks_Dates.hxx
Dosyayı görüntüle @
110d0915
...
@@ -32,11 +32,11 @@ public:
...
@@ -32,11 +32,11 @@ public:
,
const
ExplicitIncrementData
&
rIncrement
);
,
const
ExplicitIncrementData
&
rIncrement
);
~
DateTickFactory
();
~
DateTickFactory
();
void
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
private
:
//methods
private
:
//methods
void
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
bool
bShifted
)
const
;
void
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
,
bool
bShifted
)
const
;
private
:
//member
private
:
//member
ExplicitScaleData
m_aScale
;
ExplicitScaleData
m_aScale
;
...
...
chart2/source/view/axes/Tickmarks_Equidistant.cxx
Dosyayı görüntüle @
110d0915
...
@@ -310,7 +310,7 @@ bool EquidistantTickFactory::isVisible( double fScaledValue ) const
...
@@ -310,7 +310,7 @@ bool EquidistantTickFactory::isVisible( double fScaledValue ) const
return
true
;
return
true
;
}
}
void
EquidistantTickFactory
::
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
EquidistantTickFactory
::
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>
aAllTicks
;
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>
aAllTicks
;
...
@@ -395,7 +395,7 @@ void EquidistantTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo
...
@@ -395,7 +395,7 @@ void EquidistantTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo
{
{
sal_Int32
nCount
=
aAllTicks
[
nDepth
].
getLength
();
sal_Int32
nCount
=
aAllTicks
[
nDepth
].
getLength
();
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
=
rAllTickInfos
[
nDepth
];
TickInfoArrayType
&
rTickInfoVector
=
rAllTickInfos
[
nDepth
];
rTickInfoVector
.
clear
();
rTickInfoVector
.
clear
();
rTickInfoVector
.
reserve
(
nCount
);
rTickInfoVector
.
reserve
(
nCount
);
for
(
sal_Int32
nN
=
0
;
nN
<
nCount
;
nN
++
)
for
(
sal_Int32
nN
=
0
;
nN
<
nCount
;
nN
++
)
...
@@ -407,7 +407,7 @@ void EquidistantTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo
...
@@ -407,7 +407,7 @@ void EquidistantTickFactory::getAllTicks( ::std::vector< ::std::vector< TickInfo
}
}
}
}
void
EquidistantTickFactory
::
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
EquidistantTickFactory
::
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
ExplicitIncrementData
aShiftedIncrement
(
m_rIncrement
);
ExplicitIncrementData
aShiftedIncrement
(
m_rIncrement
);
aShiftedIncrement
.
BaseValue
=
m_rIncrement
.
BaseValue
-
m_rIncrement
.
Distance
/
2.0
;
aShiftedIncrement
.
BaseValue
=
m_rIncrement
.
BaseValue
-
m_rIncrement
.
Distance
/
2.0
;
...
@@ -428,7 +428,7 @@ EquidistantTickIter::EquidistantTickIter( const uno::Sequence< uno::Sequence< do
...
@@ -428,7 +428,7 @@ EquidistantTickIter::EquidistantTickIter( const uno::Sequence< uno::Sequence< do
initIter
(
nMinDepth
,
nMaxDepth
);
initIter
(
nMinDepth
,
nMaxDepth
);
}
}
EquidistantTickIter
::
EquidistantTickIter
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rTicks
EquidistantTickIter
::
EquidistantTickIter
(
TickInfoArraysType
&
rTicks
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitIncrementData
&
rIncrement
,
sal_Int32
nMinDepth
,
sal_Int32
nMaxDepth
)
,
sal_Int32
nMinDepth
,
sal_Int32
nMaxDepth
)
:
m_pSimpleTicks
(
NULL
)
:
m_pSimpleTicks
(
NULL
)
...
...
chart2/source/view/axes/Tickmarks_Equidistant.hxx
Dosyayı görüntüle @
110d0915
...
@@ -31,7 +31,7 @@ public:
...
@@ -31,7 +31,7 @@ public:
::
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
>&
rTicks
::
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
>&
rTicks
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitIncrementData
&
rIncrement
,
sal_Int32
nMinDepth
=
0
,
sal_Int32
nMaxDepth
=-
1
);
,
sal_Int32
nMinDepth
=
0
,
sal_Int32
nMaxDepth
=-
1
);
EquidistantTickIter
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rTickInfos
EquidistantTickIter
(
TickInfoArraysType
&
rTickInfos
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitIncrementData
&
rIncrement
,
sal_Int32
nMinDepth
=
0
,
sal_Int32
nMaxDepth
=-
1
);
,
sal_Int32
nMinDepth
=
0
,
sal_Int32
nMaxDepth
=-
1
);
virtual
~
EquidistantTickIter
();
virtual
~
EquidistantTickIter
();
...
@@ -79,7 +79,7 @@ private: //methods
...
@@ -79,7 +79,7 @@ private: //methods
private
:
//member
private
:
//member
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
>*
m_pSimpleTicks
;
::
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
>*
m_pSimpleTicks
;
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
*
m_pInfoTicks
;
TickInfoArraysType
*
m_pInfoTicks
;
const
ExplicitIncrementData
&
m_rIncrement
;
const
ExplicitIncrementData
&
m_rIncrement
;
sal_Int32
m_nMaxDepth
;
sal_Int32
m_nMaxDepth
;
sal_Int32
m_nTickCount
;
sal_Int32
m_nTickCount
;
...
@@ -100,8 +100,8 @@ public:
...
@@ -100,8 +100,8 @@ public:
,
const
ExplicitIncrementData
&
rIncrement
);
,
const
ExplicitIncrementData
&
rIncrement
);
~
EquidistantTickFactory
();
~
EquidistantTickFactory
();
void
getAllTicks
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicks
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTicksShifted
(
TickInfoArraysType
&
rAllTickInfos
)
const
;
static
double
getMinimumAtIncrement
(
double
fMin
,
const
ExplicitIncrementData
&
rIncrement
);
static
double
getMinimumAtIncrement
(
double
fMin
,
const
ExplicitIncrementData
&
rIncrement
);
static
double
getMaximumAtIncrement
(
double
fMax
,
const
ExplicitIncrementData
&
rIncrement
);
static
double
getMaximumAtIncrement
(
double
fMax
,
const
ExplicitIncrementData
&
rIncrement
);
...
...
chart2/source/view/axes/VAxisBase.cxx
Dosyayı görüntüle @
110d0915
...
@@ -151,7 +151,7 @@ void VAxisBase::setExplicitScaleAndIncrement(
...
@@ -151,7 +151,7 @@ void VAxisBase::setExplicitScaleAndIncrement(
m_aIncrement
=
rIncrement
;
m_aIncrement
=
rIncrement
;
}
}
void
VAxisBase
::
createAllTickInfos
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
void
VAxisBase
::
createAllTickInfos
(
TickInfoArraysType
&
rAllTickInfos
)
{
{
boost
::
scoped_ptr
<
TickFactory
>
apTickFactory
(
this
->
createTickFactory
()
);
boost
::
scoped_ptr
<
TickFactory
>
apTickFactory
(
this
->
createTickFactory
()
);
if
(
m_aScale
.
ShiftedCategoryPosition
)
if
(
m_aScale
.
ShiftedCategoryPosition
)
...
@@ -208,12 +208,12 @@ void VAxisBase::removeTextShapesFromTicks()
...
@@ -208,12 +208,12 @@ void VAxisBase::removeTextShapesFromTicks()
{
{
if
(
m_xTextTarget
.
is
()
)
if
(
m_xTextTarget
.
is
()
)
{
{
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
m_aAllTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
m_aAllTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
m_aAllTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
m_aAllTickInfos
.
end
();
for
(
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
)
for
(
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
)
{
{
::
std
::
vector
<
TickInfo
>::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
...
...
chart2/source/view/axes/VAxisBase.hxx
Dosyayı görüntüle @
110d0915
...
@@ -60,7 +60,7 @@ public:
...
@@ -60,7 +60,7 @@ public:
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
sal_Int32
estimateMaximumAutoMainIncrementCount
();
virtual
sal_Int32
estimateMaximumAutoMainIncrementCount
();
virtual
void
createAllTickInfos
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
);
virtual
void
createAllTickInfos
(
TickInfoArraysType
&
rAllTickInfos
);
void
setExrtaLinePositionAtOtherAxis
(
double
fCrossingAt
);
void
setExrtaLinePositionAtOtherAxis
(
double
fCrossingAt
);
...
@@ -96,7 +96,7 @@ protected: //member
...
@@ -96,7 +96,7 @@ protected: //member
* It may have more than 2 TickInfo vectors for complex category axis
* It may have more than 2 TickInfo vectors for complex category axis
* which has multi-level axis labels.
* which has multi-level axis labels.
*/
*/
std
::
vector
<
std
::
vector
<
TickInfo
>
>
m_aAllTickInfos
;
TickInfoArraysType
m_aAllTickInfos
;
bool
m_bReCreateAllTickInfos
;
bool
m_bReCreateAllTickInfos
;
bool
m_bRecordMaximumTextSize
;
bool
m_bRecordMaximumTextSize
;
...
...
chart2/source/view/axes/VCartesianAxis.cxx
Dosyayı görüntüle @
110d0915
...
@@ -202,7 +202,7 @@ class LabelIterator : public TickIter
...
@@ -202,7 +202,7 @@ class LabelIterator : public TickIter
//we iterate through all labels
//we iterate through all labels
public
:
public
:
LabelIterator
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
LabelIterator
(
TickInfoArrayType
&
rTickInfoVector
,
const
AxisLabelStaggering
eAxisLabelStaggering
,
const
AxisLabelStaggering
eAxisLabelStaggering
,
bool
bInnerLine
);
,
bool
bInnerLine
);
...
@@ -215,7 +215,7 @@ private: //member
...
@@ -215,7 +215,7 @@ private: //member
bool
m_bInnerLine
;
bool
m_bInnerLine
;
};
};
LabelIterator
::
LabelIterator
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
LabelIterator
::
LabelIterator
(
TickInfoArrayType
&
rTickInfoVector
,
const
AxisLabelStaggering
eAxisLabelStaggering
,
const
AxisLabelStaggering
eAxisLabelStaggering
,
bool
bInnerLine
)
,
bool
bInnerLine
)
:
m_aPureTickIter
(
rTickInfoVector
)
:
m_aPureTickIter
(
rTickInfoVector
)
...
@@ -375,7 +375,7 @@ bool lcl_hasWordBreak( const Reference< drawing::XShape >& rxShape )
...
@@ -375,7 +375,7 @@ bool lcl_hasWordBreak( const Reference< drawing::XShape >& rxShape )
class
MaxLabelTickIter
:
public
TickIter
class
MaxLabelTickIter
:
public
TickIter
{
{
public
:
public
:
MaxLabelTickIter
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
MaxLabelTickIter
(
TickInfoArrayType
&
rTickInfoVector
,
sal_Int32
nLongestLabelIndex
);
,
sal_Int32
nLongestLabelIndex
);
virtual
~
MaxLabelTickIter
();
virtual
~
MaxLabelTickIter
();
...
@@ -383,12 +383,12 @@ public:
...
@@ -383,12 +383,12 @@ public:
virtual
TickInfo
*
nextInfo
()
SAL_OVERRIDE
;
virtual
TickInfo
*
nextInfo
()
SAL_OVERRIDE
;
private
:
private
:
::
std
::
vector
<
TickInfo
>
&
m_rTickInfoVector
;
TickInfoArrayType
&
m_rTickInfoVector
;
::
std
::
vector
<
sal_Int32
>
m_aValidIndices
;
::
std
::
vector
<
sal_Int32
>
m_aValidIndices
;
sal_Int32
m_nCurrentIndex
;
sal_Int32
m_nCurrentIndex
;
};
};
MaxLabelTickIter
::
MaxLabelTickIter
(
::
std
::
vector
<
TickInfo
>
&
rTickInfoVector
MaxLabelTickIter
::
MaxLabelTickIter
(
TickInfoArrayType
&
rTickInfoVector
,
sal_Int32
nLongestLabelIndex
)
,
sal_Int32
nLongestLabelIndex
)
:
m_rTickInfoVector
(
rTickInfoVector
)
:
m_rTickInfoVector
(
rTickInfoVector
)
,
m_nCurrentIndex
(
0
)
,
m_nCurrentIndex
(
0
)
...
@@ -466,7 +466,7 @@ bool VCartesianAxis::isAutoStaggeringOfLabelsAllowed( const AxisLabelProperties&
...
@@ -466,7 +466,7 @@ bool VCartesianAxis::isAutoStaggeringOfLabelsAllowed( const AxisLabelProperties&
return
false
;
return
false
;
}
}
void
VCartesianAxis
::
createAllTickInfosFromComplexCategories
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
bool
bShiftedPosition
)
void
VCartesianAxis
::
createAllTickInfosFromComplexCategories
(
TickInfoArraysType
&
rAllTickInfos
,
bool
bShiftedPosition
)
{
{
//no minor tickmarks will be generated!
//no minor tickmarks will be generated!
//order is: inner labels first , outer labels last (that is different to all other TickIter cases)
//order is: inner labels first , outer labels last (that is different to all other TickIter cases)
...
@@ -477,7 +477,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
...
@@ -477,7 +477,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
sal_Int32
nLevelCount
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoryLevelCount
();
sal_Int32
nLevelCount
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoryLevelCount
();
for
(
;
nLevel
<
nLevelCount
;
nLevel
++
)
for
(
;
nLevel
<
nLevelCount
;
nLevel
++
)
{
{
::
std
::
vector
<
TickInfo
>
aTickInfoVector
;
TickInfoArrayType
aTickInfoVector
;
const
std
::
vector
<
ComplexCategory
>*
pComplexCategories
=
const
std
::
vector
<
ComplexCategory
>*
pComplexCategories
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoriesByLevel
(
nLevel
);
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoriesByLevel
(
nLevel
);
...
@@ -517,7 +517,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
...
@@ -517,7 +517,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
sal_Int32
nLevelCount
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoryLevelCount
();
sal_Int32
nLevelCount
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoryLevelCount
();
for
(
;
nLevel
<
nLevelCount
;
nLevel
++
)
for
(
;
nLevel
<
nLevelCount
;
nLevel
++
)
{
{
::
std
::
vector
<
TickInfo
>
aTickInfoVector
;
TickInfoArrayType
aTickInfoVector
;
const
std
::
vector
<
ComplexCategory
>*
pComplexCategories
=
const
std
::
vector
<
ComplexCategory
>*
pComplexCategories
=
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoriesByLevel
(
nLevel
);
m_aAxisProperties
.
m_pExplicitCategoriesProvider
->
getCategoriesByLevel
(
nLevel
);
sal_Int32
nCatIndex
=
0
;
sal_Int32
nCatIndex
=
0
;
...
@@ -558,7 +558,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
...
@@ -558,7 +558,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
}
}
}
}
void
VCartesianAxis
::
createAllTickInfos
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
void
VCartesianAxis
::
createAllTickInfos
(
TickInfoArraysType
&
rAllTickInfos
)
{
{
if
(
isComplexCategoryAxis
()
)
if
(
isComplexCategoryAxis
()
)
createAllTickInfosFromComplexCategories
(
rAllTickInfos
,
false
);
createAllTickInfosFromComplexCategories
(
rAllTickInfos
,
false
);
...
@@ -1271,7 +1271,7 @@ void lcl_hideIdenticalScreenValues( TickIter& rTickIter )
...
@@ -1271,7 +1271,7 @@ void lcl_hideIdenticalScreenValues( TickIter& rTickIter )
}
}
//'hide' tickmarks with identical screen values in aAllTickInfos
//'hide' tickmarks with identical screen values in aAllTickInfos
void
VCartesianAxis
::
hideIdenticalScreenValues
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rTickInfos
)
const
void
VCartesianAxis
::
hideIdenticalScreenValues
(
TickInfoArraysType
&
rTickInfos
)
const
{
{
if
(
isComplexCategoryAxis
()
||
isDateAxis
()
)
if
(
isComplexCategoryAxis
()
||
isDateAxis
()
)
{
{
...
@@ -1467,12 +1467,12 @@ void VCartesianAxis::updatePositions()
...
@@ -1467,12 +1467,12 @@ void VCartesianAxis::updatePositions()
//update positions of all existing text shapes
//update positions of all existing text shapes
pTickFactory2D
->
updateScreenValues
(
m_aAllTickInfos
);
pTickFactory2D
->
updateScreenValues
(
m_aAllTickInfos
);
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
m_aAllTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
m_aAllTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
m_aAllTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
m_aAllTickInfos
.
end
();
for
(
sal_Int32
nDepth
=
0
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
,
nDepth
++
)
for
(
sal_Int32
nDepth
=
0
;
aDepthIter
!=
aDepthEnd
;
++
aDepthIter
,
nDepth
++
)
{
{
::
std
::
vector
<
TickInfo
>
::
iterator
aTickIter
=
aDepthIter
->
begin
();
TickInfoArrayType
::
iterator
aTickIter
=
aDepthIter
->
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
aDepthIter
->
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
aDepthIter
->
end
();
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
TickInfo
&
rTickInfo
=
(
*
aTickIter
);
...
@@ -1524,13 +1524,13 @@ void VCartesianAxis::updatePositions()
...
@@ -1524,13 +1524,13 @@ void VCartesianAxis::updatePositions()
doStaggeringOfLabels
(
m_aAxisLabelProperties
,
pTickFactory2D
);
doStaggeringOfLabels
(
m_aAxisLabelProperties
,
pTickFactory2D
);
}
}
void
VCartesianAxis
::
createTickMarkLineShapes
(
::
std
::
vector
<
TickInfo
>
&
rTickInfos
,
const
TickmarkProperties
&
rTickmarkProperties
,
TickFactory2D
&
rTickFactory2D
,
bool
bOnlyAtLabels
)
void
VCartesianAxis
::
createTickMarkLineShapes
(
TickInfoArrayType
&
rTickInfos
,
const
TickmarkProperties
&
rTickmarkProperties
,
TickFactory2D
&
rTickFactory2D
,
bool
bOnlyAtLabels
)
{
{
sal_Int32
nPointCount
=
rTickInfos
.
size
();
sal_Int32
nPointCount
=
rTickInfos
.
size
();
drawing
::
PointSequenceSequence
aPoints
(
2
*
nPointCount
);
drawing
::
PointSequenceSequence
aPoints
(
2
*
nPointCount
);
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickIter
=
rTickInfos
.
begin
();
TickInfoArrayType
::
const_iterator
aTickIter
=
rTickInfos
.
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
rTickInfos
.
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
rTickInfos
.
end
();
sal_Int32
nN
=
0
;
sal_Int32
nN
=
0
;
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
...
@@ -1571,7 +1571,7 @@ void VCartesianAxis::createShapes()
...
@@ -1571,7 +1571,7 @@ void VCartesianAxis::createShapes()
//create extra long ticks to separate complex categories (create them only there where the labels are)
//create extra long ticks to separate complex categories (create them only there where the labels are)
if
(
isComplexCategoryAxis
()
)
if
(
isComplexCategoryAxis
()
)
{
{
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aComplexTickInfos
;
TickInfoArraysType
aComplexTickInfos
;
createAllTickInfosFromComplexCategories
(
aComplexTickInfos
,
true
);
createAllTickInfosFromComplexCategories
(
aComplexTickInfos
,
true
);
pTickFactory2D
->
updateScreenValues
(
aComplexTickInfos
);
pTickFactory2D
->
updateScreenValues
(
aComplexTickInfos
);
hideIdenticalScreenValues
(
aComplexTickInfos
);
hideIdenticalScreenValues
(
aComplexTickInfos
);
...
@@ -1594,8 +1594,8 @@ void VCartesianAxis::createShapes()
...
@@ -1594,8 +1594,8 @@ void VCartesianAxis::createShapes()
}
}
sal_Int32
nTickmarkPropertiesCount
=
aTickmarkPropertiesList
.
size
();
sal_Int32
nTickmarkPropertiesCount
=
aTickmarkPropertiesList
.
size
();
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
aComplexTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
aComplexTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
aComplexTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
aComplexTickInfos
.
end
();
for
(
sal_Int32
nDepth
=
0
;
aDepthIter
!=
aDepthEnd
&&
nDepth
<
nTickmarkPropertiesCount
;
++
aDepthIter
,
nDepth
++
)
for
(
sal_Int32
nDepth
=
0
;
aDepthIter
!=
aDepthEnd
&&
nDepth
<
nTickmarkPropertiesCount
;
++
aDepthIter
,
nDepth
++
)
{
{
if
(
nDepth
==
0
&&
!
m_aAxisProperties
.
m_nMajorTickmarks
)
if
(
nDepth
==
0
&&
!
m_aAxisProperties
.
m_nMajorTickmarks
)
...
@@ -1605,17 +1605,17 @@ void VCartesianAxis::createShapes()
...
@@ -1605,17 +1605,17 @@ void VCartesianAxis::createShapes()
}
}
//create normal ticks for major and minor intervals
//create normal ticks for major and minor intervals
{
{
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aUnshiftedTickInfos
;
TickInfoArraysType
aUnshiftedTickInfos
;
if
(
m_aScale
.
ShiftedCategoryPosition
)
// if ShiftedCategoryPosition==true the tickmarks in m_aAllTickInfos are shifted
if
(
m_aScale
.
ShiftedCategoryPosition
)
// if ShiftedCategoryPosition==true the tickmarks in m_aAllTickInfos are shifted
{
{
pTickFactory2D
->
getAllTicks
(
aUnshiftedTickInfos
);
pTickFactory2D
->
getAllTicks
(
aUnshiftedTickInfos
);
pTickFactory2D
->
updateScreenValues
(
aUnshiftedTickInfos
);
pTickFactory2D
->
updateScreenValues
(
aUnshiftedTickInfos
);
hideIdenticalScreenValues
(
aUnshiftedTickInfos
);
hideIdenticalScreenValues
(
aUnshiftedTickInfos
);
}
}
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
=
m_aScale
.
ShiftedCategoryPosition
?
aUnshiftedTickInfos
:
m_aAllTickInfos
;
TickInfoArraysType
&
rAllTickInfos
=
m_aScale
.
ShiftedCategoryPosition
?
aUnshiftedTickInfos
:
m_aAllTickInfos
;
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
rAllTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
rAllTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
rAllTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
rAllTickInfos
.
end
();
if
(
aDepthIter
==
aDepthEnd
)
//no tickmarks at all
if
(
aDepthIter
==
aDepthEnd
)
//no tickmarks at all
return
;
return
;
...
...
chart2/source/view/axes/VCartesianAxis.hxx
Dosyayı görüntüle @
110d0915
...
@@ -44,8 +44,8 @@ public:
...
@@ -44,8 +44,8 @@ public:
virtual
void
createShapes
()
SAL_OVERRIDE
;
virtual
void
createShapes
()
SAL_OVERRIDE
;
virtual
sal_Int32
estimateMaximumAutoMainIncrementCount
()
SAL_OVERRIDE
;
virtual
sal_Int32
estimateMaximumAutoMainIncrementCount
()
SAL_OVERRIDE
;
virtual
void
createAllTickInfos
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
SAL_OVERRIDE
;
virtual
void
createAllTickInfos
(
TickInfoArraysType
&
rAllTickInfos
)
SAL_OVERRIDE
;
void
createAllTickInfosFromComplexCategories
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
bool
bShiftedPosition
);
void
createAllTickInfosFromComplexCategories
(
TickInfoArraysType
&
rAllTickInfos
,
bool
bShiftedPosition
);
TickIter
*
createLabelTickIterator
(
sal_Int32
nTextLevel
);
TickIter
*
createLabelTickIterator
(
sal_Int32
nTextLevel
);
TickIter
*
createMaximumLabelTickIterator
(
sal_Int32
nTextLevel
);
TickIter
*
createMaximumLabelTickIterator
(
sal_Int32
nTextLevel
);
...
@@ -112,10 +112,10 @@ protected: //methods
...
@@ -112,10 +112,10 @@ protected: //methods
,
TickFactory2D
*
pTickFactory
,
TickFactory2D
*
pTickFactory
,
sal_Int32
nScreenDistanceBetweenTicks
);
,
sal_Int32
nScreenDistanceBetweenTicks
);
void
createTickMarkLineShapes
(
::
std
::
vector
<
TickInfo
>
&
rTickInfos
,
const
TickmarkProperties
&
rTickmarkProperties
,
TickFactory2D
&
rTickFactory2D
,
bool
bOnlyAtLabels
);
void
createTickMarkLineShapes
(
TickInfoArrayType
&
rTickInfos
,
const
TickmarkProperties
&
rTickmarkProperties
,
TickFactory2D
&
rTickFactory2D
,
bool
bOnlyAtLabels
);
TickFactory2D
*
createTickFactory2D
();
TickFactory2D
*
createTickFactory2D
();
void
hideIdenticalScreenValues
(
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rTickInfos
)
const
;
void
hideIdenticalScreenValues
(
TickInfoArraysType
&
rTickInfos
)
const
;
void
doStaggeringOfLabels
(
const
AxisLabelProperties
&
rAxisLabelProperties
void
doStaggeringOfLabels
(
const
AxisLabelProperties
&
rAxisLabelProperties
,
TickFactory2D
*
pTickFactory2D
);
,
TickFactory2D
*
pTickFactory2D
);
...
...
chart2/source/view/axes/VCartesianGrid.cxx
Dosyayı görüntüle @
110d0915
...
@@ -212,12 +212,12 @@ void VCartesianGrid::createShapes()
...
@@ -212,12 +212,12 @@ void VCartesianGrid::createShapes()
//create all scaled tickmark values
//create all scaled tickmark values
boost
::
scoped_ptr
<
TickFactory
>
apTickFactory
(
this
->
createTickFactory
()
);
boost
::
scoped_ptr
<
TickFactory
>
apTickFactory
(
this
->
createTickFactory
()
);
TickFactory
&
aTickFactory
=
*
apTickFactory
.
get
();
TickFactory
&
aTickFactory
=
*
apTickFactory
.
get
();
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aAllTickInfos
;
TickInfoArraysType
aAllTickInfos
;
aTickFactory
.
getAllTicks
(
aAllTickInfos
);
aTickFactory
.
getAllTicks
(
aAllTickInfos
);
//create tick mark line shapes
//create tick mark line shapes
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
aAllTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
aAllTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
aAllTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
aAllTickInfos
.
end
();
if
(
aDepthIter
==
aDepthEnd
)
//no tickmarks at all
if
(
aDepthIter
==
aDepthEnd
)
//no tickmarks at all
return
;
return
;
...
@@ -248,8 +248,8 @@ void VCartesianGrid::createShapes()
...
@@ -248,8 +248,8 @@ void VCartesianGrid::createShapes()
sal_Int32
nPointCount
=
(
*
aDepthIter
).
size
();
sal_Int32
nPointCount
=
(
*
aDepthIter
).
size
();
drawing
::
PointSequenceSequence
aPoints
(
nPointCount
);
drawing
::
PointSequenceSequence
aPoints
(
nPointCount
);
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
const_iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
sal_Int32
nRealPointCount
=
0
;
sal_Int32
nRealPointCount
=
0
;
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
...
@@ -286,8 +286,8 @@ void VCartesianGrid::createShapes()
...
@@ -286,8 +286,8 @@ void VCartesianGrid::createShapes()
aPoints
.
SequenceY
.
realloc
(
nPointCount
);
aPoints
.
SequenceY
.
realloc
(
nPointCount
);
aPoints
.
SequenceZ
.
realloc
(
nPointCount
);
aPoints
.
SequenceZ
.
realloc
(
nPointCount
);
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
const_iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
sal_Int32
nRealPointCount
=
0
;
sal_Int32
nRealPointCount
=
0
;
sal_Int32
nPolyIndex
=
0
;
sal_Int32
nPolyIndex
=
0
;
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
,
++
nPolyIndex
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
,
++
nPolyIndex
)
...
...
chart2/source/view/axes/VPolarGrid.cxx
Dosyayı görüntüle @
110d0915
...
@@ -57,7 +57,7 @@ void VPolarGrid::setIncrements( const std::vector< ExplicitIncrementData >& rInc
...
@@ -57,7 +57,7 @@ void VPolarGrid::setIncrements( const std::vector< ExplicitIncrementData >& rInc
m_aIncrements
=
rIncrements
;
m_aIncrements
=
rIncrements
;
}
}
void
VPolarGrid
::
getAllTickInfos
(
sal_Int32
nDimensionIndex
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
void
VPolarGrid
::
getAllTickInfos
(
sal_Int32
nDimensionIndex
,
TickInfoArraysType
&
rAllTickInfos
)
const
{
{
TickFactory
aTickFactory
(
TickFactory
aTickFactory
(
m_pPosHelper
->
getScales
()[
nDimensionIndex
],
m_aIncrements
[
nDimensionIndex
]
);
m_pPosHelper
->
getScales
()[
nDimensionIndex
],
m_aIncrements
[
nDimensionIndex
]
);
...
@@ -66,7 +66,7 @@ void VPolarGrid::getAllTickInfos( sal_Int32 nDimensionIndex, ::std::vector< ::st
...
@@ -66,7 +66,7 @@ void VPolarGrid::getAllTickInfos( sal_Int32 nDimensionIndex, ::std::vector< ::st
void
VPolarGrid
::
createLinePointSequence_ForAngleAxis
(
void
VPolarGrid
::
createLinePointSequence_ForAngleAxis
(
drawing
::
PointSequenceSequence
&
rPoints
drawing
::
PointSequenceSequence
&
rPoints
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
TickInfoArraysType
&
rAllTickInfos
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitScaleData
&
rScale
,
const
ExplicitScaleData
&
rScale
,
PolarPlottingPositionHelper
*
pPosHelper
,
PolarPlottingPositionHelper
*
pPosHelper
...
@@ -103,8 +103,8 @@ void VPolarGrid::createLinePointSequence_ForAngleAxis(
...
@@ -103,8 +103,8 @@ void VPolarGrid::createLinePointSequence_ForAngleAxis(
}
}
#ifdef NOTYET
#ifdef NOTYET
void
VPolarGrid
::
create2DAngleGrid
(
const
Reference
<
drawing
::
XShapes
>&
xLogicTarget
void
VPolarGrid
::
create2DAngleGrid
(
const
Reference
<
drawing
::
XShapes
>&
xLogicTarget
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
/* rRadiusTickInfos */
,
TickInfoArraysType
&
/* rRadiusTickInfos */
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAngleTickInfos
,
TickInfoArraysType
&
rAngleTickInfos
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
)
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
)
{
{
Reference
<
drawing
::
XShapes
>
xMainTarget
(
Reference
<
drawing
::
XShapes
>
xMainTarget
(
...
@@ -119,15 +119,15 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT
...
@@ -119,15 +119,15 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT
double
fLogicOuterRadius
=
m_pPosHelper
->
getOuterLogicRadius
();
double
fLogicOuterRadius
=
m_pPosHelper
->
getOuterLogicRadius
();
sal_Int32
nLinePropertiesCount
=
rLinePropertiesList
.
size
();
sal_Int32
nLinePropertiesCount
=
rLinePropertiesList
.
size
();
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>::
iterator
aDepthIter
=
rAngleTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
rAngleTickInfos
.
begin
();
if
(
nLinePropertiesCount
)
if
(
nLinePropertiesCount
)
{
{
double
fLogicZ
=
1.0
;
//as defined
double
fLogicZ
=
1.0
;
//as defined
sal_Int32
nDepth
=
0
;
sal_Int32
nDepth
=
0
;
//create axis main lines
//create axis main lines
drawing
::
PointSequenceSequence
aAllPoints
;
drawing
::
PointSequenceSequence
aAllPoints
;
::
std
::
vector
<
TickInfo
>
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
TickInfo
&
rTickInfo
=
*
aTickIter
;
TickInfo
&
rTickInfo
=
*
aTickIter
;
...
@@ -157,8 +157,8 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT
...
@@ -157,8 +157,8 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT
#endif
#endif
void
VPolarGrid
::
create2DRadiusGrid
(
const
Reference
<
drawing
::
XShapes
>&
xLogicTarget
void
VPolarGrid
::
create2DRadiusGrid
(
const
Reference
<
drawing
::
XShapes
>&
xLogicTarget
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rRadiusTickInfos
,
TickInfoArraysType
&
rRadiusTickInfos
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAngleTickInfos
,
TickInfoArraysType
&
rAngleTickInfos
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
)
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
)
{
{
Reference
<
drawing
::
XShapes
>
xMainTarget
(
Reference
<
drawing
::
XShapes
>
xMainTarget
(
...
@@ -172,8 +172,8 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic
...
@@ -172,8 +172,8 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic
xInverseRadiusScaling
=
rRadiusScale
.
Scaling
->
getInverseScaling
();
xInverseRadiusScaling
=
rRadiusScale
.
Scaling
->
getInverseScaling
();
sal_Int32
nLinePropertiesCount
=
rLinePropertiesList
.
size
();
sal_Int32
nLinePropertiesCount
=
rLinePropertiesList
.
size
();
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
iterator
aDepthIter
=
rRadiusTickInfos
.
begin
();
TickInfoArraysType
::
iterator
aDepthIter
=
rRadiusTickInfos
.
begin
();
const
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
::
const_iterator
aDepthEnd
=
rRadiusTickInfos
.
end
();
const
TickInfoArraysType
::
const_iterator
aDepthEnd
=
rRadiusTickInfos
.
end
();
for
(
sal_Int32
nDepth
=
0
for
(
sal_Int32
nDepth
=
0
;
aDepthIter
!=
aDepthEnd
&&
nDepth
<
nLinePropertiesCount
;
aDepthIter
!=
aDepthEnd
&&
nDepth
<
nLinePropertiesCount
;
++
aDepthIter
,
nDepth
++
)
;
++
aDepthIter
,
nDepth
++
)
...
@@ -193,8 +193,8 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic
...
@@ -193,8 +193,8 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic
//create axis main lines
//create axis main lines
drawing
::
PointSequenceSequence
aAllPoints
;
drawing
::
PointSequenceSequence
aAllPoints
;
::
std
::
vector
<
TickInfo
>
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
TickInfoArrayType
::
iterator
aTickIter
=
(
*
aDepthIter
).
begin
();
const
::
std
::
vector
<
TickInfo
>
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
const
TickInfoArrayType
::
const_iterator
aTickEnd
=
(
*
aDepthIter
).
end
();
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
for
(
;
aTickIter
!=
aTickEnd
;
++
aTickIter
)
{
{
TickInfo
&
rTickInfo
=
*
aTickIter
;
TickInfo
&
rTickInfo
=
*
aTickIter
;
...
@@ -228,8 +228,8 @@ void VPolarGrid::createShapes()
...
@@ -228,8 +228,8 @@ void VPolarGrid::createShapes()
return
;
return
;
//create all scaled tickmark values
//create all scaled tickmark values
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aAngleTickInfos
;
TickInfoArraysType
aAngleTickInfos
;
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aRadiusTickInfos
;
TickInfoArraysType
aRadiusTickInfos
;
getAllTickInfos
(
0
,
aAngleTickInfos
);
getAllTickInfos
(
0
,
aAngleTickInfos
);
getAllTickInfos
(
1
,
aRadiusTickInfos
);
getAllTickInfos
(
1
,
aRadiusTickInfos
);
...
...
chart2/source/view/axes/VPolarGrid.hxx
Dosyayı görüntüle @
110d0915
...
@@ -48,7 +48,7 @@ public:
...
@@ -48,7 +48,7 @@ public:
static
void
createLinePointSequence_ForAngleAxis
(
static
void
createLinePointSequence_ForAngleAxis
(
::
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
&
rPoints
::
com
::
sun
::
star
::
drawing
::
PointSequenceSequence
&
rPoints
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
,
TickInfoArraysType
&
rAllTickInfos
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitIncrementData
&
rIncrement
,
const
ExplicitScaleData
&
rScale
,
const
ExplicitScaleData
&
rScale
,
PolarPlottingPositionHelper
*
pPosHelper
,
PolarPlottingPositionHelper
*
pPosHelper
...
@@ -61,11 +61,11 @@ private: //member
...
@@ -61,11 +61,11 @@ private: //member
PolarPlottingPositionHelper
*
m_pPosHelper
;
PolarPlottingPositionHelper
*
m_pPosHelper
;
::
std
::
vector
<
ExplicitIncrementData
>
m_aIncrements
;
::
std
::
vector
<
ExplicitIncrementData
>
m_aIncrements
;
void
getAllTickInfos
(
sal_Int32
nDimensionIndex
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAllTickInfos
)
const
;
void
getAllTickInfos
(
sal_Int32
nDimensionIndex
,
TickInfoArraysType
&
rAllTickInfos
)
const
;
void
create2DRadiusGrid
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShapes
>&
xLogicTarget
void
create2DRadiusGrid
(
const
css
::
uno
::
Reference
<
css
::
drawing
::
XShapes
>&
xLogicTarget
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rRadiusTickInfos
,
TickInfoArraysType
&
rRadiusTickInfos
,
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
&
rAngleTickInfos
,
TickInfoArraysType
&
rAngleTickInfos
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
);
,
const
::
std
::
vector
<
VLineProperties
>&
rLinePropertiesList
);
};
};
...
...
chart2/source/view/axes/VPolarRadiusAxis.cxx
Dosyayı görüntüle @
110d0915
...
@@ -130,7 +130,7 @@ void VPolarRadiusAxis::createShapes()
...
@@ -130,7 +130,7 @@ void VPolarRadiusAxis::createShapes()
const
ExplicitScaleData
&
rAngleScale
=
m_pPosHelper
->
getScales
()[
0
];
const
ExplicitScaleData
&
rAngleScale
=
m_pPosHelper
->
getScales
()[
0
];
const
ExplicitIncrementData
&
rAngleIncrement
=
m_aIncrements
[
0
];
const
ExplicitIncrementData
&
rAngleIncrement
=
m_aIncrements
[
0
];
::
std
::
vector
<
::
std
::
vector
<
TickInfo
>
>
aAngleTickInfos
;
TickInfoArraysType
aAngleTickInfos
;
TickFactory
aAngleTickFactory
(
rAngleScale
,
rAngleIncrement
);
TickFactory
aAngleTickFactory
(
rAngleScale
,
rAngleIncrement
);
aAngleTickFactory
.
getAllTicks
(
aAngleTickInfos
);
aAngleTickFactory
.
getAllTicks
(
aAngleTickInfos
);
...
...
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