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
76f5ce40
Kaydet (Commit)
76f5ce40
authored
Şub 10, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more similar handling of InputSequenceChecker as in other places
Change-Id: Ia6efc0eda03dac87c73e720d08f320ce3fc6ce4a
üst
5d0638af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
17 deletions
+15
-17
edit.hxx
include/vcl/edit.hxx
+3
-1
texteng.hxx
include/vcl/texteng.hxx
+2
-1
edit.cxx
vcl/source/control/edit.cxx
+5
-9
texteng.cxx
vcl/source/edit/texteng.cxx
+5
-6
No files found.
include/vcl/edit.hxx
Dosyayı görüntüle @
76f5ce40
...
@@ -86,6 +86,8 @@ private:
...
@@ -86,6 +86,8 @@ private:
Link
maUpdateDataHdl
;
Link
maUpdateDataHdl
;
Link
maAutocompleteHdl
;
Link
maAutocompleteHdl
;
css
::
uno
::
Reference
<
css
::
i18n
::
XExtendedInputSequenceChecker
>
mxISC
;
DECL_DLLPRIVATE_LINK
(
ImplUpdateDataHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
ImplUpdateDataHdl
,
void
*
);
SAL_DLLPRIVATE
bool
ImplTruncateToMaxLen
(
OUString
&
,
sal_Int32
nSelectionLen
)
const
;
SAL_DLLPRIVATE
bool
ImplTruncateToMaxLen
(
OUString
&
,
sal_Int32
nSelectionLen
)
const
;
...
@@ -112,7 +114,7 @@ private:
...
@@ -112,7 +114,7 @@ private:
SAL_DLLPRIVATE
void
ImplCopy
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
datatransfer
::
clipboard
::
XClipboard
>&
rxClipboard
);
SAL_DLLPRIVATE
void
ImplCopy
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
datatransfer
::
clipboard
::
XClipboard
>&
rxClipboard
);
SAL_DLLPRIVATE
void
ImplPaste
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
datatransfer
::
clipboard
::
XClipboard
>&
rxClipboard
);
SAL_DLLPRIVATE
void
ImplPaste
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
datatransfer
::
clipboard
::
XClipboard
>&
rxClipboard
);
SAL_DLLPRIVATE
long
ImplGetTextYPosition
()
const
;
SAL_DLLPRIVATE
long
ImplGetTextYPosition
()
const
;
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XExtendedInputSequenceChecker
>
ImplGetInputSequenceChecker
()
const
;
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XExtendedInputSequenceChecker
>
ImplGetInputSequenceChecker
();
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
ImplGetBreakIterator
()
const
;
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
ImplGetBreakIterator
()
const
;
protected
:
protected
:
...
...
include/vcl/texteng.hxx
Dosyayı görüntüle @
76f5ce40
...
@@ -104,6 +104,7 @@ private:
...
@@ -104,6 +104,7 @@ private:
::
com
::
sun
::
star
::
lang
::
Locale
maLocale
;
::
com
::
sun
::
star
::
lang
::
Locale
maLocale
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
mxBreakIterator
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
mxBreakIterator
;
css
::
uno
::
Reference
<
css
::
i18n
::
XExtendedInputSequenceChecker
>
mxISC
;
Rectangle
maInvalidRect
;
Rectangle
maInvalidRect
;
Range
maInvalidRange
;
Range
maInvalidRange
;
...
@@ -159,7 +160,7 @@ protected:
...
@@ -159,7 +160,7 @@ protected:
// gets not exported. First and seconf parameter swapped to have a different signatur.
// gets not exported. First and seconf parameter swapped to have a different signatur.
SAL_DLLPRIVATE
TextPaM
ImpInsertText
(
sal_Unicode
c
,
const
TextSelection
&
rSel
,
sal_Bool
bOverwrite
=
sal_False
,
sal_Bool
bIsUserInput
=
sal_False
);
SAL_DLLPRIVATE
TextPaM
ImpInsertText
(
sal_Unicode
c
,
const
TextSelection
&
rSel
,
sal_Bool
bOverwrite
=
sal_False
,
sal_Bool
bIsUserInput
=
sal_False
);
// some other new functions needed that must not be exported to remain compatible
// some other new functions needed that must not be exported to remain compatible
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XExtendedInputSequenceChecker
>
GetInputSequenceChecker
()
const
;
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
i18n
::
XExtendedInputSequenceChecker
>
GetInputSequenceChecker
();
SAL_DLLPRIVATE
sal_Bool
IsInputSequenceCheckingRequired
(
sal_Unicode
c
,
const
TextSelection
&
rCurSel
)
const
;
SAL_DLLPRIVATE
sal_Bool
IsInputSequenceCheckingRequired
(
sal_Unicode
c
,
const
TextSelection
&
rCurSel
)
const
;
// broadcast or adjust selections
// broadcast or adjust selections
...
...
vcl/source/control/edit.cxx
Dosyayı görüntüle @
76f5ce40
...
@@ -834,18 +834,14 @@ uno::Reference < i18n::XBreakIterator > Edit::ImplGetBreakIterator() const
...
@@ -834,18 +834,14 @@ uno::Reference < i18n::XBreakIterator > Edit::ImplGetBreakIterator() const
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
Edit
::
ImplGetInputSequenceChecker
()
const
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
Edit
::
ImplGetInputSequenceChecker
()
{
{
//!! since we don't want to become incompatible in the next minor update
if
(
!
mxISC
.
is
()
)
//!! where this code will get integrated into, xISC will be a local
//!! variable instead of a class member!
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
xISC
;
// if ( !xISC.is() )
{
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
mxISC
=
i18n
::
InputSequenceChecker
::
create
(
xISC
=
i18n
::
InputSequenceChecker
::
create
(
xContext
);
::
comphelper
::
getProcessComponentContext
()
);
}
}
return
xISC
;
return
m
xISC
;
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
...
...
vcl/source/edit/texteng.cxx
Dosyayı görüntüle @
76f5ce40
...
@@ -628,15 +628,14 @@ void TextEngine::ImpRemoveParagraph( sal_uLong nPara )
...
@@ -628,15 +628,14 @@ void TextEngine::ImpRemoveParagraph( sal_uLong nPara )
ImpParagraphRemoved
(
nPara
);
ImpParagraphRemoved
(
nPara
);
}
}
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
TextEngine
::
GetInputSequenceChecker
()
const
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
TextEngine
::
GetInputSequenceChecker
()
{
{
uno
::
Reference
<
i18n
::
XExtendedInputSequenceChecker
>
xISC
;
if
(
!
mxISC
.
is
()
)
// if ( !xISC.is() )
{
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
mxISC
=
i18n
::
InputSequenceChecker
::
create
(
xISC
=
i18n
::
InputSequenceChecker
::
create
(
xContext
);
::
comphelper
::
getProcessComponentContext
()
);
}
}
return
xISC
;
return
m
xISC
;
}
}
sal_Bool
TextEngine
::
IsInputSequenceCheckingRequired
(
sal_Unicode
c
,
const
TextSelection
&
rCurSel
)
const
sal_Bool
TextEngine
::
IsInputSequenceCheckingRequired
(
sal_Unicode
c
,
const
TextSelection
&
rCurSel
)
const
...
...
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