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
007543f9
Kaydet (Commit)
007543f9
authored
Ara 11, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: Merge ScMultiTextWnd into ScTextWnd.
Change-Id: I21ed0e37feec0e7c078c2e284b7f4169f0cff432
üst
5639a769
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
49 deletions
+37
-49
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
inputwin.cxx
sc/source/ui/app/inputwin.cxx
+0
-0
inputwin.hxx
sc/source/ui/inc/inputwin.hxx
+37
-48
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
007543f9
...
...
@@ -104,7 +104,6 @@ merge ScRefHandlerCaller with ScTPValidationValue
merge ScRefHandlerHelper with ScValidationDlg
merge ScSimpleEditSourceHelper with ScEditEngineTextObj
merge ScTabView with ScViewFunc
merge ScTextWnd with ScMultiTextWnd
merge ScVbaControlContainer with ScVbaButtonContainer
merge ScVbaObjectContainer with ScVbaControlContainer
merge ScViewFunc with ScDBFunc
...
...
sc/source/ui/app/inputwin.cxx
Dosyayı görüntüle @
007543f9
This diff is collapsed.
Click to expand it.
sc/source/ui/inc/inputwin.hxx
Dosyayı görüntüle @
007543f9
...
...
@@ -30,15 +30,16 @@
#include <vcl/window.hxx>
#include <svtools/transfer.hxx>
class
ScEditEngineDefaulte
r
;
class
Accelerato
r
;
class
EditView
;
struct
ESelection
;
class
ScInputHandler
;
class
ScAccessibleEditLineTextData
;
struct
EENotify
;
class
ScEditEngineDefaulter
;
class
ScInputBarGroup
;
class
ScInputHandler
;
class
ScRangeList
;
class
ScTabViewShell
;
class
Accelerator
;
struct
EENotify
;
struct
ESelection
;
class
ScTextWndBase
:
public
vcl
::
Window
{
...
...
@@ -60,14 +61,14 @@ public:
class
ScTextWnd
:
public
ScTextWndBase
,
public
DragSourceHelper
// edit window
{
public
:
ScTextWnd
(
vcl
::
Window
*
pParent
,
ScTabViewShell
*
pViewSh
);
ScTextWnd
(
ScInputBarGroup
*
pParent
,
ScTabViewShell
*
pViewSh
);
virtual
~
ScTextWnd
();
virtual
void
dispose
()
override
;
virtual
void
SetTextString
(
const
OUString
&
rString
)
override
;
virtual
const
OUString
&
GetTextString
()
const
override
;
bool
IsInputActive
()
override
;
bool
IsInputActive
()
override
;
virtual
EditView
*
GetEditView
()
override
;
// for function autopilots
...
...
@@ -78,7 +79,7 @@ public:
virtual
void
TextGrabFocus
()
override
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
override
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
override
;
virtual
void
SetFormulaMode
(
bool
bSet
)
override
;
...
...
@@ -87,11 +88,22 @@ public:
virtual
void
InsertAccessibleTextData
(
ScAccessibleEditLineTextData
&
rTextData
)
override
;
virtual
void
RemoveAccessibleTextData
(
ScAccessibleEditLineTextData
&
rTextData
)
override
;
DECL_LINK_TYPED
(
NotifyHdl
,
LinkParamNone
*
,
void
);
virtual
void
Resize
()
override
;
long
GetPixelHeightForLines
(
long
nLines
);
long
GetEditEngTxtHeight
();
long
GetNumLines
()
{
return
mnLines
;
}
void
SetNumLines
(
long
nLines
);
long
GetLastNumExpandedLines
()
{
return
mnLastExpandedLines
;
}
void
DoScroll
();
DECL_LINK_TYPED
(
NotifyHdl
,
EENotify
&
,
void
);
DECL_LINK_TYPED
(
ModifyHdl
,
LinkParamNone
*
,
void
);
protected
:
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
override
;
virtual
void
Resize
()
override
;
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
)
override
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
override
;
...
...
@@ -108,6 +120,10 @@ protected:
void
ImplInitSettings
();
void
UpdateAutoCorrFlag
();
void
SetScrollBarRange
();
void
InitEditEngine
();
ScTabViewShell
*
GetViewShell
()
{
return
mpViewShell
;}
typedef
::
std
::
vector
<
ScAccessibleEditLineTextData
*
>
AccTextDataVector
;
...
...
@@ -127,6 +143,11 @@ protected:
private
:
ScTabViewShell
*
mpViewShell
;
ScInputBarGroup
&
mrGroupBar
;
long
mnLines
;
long
mnLastExpandedLines
;
long
mnBorderHeight
;
bool
mbInvalidate
;
};
class
ScPosWnd
:
public
ComboBox
,
public
SfxListener
// Display position
...
...
@@ -162,40 +183,6 @@ private:
void
ReleaseFocus_Impl
();
};
class
ScInputBarGroup
;
class
ScMultiTextWnd
:
public
ScTextWnd
{
public
:
ScMultiTextWnd
(
ScInputBarGroup
*
pParent
,
ScTabViewShell
*
pViewSh
);
virtual
~
ScMultiTextWnd
();
virtual
void
StartEditEngine
()
override
;
virtual
void
StopEditEngine
(
bool
bAll
)
override
;
virtual
void
Resize
()
override
;
virtual
EditView
*
GetEditView
()
override
;
long
GetPixelHeightForLines
(
long
nLines
);
long
GetEditEngTxtHeight
();
void
DoScroll
();
virtual
void
SetTextString
(
const
OUString
&
rString
)
override
;
void
SetNumLines
(
long
nLines
);
long
GetNumLines
()
{
return
mnLines
;
}
long
GetLastNumExpandedLines
()
{
return
mnLastExpandedLines
;
}
protected
:
void
SetScrollBarRange
();
void
InitEditEngine
();
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
override
;
DECL_LINK_TYPED
(
NotifyHdl
,
EENotify
&
,
void
);
DECL_LINK_TYPED
(
ModifyHdl
,
LinkParamNone
*
,
void
);
private
:
ScInputBarGroup
&
mrGroupBar
;
long
mnLines
;
long
mnLastExpandedLines
;
long
mnBorderHeight
;
bool
mbInvalidate
;
};
class
ScInputBarGroup
:
public
ScTextWndBase
{
...
...
@@ -220,15 +207,17 @@ public:
void
DecrementVerticalSize
();
long
GetNumLines
()
{
return
maTextWnd
->
GetNumLines
();
}
long
GetVertOffset
()
{
return
mnVertOffset
;
}
private
:
void
TriggerToolboxLayout
();
VclPtr
<
ScMultiTextWnd
>
maTextWnd
;
VclPtr
<
ImageButton
>
maButton
;
VclPtr
<
ScrollBar
>
maScrollbar
;
VclPtr
<
ScTextWnd
>
maTextWnd
;
VclPtr
<
ImageButton
>
maButton
;
VclPtr
<
ScrollBar
>
maScrollbar
;
long
mnVertOffset
;
DECL_LINK_TYPED
(
ClickHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
Impl_ScrollHdl
,
ScrollBar
*
,
void
);
};
class
ScInputWindow
:
public
ToolBox
// Parent toolbox
...
...
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