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
82b5ded6
Kaydet (Commit)
82b5ded6
authored
Mar 18, 2014
tarafından
gdm.manmeet
Kaydeden (comit)
Jan Holesovsky
Mar 19, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#64290 ui:count selected rows and columns
Change-Id: Ie6443fd9b1ac6332b4937c4b6b5d565cca1fe612
üst
5b3c9314
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
1 deletion
+61
-1
globstr.hrc
sc/inc/globstr.hrc
+3
-1
sc.hrc
sc/inc/sc.hrc
+1
-0
cellsh.sdi
sc/sdi/cellsh.sdi
+1
-0
scalc.sdi
sc/sdi/scalc.sdi
+26
-0
globstr.src
sc/source/ui/src/globstr.src
+4
-0
cellsh.cxx
sc/source/ui/view/cellsh.cxx
+20
-0
preview.cxx
sc/source/ui/view/preview.cxx
+1
-0
tabview3.cxx
sc/source/ui/view/tabview3.cxx
+3
-0
viewfun2.cxx
sc/source/ui/view/viewfun2.cxx
+1
-0
statusbar.xml
sc/uiconfig/scalc/statusbar/statusbar.xml
+1
-0
No files found.
sc/inc/globstr.hrc
Dosyayı görüntüle @
82b5ded6
...
...
@@ -687,7 +687,9 @@
#define STR_CTRLCLICKHYPERLINK 526
#define STR_CLICKHYPERLINK 527
#define SC_GLOBSTR_STR_COUNT 528 /**< the count of permanently resident strings */
#define STR_ROWCOL_SELCOUNT 528
#define SC_GLOBSTR_STR_COUNT 529 /**< the count of permanently resident strings */
#endif
...
...
sc/inc/sc.hrc
Dosyayı görüntüle @
82b5ded6
...
...
@@ -242,6 +242,7 @@
#define SC_HINT_DOC_SAVED (SC_MESSAGE_START + 35)
#define SC_HINT_FORCESETTAB (SC_MESSAGE_START + 36)
#define SID_ENTER_STRING (SC_MESSAGE_START + 37)
#define SID_ROWCOL_SELCOUNT (SC_MESSAGE_START + 38)
// messages for opening dialogs:
#define SID_OPENDLG_CONSOLIDATE (SC_MESSAGE_START + 50)
...
...
sc/sdi/cellsh.sdi
Dosyayı görüntüle @
82b5ded6
...
...
@@ -404,6 +404,7 @@ interface CellMovement
SID_SELECTALL [ ExecMethod = Execute; StateMethod = GetState; ]
SID_STATUS_SUM [ ExecMethod = Execute; StateMethod = GetState; ]
SID_STATUS_DOCPOS [ ExecMethod = Execute; StateMethod = GetState; ]
SID_ROWCOL_SELCOUNT [ ExecMethod = Execute; StateMethod = GetState; ]
SID_STATUS_SELMODE [ ExecMethod = Execute; StateMethod = GetState; ]
SID_STATUS_SELMODE_ERG [ ExecMethod = Execute; ]
SID_STATUS_SELMODE_ERW [ ExecMethod = Execute; ]
...
...
sc/sdi/scalc.sdi
Dosyayı görüntüle @
82b5ded6
...
...
@@ -7003,6 +7003,32 @@ SfxStringItem StatusDocPos SID_STATUS_DOCPOS
GroupId = GID_VIEW;
]
SfxStringItem RowColSelCount SID_ROWCOL_SELCOUNT
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
Readonly = TRUE,
/* config: */
AccelConfig = FALSE,
MenuConfig = FALSE,
StatusBarConfig = TRUE,
ToolBoxConfig = FALSE,
GroupId = GID_VIEW;
]
SfxStringItem StatusFunction SID_STATUS_SUM
...
...
sc/source/ui/src/globstr.src
Dosyayı görüntüle @
82b5ded6
...
...
@@ -585,6 +585,10 @@ Resource RID_GLOBSTR
{
Text [ en-US ] = "Sheet" ;
};
String STR_ROWCOL_SELCOUNT
{
Text [ en-US ] = "Selected $1 rows, $2 columns";
};
String STR_COLUMN
{
Text [ en-US ] = "Column" ;
...
...
sc/source/ui/view/cellsh.cxx
Dosyayı görüntüle @
82b5ded6
...
...
@@ -679,6 +679,26 @@ void ScCellShell::GetState(SfxItemSet &rSet)
}
break
;
case
SID_ROWCOL_SELCOUNT
:
{
ScRange
aMarkRange
;
GetViewData
()
->
GetSimpleArea
(
aMarkRange
);
SCCOL
nCol1
,
nCol2
;
SCROW
nRow1
,
nRow2
;
nCol1
=
aMarkRange
.
aStart
.
Col
();
nRow1
=
aMarkRange
.
aStart
.
Row
();
nCol2
=
aMarkRange
.
aEnd
.
Col
();
nRow2
=
aMarkRange
.
aEnd
.
Row
();
if
(
nCol2
!=
nCol1
||
nRow1
!=
nRow2
)
{
OUString
aStr
=
ScGlobal
::
GetRscString
(
STR_ROWCOL_SELCOUNT
);
aStr
=
aStr
.
replaceAll
(
"$1"
,
OUString
::
number
(
nRow2
-
nRow1
+
1
));
aStr
=
aStr
.
replaceAll
(
"$2"
,
OUString
::
number
(
nCol2
-
nCol1
+
1
));
rSet
.
Put
(
SfxStringItem
(
nWhich
,
aStr
)
);
}
}
break
;
// calculations etc. with date/time/Fail/position&size together
// #i34458# The SfxStringItem belongs only into SID_TABLE_CELL. It no longer has to be
...
...
sc/source/ui/view/preview.cxx
Dosyayı görüntüle @
82b5ded6
...
...
@@ -867,6 +867,7 @@ void ScPreview::StaticInvalidate()
SfxBindings
&
rBindings
=
pViewFrm
->
GetBindings
();
rBindings
.
Invalidate
(
SID_STATUS_DOCPOS
);
rBindings
.
Invalidate
(
SID_ROWCOL_SELCOUNT
);
rBindings
.
Invalidate
(
SID_STATUS_PAGESTYLE
);
rBindings
.
Invalidate
(
SID_PREVIEW_PREVIOUS
);
rBindings
.
Invalidate
(
SID_PREVIEW_NEXT
);
...
...
sc/source/ui/view/tabview3.cxx
Dosyayı görüntüle @
82b5ded6
...
...
@@ -355,6 +355,7 @@ void ScTabView::CellContentChanged()
rBindings
.
Invalidate
(
SID_ATTR_SIZE
);
// -> Fehlermeldungen anzeigen
rBindings
.
Invalidate
(
SID_THESAURUS
);
rBindings
.
Invalidate
(
SID_HYPERLINK_GETLINK
);
rBindings
.
Invalidate
(
SID_ROWCOL_SELCOUNT
);
InvalidateAttribs
();
// Attribut-Updates
...
...
@@ -385,6 +386,7 @@ void ScTabView::SelectionChanged()
rBindings
.
Invalidate
(
FID_SHOW_NOTE
);
rBindings
.
Invalidate
(
FID_HIDE_NOTE
);
rBindings
.
Invalidate
(
SID_DELETE_NOTE
);
rBindings
.
Invalidate
(
SID_ROWCOL_SELCOUNT
);
// Funktionen, die evtl disabled werden muessen
...
...
@@ -1748,6 +1750,7 @@ void ScTabView::SetTabNo( SCTAB nTab, bool bNew, bool bExtendSelection, bool bSa
rBindings
.
Invalidate
(
FID_DEL_MANUALBREAKS
);
rBindings
.
Invalidate
(
FID_RESET_PRINTZOOM
);
rBindings
.
Invalidate
(
SID_STATUS_DOCPOS
);
// Statusbar
rBindings
.
Invalidate
(
SID_ROWCOL_SELCOUNT
);
// Statusbar
rBindings
.
Invalidate
(
SID_STATUS_PAGESTYLE
);
// Statusbar
rBindings
.
Invalidate
(
SID_CURRENTTAB
);
// Navigator
rBindings
.
Invalidate
(
SID_STYLE_FAMILY2
);
// Gestalter
...
...
sc/source/ui/view/viewfun2.cxx
Dosyayı görüntüle @
82b5ded6
...
...
@@ -1874,6 +1874,7 @@ void ScViewFunc::MakeScenario( const OUString& rName, const OUString& rComment,
{
SfxBindings
&
rBindings
=
GetViewData
()
->
GetBindings
();
rBindings
.
Invalidate
(
SID_STATUS_DOCPOS
);
// Statusbar
rBindings
.
Invalidate
(
SID_ROWCOL_SELCOUNT
);
// Statusbar
rBindings
.
Invalidate
(
SID_TABLES_COUNT
);
rBindings
.
Invalidate
(
SID_SELECT_SCENARIO
);
rBindings
.
Invalidate
(
FID_TABLE_SHOW
);
...
...
sc/uiconfig/scalc/statusbar/statusbar.xml
Dosyayı görüntüle @
82b5ded6
...
...
@@ -19,6 +19,7 @@
-->
<statusbar:statusbar
xmlns:statusbar=
"http://openoffice.org/2001/statusbar"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<statusbar:statusbaritem
xlink:href=
".uno:StatusDocPos"
statusbar:align=
"left"
statusbar:autosize=
"true"
statusbar:width=
"58"
/>
<statusbar:statusbaritem
xlink:href=
".uno:RowColSelCount"
statusbar:align=
"left"
statusbar:autosize=
"true"
statusbar:width=
"58"
/>
<statusbar:statusbaritem
xlink:href=
".uno:StatusPageStyle"
statusbar:align=
"left"
statusbar:autosize=
"true"
statusbar:width=
"83"
/>
<statusbar:statusbaritem
xlink:href=
".uno:InsertMode"
statusbar:align=
"center"
statusbar:width=
"55"
/>
<statusbar:statusbaritem
xlink:href=
".uno:StatusSelectionMode"
statusbar:align=
"center"
statusbar:ownerdraw=
"true"
statusbar:width=
"16"
/>
...
...
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