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
e685f4d7
Kaydet (Commit)
e685f4d7
authored
Agu 23, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Id6488ba7a72603f2f0eb2972f22797d6025f6031
üst
c0c366bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
58 deletions
+58
-58
ruler.cxx
svtools/source/control/ruler.cxx
+29
-29
gridctrl.cxx
svx/source/fmcomp/gridctrl.cxx
+11
-11
fmshimp.cxx
svx/source/form/fmshimp.cxx
+18
-18
No files found.
svtools/source/control/ruler.cxx
Dosyayı görüntüle @
e685f4d7
...
@@ -98,7 +98,7 @@ private:
...
@@ -98,7 +98,7 @@ private:
sal_uInt16
nTabs
;
sal_uInt16
nTabs
;
sal_uInt16
nMargin1Style
;
sal_uInt16
nMargin1Style
;
sal_uInt16
nMargin2Style
;
sal_uInt16
nMargin2Style
;
sal_B
ool
bAutoPageWidth
;
b
ool
bAutoPageWidth
;
sal_Bool
bTextRTL
;
sal_Bool
bTextRTL
;
public
:
public
:
...
@@ -130,11 +130,11 @@ struct ImplRulerHitTest
...
@@ -130,11 +130,11 @@ struct ImplRulerHitTest
RulerType
eType
;
RulerType
eType
;
sal_uInt16
nAryPos
;
sal_uInt16
nAryPos
;
sal_uInt16
mnDragSize
;
sal_uInt16
mnDragSize
;
sal_B
ool
bSize
;
b
ool
bSize
;
sal_B
ool
bSizeBar
;
b
ool
bSizeBar
;
sal_B
ool
bExpandTest
;
b
ool
bExpandTest
;
ImplRulerHitTest
()
:
ImplRulerHitTest
()
:
bExpandTest
(
sal_F
alse
)
{}
bExpandTest
(
f
alse
)
{}
};
};
// =======================================================================
// =======================================================================
...
@@ -144,7 +144,7 @@ ImplRulerData::ImplRulerData()
...
@@ -144,7 +144,7 @@ ImplRulerData::ImplRulerData()
memset
(
this
,
0
,
sizeof
(
ImplRulerData
)
);
memset
(
this
,
0
,
sizeof
(
ImplRulerData
)
);
// PageBreite == EditWinBreite
// PageBreite == EditWinBreite
bAutoPageWidth
=
sal_T
rue
;
bAutoPageWidth
=
t
rue
;
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
...
@@ -436,7 +436,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
...
@@ -436,7 +436,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
long
nTickCount
=
aImplRulerUnitTab
[
mnUnitIndex
].
nTick1
;
long
nTickCount
=
aImplRulerUnitTab
[
mnUnitIndex
].
nTick1
;
Size
aPixSize
=
maVirDev
.
LogicToPixel
(
Size
(
nTick3
,
nTick3
),
maMapMode
);
Size
aPixSize
=
maVirDev
.
LogicToPixel
(
Size
(
nTick3
,
nTick3
),
maMapMode
);
long
nTickWidth
;
long
nTickWidth
;
sal_Bool
bNoTicks
=
sal_F
alse
;
bool
bNoTicks
=
f
alse
;
long
nTickUnit
=
0
;
long
nTickUnit
=
0
;
long
nTick2
=
0
;
long
nTick2
=
0
;
...
@@ -508,7 +508,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
...
@@ -508,7 +508,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
// koennen
// koennen
if
(
nMulti
<
nOldMulti
)
if
(
nMulti
<
nOldMulti
)
{
{
bNoTicks
=
sal_T
rue
;
bNoTicks
=
t
rue
;
break
;
break
;
}
}
...
@@ -770,7 +770,7 @@ void Ruler::ImplDrawIndents( long nMin, long nMax, long nVirTop, long nVirBottom
...
@@ -770,7 +770,7 @@ void Ruler::ImplDrawIndents( long nMin, long nMax, long nVirTop, long nVirBottom
static
void
ImplCenterTabPos
(
Point
&
rPos
,
sal_uInt16
nTabStyle
)
static
void
ImplCenterTabPos
(
Point
&
rPos
,
sal_uInt16
nTabStyle
)
{
{
sal_B
ool
bRTL
=
0
!=
(
nTabStyle
&
RULER_TAB_RTL
);
b
ool
bRTL
=
0
!=
(
nTabStyle
&
RULER_TAB_RTL
);
nTabStyle
&=
RULER_TAB_STYLE
;
nTabStyle
&=
RULER_TAB_STYLE
;
rPos
.
Y
()
+=
RULER_TAB_HEIGHT
/
2
;
rPos
.
Y
()
+=
RULER_TAB_HEIGHT
/
2
;
if
(
(
!
bRTL
&&
nTabStyle
==
RULER_TAB_LEFT
)
||
(
bRTL
&&
nTabStyle
==
RULER_TAB_RIGHT
))
if
(
(
!
bRTL
&&
nTabStyle
==
RULER_TAB_LEFT
)
||
(
bRTL
&&
nTabStyle
==
RULER_TAB_RIGHT
))
...
@@ -780,7 +780,7 @@ static void ImplCenterTabPos( Point& rPos, sal_uInt16 nTabStyle )
...
@@ -780,7 +780,7 @@ static void ImplCenterTabPos( Point& rPos, sal_uInt16 nTabStyle )
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
static
void
lcl_RotateRect_Impl
(
Rectangle
&
rRect
,
const
long
nReference
,
sal_B
ool
bRightAligned
)
static
void
lcl_RotateRect_Impl
(
Rectangle
&
rRect
,
const
long
nReference
,
b
ool
bRightAligned
)
{
{
if
(
!
rRect
.
IsEmpty
())
if
(
!
rRect
.
IsEmpty
())
{
{
...
@@ -806,7 +806,7 @@ static void ImplDrawRulerTab( OutputDevice* pDevice,
...
@@ -806,7 +806,7 @@ static void ImplDrawRulerTab( OutputDevice* pDevice,
return
;
return
;
sal_uInt16
nTabStyle
=
nStyle
&
RULER_TAB_STYLE
;
sal_uInt16
nTabStyle
=
nStyle
&
RULER_TAB_STYLE
;
sal_B
ool
bRTL
=
0
!=
(
nStyle
&
RULER_TAB_RTL
);
b
ool
bRTL
=
0
!=
(
nStyle
&
RULER_TAB_RTL
);
Rectangle
aRect1
,
aRect2
,
aRect3
;
Rectangle
aRect1
,
aRect2
,
aRect3
;
aRect3
.
SetEmpty
();
aRect3
.
SetEmpty
();
if
(
nTabStyle
==
RULER_TAB_DEFAULT
)
if
(
nTabStyle
==
RULER_TAB_DEFAULT
)
...
@@ -864,7 +864,7 @@ static void ImplDrawRulerTab( OutputDevice* pDevice,
...
@@ -864,7 +864,7 @@ static void ImplDrawRulerTab( OutputDevice* pDevice,
}
}
if
(
0
==
(
nWinBits
&
WB_HORZ
)
)
if
(
0
==
(
nWinBits
&
WB_HORZ
)
)
{
{
sal_B
ool
bRightAligned
=
0
!=
(
nWinBits
&
WB_RIGHT_ALIGNED
);
b
ool
bRightAligned
=
0
!=
(
nWinBits
&
WB_RIGHT_ALIGNED
);
lcl_RotateRect_Impl
(
aRect1
,
rPos
.
Y
(),
bRightAligned
);
lcl_RotateRect_Impl
(
aRect1
,
rPos
.
Y
(),
bRightAligned
);
lcl_RotateRect_Impl
(
aRect2
,
rPos
.
Y
(),
bRightAligned
);
lcl_RotateRect_Impl
(
aRect2
,
rPos
.
Y
(),
bRightAligned
);
lcl_RotateRect_Impl
(
aRect3
,
rPos
.
Y
(),
bRightAligned
);
lcl_RotateRect_Impl
(
aRect3
,
rPos
.
Y
(),
bRightAligned
);
...
@@ -1273,7 +1273,7 @@ void Ruler::ImplDrawExtra( sal_Bool bPaint )
...
@@ -1273,7 +1273,7 @@ void Ruler::ImplDrawExtra( sal_Bool bPaint )
{
{
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
Rectangle
aRect
=
maExtraRect
;
Rectangle
aRect
=
maExtraRect
;
sal_Bool
bEraseRect
=
sal_F
alse
;
bool
bEraseRect
=
f
alse
;
aRect
.
Left
()
+=
2
;
aRect
.
Left
()
+=
2
;
aRect
.
Top
()
+=
2
;
aRect
.
Top
()
+=
2
;
...
@@ -1283,14 +1283,14 @@ void Ruler::ImplDrawExtra( sal_Bool bPaint )
...
@@ -1283,14 +1283,14 @@ void Ruler::ImplDrawExtra( sal_Bool bPaint )
if
(
!
bPaint
&&
!
(
mnExtraStyle
&
RULER_STYLE_HIGHLIGHT
)
)
if
(
!
bPaint
&&
!
(
mnExtraStyle
&
RULER_STYLE_HIGHLIGHT
)
)
{
{
SetFillColor
(
rStyleSettings
.
GetWorkspaceColor
()
);
SetFillColor
(
rStyleSettings
.
GetWorkspaceColor
()
);
bEraseRect
=
sal_T
rue
;
bEraseRect
=
t
rue
;
}
}
else
else
{
{
if
(
mnExtraStyle
&
RULER_STYLE_HIGHLIGHT
)
if
(
mnExtraStyle
&
RULER_STYLE_HIGHLIGHT
)
{
{
SetFillColor
(
rStyleSettings
.
GetCheckedColor
()
);
SetFillColor
(
rStyleSettings
.
GetCheckedColor
()
);
bEraseRect
=
sal_T
rue
;
bEraseRect
=
t
rue
;
}
}
}
}
...
@@ -1395,8 +1395,8 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
...
@@ -1395,8 +1395,8 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
// #i32608#
// #i32608#
pHitTest
->
nAryPos
=
0
;
pHitTest
->
nAryPos
=
0
;
pHitTest
->
mnDragSize
=
0
;
pHitTest
->
mnDragSize
=
0
;
pHitTest
->
bSize
=
sal_F
alse
;
pHitTest
->
bSize
=
f
alse
;
pHitTest
->
bSizeBar
=
sal_F
alse
;
pHitTest
->
bSizeBar
=
f
alse
;
// Damit ueberstehende Tabs und Einzuege mit beruecksichtigt werden
// Damit ueberstehende Tabs und Einzuege mit beruecksichtigt werden
long
nXExtraOff
;
long
nXExtraOff
;
...
@@ -1546,7 +1546,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
...
@@ -1546,7 +1546,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
{
{
if
(
nStyle
&
RULER_BORDER_MOVEABLE
)
if
(
nStyle
&
RULER_BORDER_MOVEABLE
)
{
{
pHitTest
->
bSizeBar
=
sal_T
rue
;
pHitTest
->
bSizeBar
=
t
rue
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_MOVE
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_MOVE
;
}
}
}
}
...
@@ -1566,19 +1566,19 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
...
@@ -1566,19 +1566,19 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
if
(
nX
<=
n1
+
nMOff
)
if
(
nX
<=
n1
+
nMOff
)
{
{
pHitTest
->
bSize
=
sal_T
rue
;
pHitTest
->
bSize
=
t
rue
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_1
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_1
;
}
}
else
if
(
nX
>=
n2
-
nMOff
)
else
if
(
nX
>=
n2
-
nMOff
)
{
{
pHitTest
->
bSize
=
sal_T
rue
;
pHitTest
->
bSize
=
t
rue
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_2
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_2
;
}
}
else
else
{
{
if
(
nStyle
&
RULER_BORDER_MOVEABLE
)
if
(
nStyle
&
RULER_BORDER_MOVEABLE
)
{
{
pHitTest
->
bSizeBar
=
sal_T
rue
;
pHitTest
->
bSizeBar
=
t
rue
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_MOVE
;
pHitTest
->
mnDragSize
=
RULER_DRAGSIZE_MOVE
;
}
}
}
}
...
@@ -1598,7 +1598,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
...
@@ -1598,7 +1598,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
if
(
(
nX
>=
n1
-
nMarginTolerance
)
&&
(
nX
<=
n1
+
nMarginTolerance
)
)
if
(
(
nX
>=
n1
-
nMarginTolerance
)
&&
(
nX
<=
n1
+
nMarginTolerance
)
)
{
{
pHitTest
->
eType
=
RULER_TYPE_MARGIN1
;
pHitTest
->
eType
=
RULER_TYPE_MARGIN1
;
pHitTest
->
bSize
=
sal_T
rue
;
pHitTest
->
bSize
=
t
rue
;
return
sal_True
;
return
sal_True
;
}
}
}
}
...
@@ -1608,7 +1608,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
...
@@ -1608,7 +1608,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, ImplRulerHitTest* pHitTest,
if
(
(
nX
>=
n1
-
nMarginTolerance
)
&&
(
nX
<=
n1
+
nMarginTolerance
)
)
if
(
(
nX
>=
n1
-
nMarginTolerance
)
&&
(
nX
<=
n1
+
nMarginTolerance
)
)
{
{
pHitTest
->
eType
=
RULER_TYPE_MARGIN2
;
pHitTest
->
eType
=
RULER_TYPE_MARGIN2
;
pHitTest
->
bSize
=
sal_T
rue
;
pHitTest
->
bSize
=
t
rue
;
return
sal_True
;
return
sal_True
;
}
}
}
}
...
@@ -2272,7 +2272,7 @@ sal_Bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
...
@@ -2272,7 +2272,7 @@ sal_Bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
sal_uInt16
nMouseModifier
=
rMEvt
.
GetModifier
();
sal_uInt16
nMouseModifier
=
rMEvt
.
GetModifier
();
ImplRulerHitTest
aHitTest
;
ImplRulerHitTest
aHitTest
;
if
(
eDragType
!=
RULER_TYPE_DONTKNOW
)
if
(
eDragType
!=
RULER_TYPE_DONTKNOW
)
aHitTest
.
bExpandTest
=
sal_T
rue
;
aHitTest
.
bExpandTest
=
t
rue
;
// Gegebenenfalls Lineal updaten (damit mit den richtigen Daten
// Gegebenenfalls Lineal updaten (damit mit den richtigen Daten
// gearbeitet wird und die Anzeige auch zur Bearbeitung passt)
// gearbeitet wird und die Anzeige auch zur Bearbeitung passt)
...
@@ -2388,9 +2388,9 @@ void Ruler::SetPagePos( long nNewOff, long nNewWidth )
...
@@ -2388,9 +2388,9 @@ void Ruler::SetPagePos( long nNewOff, long nNewWidth )
// Gegebenenfalls werden die Breiten automatisch berechnet
// Gegebenenfalls werden die Breiten automatisch berechnet
if
(
!
nNewWidth
)
if
(
!
nNewWidth
)
mpData
->
bAutoPageWidth
=
sal_T
rue
;
mpData
->
bAutoPageWidth
=
t
rue
;
else
else
mpData
->
bAutoPageWidth
=
sal_F
alse
;
mpData
->
bAutoPageWidth
=
f
alse
;
// Werte setzen (werden in ImplFormat gegebenenfalls mitberechnet)
// Werte setzen (werden in ImplFormat gegebenenfalls mitberechnet)
mpData
->
nPageOff
=
nNewOff
;
mpData
->
nPageOff
=
nNewOff
;
...
@@ -2576,11 +2576,11 @@ void Ruler::SetLines( sal_uInt16 n, const RulerLine* pLineAry )
...
@@ -2576,11 +2576,11 @@ void Ruler::SetLines( sal_uInt16 n, const RulerLine* pLineAry )
}
}
// New values and new share issue
// New values and new share issue
sal_B
ool
bMustUpdate
;
b
ool
bMustUpdate
;
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
bMustUpdate
=
sal_T
rue
;
bMustUpdate
=
t
rue
;
else
else
bMustUpdate
=
sal_F
alse
;
bMustUpdate
=
f
alse
;
// Delete old lines
// Delete old lines
if
(
bMustUpdate
)
if
(
bMustUpdate
)
...
...
svx/source/fmcomp/gridctrl.cxx
Dosyayı görüntüle @
e685f4d7
...
@@ -130,7 +130,7 @@ class GridFieldValueListener : protected ::comphelper::OPropertyChangeListener
...
@@ -130,7 +130,7 @@ class GridFieldValueListener : protected ::comphelper::OPropertyChangeListener
::
comphelper
::
OPropertyChangeMultiplexer
*
m_pRealListener
;
::
comphelper
::
OPropertyChangeMultiplexer
*
m_pRealListener
;
sal_uInt16
m_nId
;
sal_uInt16
m_nId
;
sal_Int16
m_nSuspended
;
sal_Int16
m_nSuspended
;
sal_Bool
m_bDisposed
:
1
;
bool
m_bDisposed
:
1
;
public
:
public
:
GridFieldValueListener
(
DbGridControl
&
_rParent
,
const
Reference
<
XPropertySet
>&
xField
,
sal_uInt16
_nId
);
GridFieldValueListener
(
DbGridControl
&
_rParent
,
const
Reference
<
XPropertySet
>&
xField
,
sal_uInt16
_nId
);
...
@@ -150,7 +150,7 @@ GridFieldValueListener::GridFieldValueListener(DbGridControl& _rParent, const Re
...
@@ -150,7 +150,7 @@ GridFieldValueListener::GridFieldValueListener(DbGridControl& _rParent, const Re
,
m_pRealListener
(
NULL
)
,
m_pRealListener
(
NULL
)
,
m_nId
(
_nId
)
,
m_nId
(
_nId
)
,
m_nSuspended
(
0
)
,
m_nSuspended
(
0
)
,
m_bDisposed
(
sal_F
alse
)
,
m_bDisposed
(
f
alse
)
{
{
DBG_CTOR
(
GridFieldValueListener
,
NULL
);
DBG_CTOR
(
GridFieldValueListener
,
NULL
);
if
(
_rField
.
is
())
if
(
_rField
.
is
())
...
@@ -192,7 +192,7 @@ void GridFieldValueListener::dispose()
...
@@ -192,7 +192,7 @@ void GridFieldValueListener::dispose()
m_pRealListener
=
NULL
;
m_pRealListener
=
NULL
;
}
}
m_bDisposed
=
sal_T
rue
;
m_bDisposed
=
t
rue
;
m_rParent
.
FieldListenerDisposing
(
m_nId
);
m_rParent
.
FieldListenerDisposing
(
m_nId
);
}
}
...
@@ -1312,7 +1312,7 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt)
...
@@ -1312,7 +1312,7 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt)
// _after_ setting the mode because this results in an ActivateCell
// _after_ setting the mode because this results in an ActivateCell
DeactivateCell
();
DeactivateCell
();
sal_B
ool
bInsertChanged
=
(
nOpt
&
OPT_INSERT
)
!=
(
m_nOptions
&
OPT_INSERT
);
b
ool
bInsertChanged
=
(
nOpt
&
OPT_INSERT
)
!=
(
m_nOptions
&
OPT_INSERT
);
m_nOptions
=
nOpt
;
m_nOptions
=
nOpt
;
// we need to set this before the code below because it indirectly uses m_nOptions
// we need to set this before the code below because it indirectly uses m_nOptions
...
@@ -1858,7 +1858,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
...
@@ -1858,7 +1858,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
}
}
// ignore any updates implicit made
// ignore any updates implicit made
sal_B
ool
bDisablePaint
=
!
bUpdateCursor
&&
IsPaintEnabled
();
b
ool
bDisablePaint
=
!
bUpdateCursor
&&
IsPaintEnabled
();
if
(
bDisablePaint
)
if
(
bDisablePaint
)
EnablePaint
(
sal_False
);
EnablePaint
(
sal_False
);
...
@@ -1866,7 +1866,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
...
@@ -1866,7 +1866,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
Reference
<
XPropertySet
>
xSet
=
m_pSeekCursor
->
getPropertySet
();
Reference
<
XPropertySet
>
xSet
=
m_pSeekCursor
->
getPropertySet
();
sal_Int32
nCacheSize
=
0
;
sal_Int32
nCacheSize
=
0
;
xSet
->
getPropertyValue
(
FM_PROP_FETCHSIZE
)
>>=
nCacheSize
;
xSet
->
getPropertyValue
(
FM_PROP_FETCHSIZE
)
>>=
nCacheSize
;
sal_Bool
bCacheAligned
=
sal_F
alse
;
bool
bCacheAligned
=
f
alse
;
// Nach der Initialisierung (m_nSeekPos < 0) keine Cursorbewegung, da bereits auf den ersten
// Nach der Initialisierung (m_nSeekPos < 0) keine Cursorbewegung, da bereits auf den ersten
// Satz positioniert
// Satz positioniert
long
nDelta
=
nNewTopRow
-
GetTopRow
();
long
nDelta
=
nNewTopRow
-
GetTopRow
();
...
@@ -1881,7 +1881,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
...
@@ -1881,7 +1881,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B
xSet
->
setPropertyValue
(
FM_PROP_FETCHSIZE
,
aCacheSize
);
xSet
->
setPropertyValue
(
FM_PROP_FETCHSIZE
,
aCacheSize
);
// jetzt auf alle Faelle den Cursor anpassen
// jetzt auf alle Faelle den Cursor anpassen
bUpdateCursor
=
sal_True
;
bUpdateCursor
=
sal_True
;
bCacheAligned
=
sal_T
rue
;
bCacheAligned
=
t
rue
;
nLimit
=
nLinesOnScreen
;
nLimit
=
nLinesOnScreen
;
}
}
...
@@ -2103,7 +2103,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow)
...
@@ -2103,7 +2103,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow)
}
}
else
else
{
{
sal_Bool
bNewRowInserted
=
sal_F
alse
;
bool
bNewRowInserted
=
f
alse
;
// Should we go to the insertrow ?
// Should we go to the insertrow ?
if
(
IsInsertionRow
(
nNewRow
))
if
(
IsInsertionRow
(
nNewRow
))
{
{
...
@@ -2116,7 +2116,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow)
...
@@ -2116,7 +2116,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow)
Reference
<
XResultSetUpdate
>
xUpdateCursor
((
Reference
<
XInterface
>
)
*
m_pDataCursor
,
UNO_QUERY
);
Reference
<
XResultSetUpdate
>
xUpdateCursor
((
Reference
<
XInterface
>
)
*
m_pDataCursor
,
UNO_QUERY
);
xUpdateCursor
->
moveToInsertRow
();
xUpdateCursor
->
moveToInsertRow
();
}
}
bNewRowInserted
=
sal_T
rue
;
bNewRowInserted
=
t
rue
;
}
}
else
else
{
{
...
@@ -3261,7 +3261,7 @@ sal_Bool DbGridControl::SaveRow()
...
@@ -3261,7 +3261,7 @@ sal_Bool DbGridControl::SaveRow()
BeginCursorAction
();
BeginCursorAction
();
sal_Bool
bAppending
=
m_xCurrentRow
->
IsNew
();
sal_Bool
bAppending
=
m_xCurrentRow
->
IsNew
();
sal_Bool
bSuccess
=
sal_F
alse
;
bool
bSuccess
=
f
alse
;
try
try
{
{
Reference
<
XResultSetUpdate
>
xUpdateCursor
((
Reference
<
XInterface
>
)
*
m_pDataCursor
,
UNO_QUERY
);
Reference
<
XResultSetUpdate
>
xUpdateCursor
((
Reference
<
XInterface
>
)
*
m_pDataCursor
,
UNO_QUERY
);
...
@@ -3269,7 +3269,7 @@ sal_Bool DbGridControl::SaveRow()
...
@@ -3269,7 +3269,7 @@ sal_Bool DbGridControl::SaveRow()
xUpdateCursor
->
insertRow
();
xUpdateCursor
->
insertRow
();
else
else
xUpdateCursor
->
updateRow
();
xUpdateCursor
->
updateRow
();
bSuccess
=
sal_T
rue
;
bSuccess
=
t
rue
;
}
}
catch
(
SQLException
&
)
catch
(
SQLException
&
)
{
{
...
...
svx/source/form/fmshimp.cxx
Dosyayı görüntüle @
e685f4d7
...
@@ -1914,8 +1914,8 @@ void FmXFormShell::setActiveController( const Reference< runtime::XFormControlle
...
@@ -1914,8 +1914,8 @@ void FmXFormShell::setActiveController( const Reference< runtime::XFormControlle
xOldForm
=
getInternalForm
(
xOldForm
);
xOldForm
=
getInternalForm
(
xOldForm
);
xNewForm
=
getInternalForm
(
xNewForm
);
xNewForm
=
getInternalForm
(
xNewForm
);
sal_B
ool
bDifferentForm
=
(
xOldForm
.
get
()
!=
xNewForm
.
get
()
);
b
ool
bDifferentForm
=
(
xOldForm
.
get
()
!=
xNewForm
.
get
()
);
sal_B
ool
bNeedSave
=
bDifferentForm
&&
!
_bNoSaveOldContent
;
b
ool
bNeedSave
=
bDifferentForm
&&
!
_bNoSaveOldContent
;
// we save the content of the old form if we move to a new form, and saving old content is allowed
// we save the content of the old form if we move to a new form, and saving old content is allowed
if
(
m_xActiveController
.
is
()
&&
bNeedSave
)
if
(
m_xActiveController
.
is
()
&&
bNeedSave
)
...
@@ -2777,23 +2777,23 @@ class FmXFormShell::SuspendPropertyTracking
...
@@ -2777,23 +2777,23 @@ class FmXFormShell::SuspendPropertyTracking
{
{
private
:
private
:
FmXFormShell
&
m_rShell
;
FmXFormShell
&
m_rShell
;
sal_Bool
m_bEnabled
;
bool
m_bEnabled
;
public
:
public
:
SuspendPropertyTracking
(
FmXFormShell
&
_rShell
)
SuspendPropertyTracking
(
FmXFormShell
&
_rShell
)
:
m_rShell
(
_rShell
)
:
m_rShell
(
_rShell
)
,
m_bEnabled
(
sal_F
alse
)
,
m_bEnabled
(
f
alse
)
{
{
if
(
m_rShell
.
IsTrackPropertiesEnabled
()
)
if
(
m_rShell
.
IsTrackPropertiesEnabled
()
)
{
{
m_rShell
.
EnableTrackProperties
(
sal_False
);
m_rShell
.
EnableTrackProperties
(
sal_False
);
m_bEnabled
=
sal_T
rue
;
m_bEnabled
=
t
rue
;
}
}
}
}
~
SuspendPropertyTracking
(
)
~
SuspendPropertyTracking
(
)
{
{
if
(
m_bEnabled
)
// note that (
sal_F
alse != m_bEnabled ) implies ( NULL != m_pShell )
if
(
m_bEnabled
)
// note that (
f
alse != m_bEnabled ) implies ( NULL != m_pShell )
m_rShell
.
EnableTrackProperties
(
sal_True
);
m_rShell
.
EnableTrackProperties
(
sal_True
);
}
}
};
};
...
@@ -3187,7 +3187,7 @@ void FmXFormShell::CreateExternalView()
...
@@ -3187,7 +3187,7 @@ void FmXFormShell::CreateExternalView()
{
{
FmXBoundFormFieldIterator
aModelIterator
(
xCurrentNavController
->
getModel
());
FmXBoundFormFieldIterator
aModelIterator
(
xCurrentNavController
->
getModel
());
Reference
<
XPropertySet
>
xCurrentModelSet
;
Reference
<
XPropertySet
>
xCurrentModelSet
;
sal_Bool
bHaveUsableControls
=
sal_F
alse
;
bool
bHaveUsableControls
=
f
alse
;
while
((
xCurrentModelSet
=
Reference
<
XPropertySet
>
(
aModelIterator
.
Next
(),
UNO_QUERY
)).
is
())
while
((
xCurrentModelSet
=
Reference
<
XPropertySet
>
(
aModelIterator
.
Next
(),
UNO_QUERY
)).
is
())
{
{
// the FmXBoundFormFieldIterator only supplies controls with a valid control source
// the FmXBoundFormFieldIterator only supplies controls with a valid control source
...
@@ -3199,7 +3199,7 @@ void FmXFormShell::CreateExternalView()
...
@@ -3199,7 +3199,7 @@ void FmXFormShell::CreateExternalView()
case
FormComponentType
:
:
CONTROL
:
case
FormComponentType
:
:
CONTROL
:
continue
;
continue
;
}
}
bHaveUsableControls
=
sal_T
rue
;
bHaveUsableControls
=
t
rue
;
break
;
break
;
}
}
...
@@ -3840,38 +3840,38 @@ IMPL_LINK( FmXFormShell, OnLoadForms, FmFormPage*, /*_pPage*/ )
...
@@ -3840,38 +3840,38 @@ IMPL_LINK( FmXFormShell, OnLoadForms, FmFormPage*, /*_pPage*/ )
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
namespace
namespace
{
{
sal_B
ool
lcl_isLoadable
(
const
Reference
<
XInterface
>&
_rxLoadable
)
b
ool
lcl_isLoadable
(
const
Reference
<
XInterface
>&
_rxLoadable
)
{
{
// determines whether a form should be loaded or not
// determines whether a form should be loaded or not
// if there is no datasource or connection there is no reason to load a form
// if there is no datasource or connection there is no reason to load a form
Reference
<
XPropertySet
>
xSet
(
_rxLoadable
,
UNO_QUERY
);
Reference
<
XPropertySet
>
xSet
(
_rxLoadable
,
UNO_QUERY
);
if
(
!
xSet
.
is
()
)
if
(
!
xSet
.
is
()
)
return
sal_F
alse
;
return
f
alse
;
try
try
{
{
Reference
<
XConnection
>
xConn
;
Reference
<
XConnection
>
xConn
;
if
(
OStaticDataAccessTools
().
isEmbeddedInDatabase
(
_rxLoadable
.
get
(),
xConn
)
)
if
(
OStaticDataAccessTools
().
isEmbeddedInDatabase
(
_rxLoadable
.
get
(),
xConn
)
)
return
sal_T
rue
;
return
t
rue
;
// is there already a active connection
// is there already a active connection
xSet
->
getPropertyValue
(
FM_PROP_ACTIVE_CONNECTION
)
>>=
xConn
;
xSet
->
getPropertyValue
(
FM_PROP_ACTIVE_CONNECTION
)
>>=
xConn
;
if
(
xConn
.
is
()
)
if
(
xConn
.
is
()
)
return
sal_T
rue
;
return
t
rue
;
OUString
sPropertyValue
;
OUString
sPropertyValue
;
OSL_VERIFY
(
xSet
->
getPropertyValue
(
FM_PROP_DATASOURCE
)
>>=
sPropertyValue
);
OSL_VERIFY
(
xSet
->
getPropertyValue
(
FM_PROP_DATASOURCE
)
>>=
sPropertyValue
);
if
(
!
sPropertyValue
.
isEmpty
()
)
if
(
!
sPropertyValue
.
isEmpty
()
)
return
sal_T
rue
;
return
t
rue
;
OSL_VERIFY
(
xSet
->
getPropertyValue
(
FM_PROP_URL
)
>>=
sPropertyValue
);
OSL_VERIFY
(
xSet
->
getPropertyValue
(
FM_PROP_URL
)
>>=
sPropertyValue
);
if
(
!
sPropertyValue
.
isEmpty
()
)
if
(
!
sPropertyValue
.
isEmpty
()
)
return
sal_T
rue
;
return
t
rue
;
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
DBG_UNHANDLED_EXCEPTION
();
DBG_UNHANDLED_EXCEPTION
();
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
}
}
...
@@ -3908,11 +3908,11 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour /
...
@@ -3908,11 +3908,11 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour /
if
(
xForms
.
is
()
)
if
(
xForms
.
is
()
)
{
{
Reference
<
XLoadable
>
xForm
;
Reference
<
XLoadable
>
xForm
;
sal_Bool
bFormWasLoaded
=
sal_F
alse
;
bool
bFormWasLoaded
=
f
alse
;
for
(
sal_Int32
j
=
0
,
nCount
=
xForms
->
getCount
();
j
<
nCount
;
++
j
)
for
(
sal_Int32
j
=
0
,
nCount
=
xForms
->
getCount
();
j
<
nCount
;
++
j
)
{
{
xForms
->
getByIndex
(
j
)
>>=
xForm
;
xForms
->
getByIndex
(
j
)
>>=
xForm
;
bFormWasLoaded
=
sal_F
alse
;
bFormWasLoaded
=
f
alse
;
// a database form must be loaded for
// a database form must be loaded for
try
try
{
{
...
@@ -3925,7 +3925,7 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour /
...
@@ -3925,7 +3925,7 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour /
{
{
if
(
xForm
->
isLoaded
()
)
if
(
xForm
->
isLoaded
()
)
{
{
bFormWasLoaded
=
sal_T
rue
;
bFormWasLoaded
=
t
rue
;
xForm
->
unload
();
xForm
->
unload
();
}
}
}
}
...
...
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