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
3351ebde
Kaydet (Commit)
3351ebde
authored
Mar 29, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OUString: remove temporaries and repeated expressions
Change-Id: I1d86be40c4bde4e8fb51c430c6416165655c055c
üst
b50155ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
37 deletions
+23
-37
column.cxx
sw/source/ui/frmdlg/column.cxx
+23
-37
No files found.
sw/source/ui/frmdlg/column.cxx
Dosyayı görüntüle @
3351ebde
...
@@ -193,9 +193,8 @@ SwColumnDlg::SwColumnDlg(Window* pParent, SwWrtShell& rSh)
...
@@ -193,9 +193,8 @@ SwColumnDlg::SwColumnDlg(Window* pParent, SwWrtShell& rSh)
const
sal_Int32
nPagePos
=
m_pApplyToLB
->
GetEntryPos
(
(
void
*
)
LISTBOX_PAGE
);
const
sal_Int32
nPagePos
=
m_pApplyToLB
->
GetEntryPos
(
(
void
*
)
LISTBOX_PAGE
);
if
(
pPageSet
&&
pPageDesc
)
if
(
pPageSet
&&
pPageDesc
)
{
{
OUString
sPageStr
=
m_pApplyToLB
->
GetEntry
(
nPagePos
);
const
OUString
sPageStr
=
m_pApplyToLB
->
GetEntry
(
nPagePos
)
+
pPageDesc
->
GetName
(
);
m_pApplyToLB
->
RemoveEntry
(
nPagePos
);
m_pApplyToLB
->
RemoveEntry
(
nPagePos
);
sPageStr
+=
pPageDesc
->
GetName
();
m_pApplyToLB
->
InsertEntry
(
sPageStr
,
nPagePos
);
m_pApplyToLB
->
InsertEntry
(
sPageStr
,
nPagePos
);
m_pApplyToLB
->
SetEntryData
(
nPagePos
,
(
void
*
)
LISTBOX_PAGE
);
m_pApplyToLB
->
SetEntryData
(
nPagePos
,
(
void
*
)
LISTBOX_PAGE
);
}
}
...
@@ -915,41 +914,28 @@ void SwColumnPage::UpdateCols()
...
@@ -915,41 +914,28 @@ void SwColumnPage::UpdateCols()
void
SwColumnPage
::
SetLabels
(
sal_uInt16
nVis
)
void
SwColumnPage
::
SetLabels
(
sal_uInt16
nVis
)
{
{
OUString
sLbl
(
'~'
);
const
OUString
sLbl
(
'~'
);
OUString
sLbl2
(
OUString
::
number
(
nVis
+
1
));
const
OUString
sLbl1
(
OUString
::
number
(
nVis
+
1
));
OUString
tmp1
(
sLbl2
);
m_pLbl1
->
SetText
(
sLbl1
+
sLbl
);
sLbl2
=
sLbl2
.
replaceAt
(
sLbl2
.
getLength
()
-
1
,
0
,
sLbl
);
m_pLbl1
->
SetText
(
sLbl2
);
const
OUString
sLbl2
(
OUString
::
number
(
nVis
+
2
));
m_pLbl2
->
SetText
(
sLbl2
+
sLbl
);
sLbl2
=
OUString
::
number
(
nVis
+
2
);
OUString
tmp2
(
sLbl2
);
const
OUString
sLbl3
(
OUString
::
number
(
nVis
+
3
));
sLbl2
=
sLbl2
.
replaceAt
(
sLbl2
.
getLength
()
-
1
,
0
,
sLbl
);
m_pLbl3
->
SetText
(
sLbl3
+
sLbl
);
m_pLbl2
->
SetText
(
sLbl2
);
const
OUString
sColumnWidth
=
SW_RESSTR
(
STR_ACCESS_COLUMN_WIDTH
)
;
sLbl2
=
OUString
::
number
(
nVis
+
3
);
aEd1
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
sLbl1
));
OUString
tmp3
(
sLbl2
);
aEd2
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
sLbl2
));
sLbl2
=
sLbl2
.
replaceAt
(
sLbl2
.
getLength
()
-
1
,
0
,
sLbl
);
aEd3
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
sLbl3
));
m_pLbl3
->
SetText
(
sLbl2
);
OUString
sColumnWidth
=
SW_RESSTR
(
STR_ACCESS_COLUMN_WIDTH
)
;
const
OUString
sDist
=
SW_RESSTR
(
STR_ACCESS_PAGESETUP_SPACING
)
;
aEd1
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
tmp1
));
aDistEd1
.
SetAccessibleName
(
sDist
.
replaceFirst
(
"%1"
,
sLbl1
).
replaceFirst
(
"%2"
,
sLbl2
));
sColumnWidth
=
SW_RESSTR
(
STR_ACCESS_COLUMN_WIDTH
)
;
aEd2
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
tmp2
));
aDistEd2
.
SetAccessibleName
(
sDist
.
replaceFirst
(
"%1"
,
sLbl2
).
replaceFirst
(
"%2"
,
sLbl3
));
sColumnWidth
=
SW_RESSTR
(
STR_ACCESS_COLUMN_WIDTH
)
;
aEd3
.
SetAccessibleName
(
sColumnWidth
.
replaceFirst
(
"%1"
,
tmp3
));
OUString
sDist
=
SW_RESSTR
(
STR_ACCESS_PAGESETUP_SPACING
)
;
OUString
sDist1
=
sDist
;
sDist1
=
sDist1
.
replaceFirst
(
"%1"
,
tmp1
);
sDist1
=
sDist1
.
replaceFirst
(
"%2"
,
tmp2
);
aDistEd1
.
SetAccessibleName
(
sDist1
);
OUString
sDist2
=
sDist
;
sDist2
=
sDist2
.
replaceFirst
(
"%1"
,
tmp2
);
sDist2
=
sDist2
.
replaceFirst
(
"%2"
,
tmp3
);
aDistEd2
.
SetAccessibleName
(
sDist2
);
}
}
/*------------------------------------------------------------------------
/*------------------------------------------------------------------------
...
...
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