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
60d7c4b9
Kaydet (Commit)
60d7c4b9
authored
Eki 08, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sw/source/ui/inc/l*.hxx from String to OUString
Change-Id: I8566128d3e3271e926a7ff70b453365dfab1f62d
üst
dd211963
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
label1.cxx
sw/source/ui/envelp/label1.cxx
+2
-2
label.hxx
sw/source/ui/inc/label.hxx
+6
-6
langhelper.hxx
sw/source/ui/inc/langhelper.hxx
+4
-4
langhelper.cxx
sw/source/ui/shells/langhelper.cxx
+12
-12
No files found.
sw/source/ui/envelp/label1.cxx
Dosyayı görüntüle @
60d7c4b9
...
...
@@ -68,7 +68,7 @@ void SwLabRec::FillItem( SwLabItem& rItem ) const
rItem
.
nRows
=
nRows
;
}
void
SwLabDlg
::
_ReplaceGroup
(
const
String
&
rMake
)
void
SwLabDlg
::
_ReplaceGroup
(
const
OU
String
&
rMake
)
{
// Remove old entries
pRecs
->
erase
(
pRecs
->
begin
()
+
1
,
pRecs
->
end
());
...
...
@@ -198,7 +198,7 @@ void SwLabDlg::GetLabItem(SwLabItem &rItem)
}
}
SwLabRec
*
SwLabDlg
::
GetRecord
(
const
String
&
rRecName
,
sal_Bool
bCont
)
SwLabRec
*
SwLabDlg
::
GetRecord
(
const
OU
String
&
rRecName
,
sal_Bool
bCont
)
{
SwLabRec
*
pRec
=
NULL
;
bool
bFound
=
false
;
...
...
sw/source/ui/inc/label.hxx
Dosyayı görüntüle @
60d7c4b9
...
...
@@ -41,7 +41,7 @@ class SwLabDlg : public SfxTabDialog
std
::
vector
<
OUString
>
aMakes
;
SwLabRecs
*
pRecs
;
String
aLstGroup
;
OUString
aLstGroup
;
OUString
m_sBusinessCardDlg
;
bool
m_bLabel
;
sal_uInt16
m_nFormatId
;
...
...
@@ -50,7 +50,7 @@ class SwLabDlg : public SfxTabDialog
sal_uInt16
m_nCardsId
;
sal_uInt16
m_nBusinessId
;
sal_uInt16
m_nPrivateId
;
void
_ReplaceGroup
(
const
String
&
rMake
);
void
_ReplaceGroup
(
const
OU
String
&
rMake
);
virtual
void
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
);
public
:
...
...
@@ -59,7 +59,7 @@ public:
SwNewDBMgr
*
pNewDBMgr
,
sal_Bool
bLabel
);
~
SwLabDlg
();
SwLabRec
*
GetRecord
(
const
String
&
rRecName
,
sal_Bool
bCont
);
SwLabRec
*
GetRecord
(
const
OU
String
&
rRecName
,
sal_Bool
bCont
);
void
GetLabItem
(
SwLabItem
&
rItem
);
SwLabRecs
&
Recs
()
{
return
*
pRecs
;
}
...
...
@@ -72,8 +72,8 @@ public:
const
std
::
vector
<
OUString
>
&
Makes
()
const
{
return
aMakes
;
}
Printer
*
GetPrt
();
inline
void
ReplaceGroup
(
const
String
&
rMake
);
void
UpdateGroup
(
const
String
&
rMake
)
{
_ReplaceGroup
(
rMake
);}
inline
void
ReplaceGroup
(
const
OU
String
&
rMake
);
void
UpdateGroup
(
const
OU
String
&
rMake
)
{
_ReplaceGroup
(
rMake
);}
static
void
UpdateFieldInformation
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
xModel
,
const
SwLabItem
&
rItem
);
const
OUString
&
GetBusinessCardStr
()
const
{
return
m_sBusinessCardDlg
;}
...
...
@@ -82,7 +82,7 @@ public:
};
inline
void
SwLabDlg
::
ReplaceGroup
(
const
String
&
rMake
)
inline
void
SwLabDlg
::
ReplaceGroup
(
const
OU
String
&
rMake
)
{
if
(
rMake
!=
aLstGroup
)
_ReplaceGroup
(
rMake
);
...
...
sw/source/ui/inc/langhelper.hxx
Dosyayı görüntüle @
60d7c4b9
...
...
@@ -32,9 +32,9 @@ namespace SwLangHelper
extern
sal_uInt16
GetLanguageStatus
(
OutlinerView
*
pOLV
,
SfxItemSet
&
rSet
);
extern
bool
SetLanguageStatus
(
OutlinerView
*
pOLV
,
SfxRequest
&
rReq
,
SwView
&
rView
,
SwWrtShell
&
rSh
);
extern
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
const
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
extern
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
const
OU
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
// extern void SetLanguage( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
extern
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
OutlinerView
*
pOLV
,
ESelection
aSelection
,
const
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
extern
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
OutlinerView
*
pOLV
,
ESelection
aSelection
,
const
OU
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
extern
void
SetLanguage_None
(
SwWrtShell
&
rWrtSh
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
// extern void SetLanguage_None( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet );
extern
void
SetLanguage_None
(
SwWrtShell
&
rWrtSh
,
OutlinerView
*
pOLV
,
ESelection
aSelection
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
);
...
...
@@ -47,8 +47,8 @@ namespace SwLangHelper
// EditView
extern
void
SelectPara
(
EditView
&
rEditView
,
const
ESelection
&
rCurSel
);
extern
String
GetTextForLanguageGuessing
(
EditEngine
*
rEditEngine
,
ESelection
aDocSelection
);
extern
String
GetTextForLanguageGuessing
(
SwWrtShell
&
rSh
);
extern
OU
String
GetTextForLanguageGuessing
(
EditEngine
*
rEditEngine
,
ESelection
aDocSelection
);
extern
OU
String
GetTextForLanguageGuessing
(
SwWrtShell
&
rSh
);
extern
LanguageType
GetLanguage
(
SfxItemSet
aSet
,
sal_uInt16
nLangWhichId
);
extern
LanguageType
GetLanguage
(
SwWrtShell
&
rSh
,
sal_uInt16
nLangWhichId
);
...
...
sw/source/ui/shells/langhelper.cxx
Dosyayı görüntüle @
60d7c4b9
...
...
@@ -230,12 +230,12 @@ namespace SwLangHelper
}
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
const
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
)
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
const
OU
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
)
{
SetLanguage
(
rWrtSh
,
0
,
ESelection
(),
rLangText
,
bIsForSelection
,
rCoreSet
);
}
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
OutlinerView
*
pOLV
,
ESelection
aSelection
,
const
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
)
void
SetLanguage
(
SwWrtShell
&
rWrtSh
,
OutlinerView
*
pOLV
,
ESelection
aSelection
,
const
OU
String
&
rLangText
,
bool
bIsForSelection
,
SfxItemSet
&
rCoreSet
)
{
const
LanguageType
nLang
=
SvtLanguageTable
().
GetType
(
rLangText
);
if
(
nLang
!=
LANGUAGE_DONTKNOW
)
...
...
@@ -546,44 +546,44 @@ namespace SwLangHelper
return
nCurrentLang
;
}
String
GetTextForLanguageGuessing
(
SwWrtShell
&
rSh
)
OU
String
GetTextForLanguageGuessing
(
SwWrtShell
&
rSh
)
{
// string for guessing language
String
aText
;
OU
String
aText
;
SwPaM
*
pCrsr
=
rSh
.
GetCrsr
();
SwTxtNode
*
pNode
=
pCrsr
->
GetNode
()
->
GetTxtNode
();
if
(
pNode
)
{
aText
=
pNode
->
GetTxt
();
if
(
aText
.
Len
()
>
0
)
if
(
!
aText
.
isEmpty
()
)
{
xub_StrLen
nStt
=
0
;
xub_StrLen
nEnd
=
pCrsr
->
GetPoint
()
->
nContent
.
GetIndex
();
// at most 100 chars to the left...
nStt
=
nEnd
>
100
?
nEnd
-
100
:
0
;
// ... and 100 to the right of the cursor position
nEnd
=
aText
.
Len
()
-
nEnd
>
100
?
nEnd
+
100
:
aText
.
Len
();
aText
=
aText
.
C
opy
(
nStt
,
nEnd
-
nStt
);
nEnd
=
aText
.
getLength
()
-
nEnd
>
100
?
nEnd
+
100
:
aText
.
getLength
();
aText
=
aText
.
c
opy
(
nStt
,
nEnd
-
nStt
);
}
}
return
aText
;
}
String
GetTextForLanguageGuessing
(
EditEngine
*
rEditEngine
,
ESelection
aDocSelection
)
OU
String
GetTextForLanguageGuessing
(
EditEngine
*
rEditEngine
,
ESelection
aDocSelection
)
{
// string for guessing language
String
aText
;
OU
String
aText
;
aText
=
rEditEngine
->
GetText
(
aDocSelection
);
if
(
aText
.
Len
()
>
0
)
if
(
!
aText
.
isEmpty
()
)
{
xub_StrLen
nStt
=
0
;
xub_StrLen
nEnd
=
aDocSelection
.
nEndPos
;
// at most 100 chars to the left...
nStt
=
nEnd
>
100
?
nEnd
-
100
:
0
;
// ... and 100 to the right of the cursor position
nEnd
=
aText
.
Len
()
-
nEnd
>
100
?
nEnd
+
100
:
aText
.
Len
();
aText
=
aText
.
C
opy
(
nStt
,
nEnd
-
nStt
);
nEnd
=
aText
.
getLength
()
-
nEnd
>
100
?
nEnd
+
100
:
aText
.
getLength
();
aText
=
aText
.
c
opy
(
nStt
,
nEnd
-
nStt
);
}
return
aText
;
...
...
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