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
ed36b5d3
Kaydet (Commit)
ed36b5d3
authored
Haz 07, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool etc.
üst
613f5824
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
32 deletions
+30
-32
viewdata.hxx
sc/source/ui/inc/viewdata.hxx
+19
-21
viewdata.cxx
sc/source/ui/view/viewdata.cxx
+11
-11
No files found.
sc/source/ui/inc/viewdata.hxx
Dosyayı görüntüle @
ed36b5d3
...
...
@@ -148,8 +148,7 @@ private:
SCROW
nPosY
[
2
];
bool
bShowGrid
;
// per-sheet show grid-lines option.
sal_Bool
bOldCurValid
;
// "virtuelle" Cursorpos. bei zusammengefassten
bool
mbOldCursorValid
;
// "virtuelle" Cursorpos. bei zusammengefassten
ScViewDataTable
();
~
ScViewDataTable
();
...
...
@@ -220,14 +219,13 @@ private:
ScPasteFlags
nPasteFlags
;
ScSplitPos
eEditActivePart
;
// the part that was active when edit mode was started
sal_Bool
bEditActive
[
4
];
// aktiv?
sal_Bool
bActive
;
// aktives Fenster ?
sal_Bool
bIsRefMode
;
// Referenzeingabe
sal_Bool
bDelMarkValid
;
// nur gueltig bei SC_REFTYPE_FILL
sal_uInt8
nFillMode
;
// Modus
sal_Bool
bPagebreak
;
// Seitenumbruch-Vorschaumodus
sal_Bool
bSelCtrlMouseClick
;
// special selection handling for ctrl-mouse-click
bool
bEditActive
[
4
];
// aktiv?
bool
bActive
:
1
;
// aktives Fenster ?
bool
bIsRefMode
:
1
;
// Referenzeingabe
bool
bDelMarkValid
:
1
;
// nur gueltig bei SC_REFTYPE_FILL
bool
bPagebreak
:
1
;
// Seitenumbruch-Vorschaumodus
bool
bSelCtrlMouseClick
:
1
;
// special selection handling for ctrl-mouse-click
SC_DLLPRIVATE
DECL_LINK
(
EmptyEditHdl
,
EditStatus
*
);
SC_DLLPRIVATE
DECL_LINK
(
EditEngineHdl
,
EditStatus
*
);
...
...
@@ -273,8 +271,8 @@ public:
ScDocument
*
GetDocument
()
const
;
sal_B
ool
IsActive
()
const
{
return
bActive
;
}
void
Activate
(
sal_B
ool
bActivate
)
{
bActive
=
bActivate
;
}
b
ool
IsActive
()
const
{
return
bActive
;
}
void
Activate
(
b
ool
bActivate
)
{
bActive
=
bActivate
;
}
void
InsertTab
(
SCTAB
nTab
);
void
InsertTabs
(
SCTAB
nTab
,
SCTAB
nNewSheets
);
...
...
@@ -292,7 +290,7 @@ public:
SCROW
GetPosY
(
ScVSplitPos
eWhich
)
const
{
return
pThisTab
->
nPosY
[
eWhich
];
}
SCCOL
GetCurX
()
const
{
return
pThisTab
->
nCurX
;
}
SCROW
GetCurY
()
const
{
return
pThisTab
->
nCurY
;
}
sal_Bool
HasOldCursor
()
const
{
return
pThisTab
->
bOldCu
rValid
;
}
bool
HasOldCursor
()
const
{
return
pThisTab
->
mbOldCurso
rValid
;
}
SCCOL
GetOldCurX
()
const
;
SCROW
GetOldCurY
()
const
;
ScSplitMode
GetHSplitMode
()
const
{
return
pThisTab
->
eHSplitMode
;
}
...
...
@@ -301,7 +299,7 @@ public:
long
GetVSplitPos
()
const
{
return
pThisTab
->
nVSplitPos
;
}
SCCOL
GetFixPosX
()
const
{
return
pThisTab
->
nFixPosX
;
}
SCROW
GetFixPosY
()
const
{
return
pThisTab
->
nFixPosY
;
}
sal_B
ool
IsPagebreakMode
()
const
{
return
bPagebreak
;
}
b
ool
IsPagebreakMode
()
const
{
return
bPagebreak
;
}
bool
IsPasteMode
()
const
{
return
nPasteFlags
&
SC_PASTE_MODE
;
}
bool
ShowPasteSource
()
const
{
return
nPasteFlags
&
SC_PASTE_BORDER
;
}
...
...
@@ -317,7 +315,7 @@ public:
void
SetVSplitPos
(
long
nPos
)
{
pThisTab
->
nVSplitPos
=
nPos
;
}
void
SetFixPosX
(
SCCOL
nPos
)
{
pThisTab
->
nFixPosX
=
nPos
;
}
void
SetFixPosY
(
SCROW
nPos
)
{
pThisTab
->
nFixPosY
=
nPos
;
}
void
SetPagebreakMode
(
sal_B
ool
bSet
);
void
SetPagebreakMode
(
b
ool
bSet
);
void
SetPasteMode
(
ScPasteFlags
nFlags
)
{
nPasteFlags
=
nFlags
;
}
void
SetZoomType
(
SvxZoomType
eNew
,
sal_Bool
bAll
);
...
...
@@ -326,7 +324,7 @@ public:
void
SetZoom
(
const
Fraction
&
rNewX
,
const
Fraction
&
rNewY
,
sal_Bool
bAll
);
void
RefreshZoom
();
void
SetSelCtrlMouseClick
(
sal_B
ool
bTmp
)
{
bSelCtrlMouseClick
=
bTmp
;
}
void
SetSelCtrlMouseClick
(
b
ool
bTmp
)
{
bSelCtrlMouseClick
=
bTmp
;
}
SvxZoomType
GetZoomType
()
const
{
return
pThisTab
->
eZoomType
;
}
const
Fraction
&
GetZoomX
()
const
{
return
bPagebreak
?
pThisTab
->
aPageZoomX
:
pThisTab
->
aZoomX
;
}
...
...
@@ -375,7 +373,7 @@ public:
void
GetMouseQuadrant
(
const
Point
&
rClickPos
,
ScSplitPos
eWhich
,
SCsCOL
nPosX
,
SCsROW
nPosY
,
sal_Bool
&
rLeft
,
sal_Bool
&
rTop
);
sal_B
ool
IsRefMode
()
const
{
return
bIsRefMode
;
}
b
ool
IsRefMode
()
const
{
return
bIsRefMode
;
}
ScRefType
GetRefType
()
const
{
return
eRefType
;
}
SCCOL
GetRefStartX
()
const
{
return
nRefStartX
;
}
SCROW
GetRefStartY
()
const
{
return
nRefStartY
;
}
...
...
@@ -384,7 +382,7 @@ public:
SCROW
GetRefEndY
()
const
{
return
nRefEndY
;
}
SCTAB
GetRefEndZ
()
const
{
return
nRefEndZ
;
}
void
SetRefMode
(
sal_B
ool
bNewMode
,
ScRefType
eNewType
)
void
SetRefMode
(
b
ool
bNewMode
,
ScRefType
eNewType
)
{
bIsRefMode
=
bNewMode
;
eRefType
=
eNewType
;
}
void
SetRefStart
(
SCCOL
nNewX
,
SCROW
nNewY
,
SCTAB
nNewZ
)
...
...
@@ -394,9 +392,9 @@ public:
void
ResetDelMark
()
{
bDelMarkValid
=
false
;
}
void
SetDelMark
(
const
ScRange
&
rRange
)
{
aDelRange
=
rRange
;
bDelMarkValid
=
sal_T
rue
;
}
{
aDelRange
=
rRange
;
bDelMarkValid
=
t
rue
;
}
sal_B
ool
GetDelMark
(
ScRange
&
rRange
)
const
b
ool
GetDelMark
(
ScRange
&
rRange
)
const
{
rRange
=
aDelRange
;
return
bDelMarkValid
;
}
inline
void
GetMoveCursor
(
SCCOL
&
rCurX
,
SCROW
&
rCurY
);
...
...
@@ -425,7 +423,7 @@ public:
ScEditEngineDefaulter
*
pNewEngine
,
Window
*
pWin
,
SCCOL
nNewX
,
SCROW
nNewY
);
void
GetEditView
(
ScSplitPos
eWhich
,
EditView
*&
rViewPtr
,
SCCOL
&
rCol
,
SCROW
&
rRow
);
sal_B
ool
HasEditView
(
ScSplitPos
eWhich
)
const
b
ool
HasEditView
(
ScSplitPos
eWhich
)
const
{
return
pEditView
[
eWhich
]
&&
bEditActive
[
eWhich
];
}
EditView
*
GetEditView
(
ScSplitPos
eWhich
)
const
{
return
pEditView
[
eWhich
];
}
...
...
@@ -491,7 +489,7 @@ public:
const
Size
&
GetScenButSize
()
const
{
return
aScenButSize
;
}
void
SetScenButSize
(
const
Size
&
rNew
)
{
aScenButSize
=
rNew
;
}
sal_B
ool
IsSelCtrlMouseClick
()
{
return
bSelCtrlMouseClick
;
}
b
ool
IsSelCtrlMouseClick
()
{
return
bSelCtrlMouseClick
;
}
static
inline
long
ToPixel
(
sal_uInt16
nTwips
,
double
nFactor
);
...
...
sc/source/ui/view/viewdata.cxx
Dosyayı görüntüle @
ed36b5d3
...
...
@@ -96,7 +96,7 @@ ScViewDataTable::ScViewDataTable() :
nCurX
(
0
),
nCurY
(
0
),
bShowGrid
(
true
),
bOldCu
rValid
(
false
)
mbOldCurso
rValid
(
false
)
{
nPosX
[
0
]
=
nPosX
[
1
]
=
0
;
nPosY
[
0
]
=
nPosY
[
1
]
=
0
;
...
...
@@ -313,10 +313,10 @@ ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) :
nRefTabNo
(
0
),
nPasteFlags
(
SC_PASTE_NONE
),
eEditActivePart
(
SC_SPLIT_BOTTOMLEFT
),
bActive
(
sal_True
),
//! wie initialisieren?
nFillMode
(
SC_FILL_NONE
),
bActive
(
true
),
//! wie initialisieren?
bIsRefMode
(
false
),
bDelMarkValid
(
false
),
nFillMode
(
SC_FILL_NONE
),
bPagebreak
(
false
),
bSelCtrlMouseClick
(
false
)
{
...
...
@@ -382,10 +382,10 @@ ScViewData::ScViewData( const ScViewData& rViewData ) :
nTabNo
(
rViewData
.
nTabNo
),
nRefTabNo
(
rViewData
.
nTabNo
),
// kein RefMode
eEditActivePart
(
rViewData
.
eEditActivePart
),
bActive
(
sal_True
),
//! wie initialisieren?
nFillMode
(
SC_FILL_NONE
),
bActive
(
true
),
//! wie initialisieren?
bIsRefMode
(
false
),
bDelMarkValid
(
false
),
nFillMode
(
SC_FILL_NONE
),
bPagebreak
(
rViewData
.
bPagebreak
),
bSelCtrlMouseClick
(
rViewData
.
bSelCtrlMouseClick
)
{
...
...
@@ -704,7 +704,7 @@ void ScViewData::RefreshZoom()
aLogicMode
.
SetScaleY
(
GetZoomY
()
);
}
void
ScViewData
::
SetPagebreakMode
(
sal_B
ool
bSet
)
void
ScViewData
::
SetPagebreakMode
(
b
ool
bSet
)
{
bPagebreak
=
bSet
;
...
...
@@ -866,7 +866,7 @@ void ScViewData::GetFillData( SCCOL& rStartCol, SCROW& rStartRow,
SCCOL
ScViewData
::
GetOldCurX
()
const
{
if
(
pThisTab
->
bOldCu
rValid
)
if
(
pThisTab
->
mbOldCurso
rValid
)
return
pThisTab
->
nOldCurX
;
else
return
pThisTab
->
nCurX
;
...
...
@@ -874,7 +874,7 @@ SCCOL ScViewData::GetOldCurX() const
SCROW
ScViewData
::
GetOldCurY
()
const
{
if
(
pThisTab
->
bOldCu
rValid
)
if
(
pThisTab
->
mbOldCurso
rValid
)
return
pThisTab
->
nOldCurY
;
else
return
pThisTab
->
nCurY
;
...
...
@@ -884,12 +884,12 @@ void ScViewData::SetOldCursor( SCCOL nNewX, SCROW nNewY )
{
pThisTab
->
nOldCurX
=
nNewX
;
pThisTab
->
nOldCurY
=
nNewY
;
pThisTab
->
bOldCurValid
=
sal_T
rue
;
pThisTab
->
mbOldCursorValid
=
t
rue
;
}
void
ScViewData
::
ResetOldCursor
()
{
pThisTab
->
bOldCu
rValid
=
false
;
pThisTab
->
mbOldCurso
rValid
=
false
;
}
Rectangle
ScViewData
::
GetEditArea
(
ScSplitPos
eWhich
,
SCCOL
nPosX
,
SCROW
nPosY
,
...
...
@@ -937,7 +937,7 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich,
sal_uLong
nVC
=
pEditView
[
eWhich
]
->
GetControlWord
();
pEditView
[
eWhich
]
->
SetControlWord
(
nVC
&
~
EV_CNTRL_AUTOSCROLL
);
bEditActive
[
eWhich
]
=
sal_T
rue
;
bEditActive
[
eWhich
]
=
t
rue
;
const
ScPatternAttr
*
pPattern
=
pDoc
->
GetPattern
(
nNewX
,
nNewY
,
nTabNo
);
SvxCellHorJustify
eJust
=
(
SvxCellHorJustify
)((
const
SvxHorJustifyItem
&
)
...
...
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