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
4dc9dc6a
Kaydet (Commit)
4dc9dc6a
authored
Kas 12, 2013
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
datastreams: add toolbar buttons to stop / resume streaming
Change-Id: I601a4a174ea191c799623d29ed6eb229f9f372da
üst
2c945010
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
108 additions
and
27 deletions
+108
-27
CalcCommands.xcu
...g/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+16
-0
CalcWindowState.xcu
...egistry/data/org/openoffice/Office/UI/CalcWindowState.xcu
+11
-0
image-sort.lst
postprocess/packimages/image-sort.lst
+1
-0
UIConfig_scalc.mk
sc/UIConfig_scalc.mk
+1
-0
sc.hrc
sc/inc/sc.hrc
+2
-0
cellsh.sdi
sc/sdi/cellsh.sdi
+2
-0
scalc.sdi
sc/sdi/scalc.sdi
+46
-0
datastreams.hxx
sc/source/ui/inc/datastreams.hxx
+2
-2
datastreams.cxx
sc/source/ui/miscdlgs/datastreams.cxx
+5
-0
datastreamsdlg.cxx
sc/source/ui/miscdlgs/datastreamsdlg.cxx
+0
-10
cellsh2.cxx
sc/source/ui/view/cellsh2.cxx
+8
-0
datastreams.xml
sc/uiconfig/scalc/toolbar/datastreams.xml
+14
-0
datastreams.ui
sc/uiconfig/scalc/ui/datastreams.ui
+0
-15
No files found.
officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -1293,6 +1293,22 @@
<value
xml:lang=
"en-US"
>
Strea~ms...
</value>
</prop>
</node>
<node
oor:name=
".uno:DataStreamsPlay"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Resume streaming
</value>
</prop>
<prop
oor:name=
"Properties"
oor:type=
"xs:int"
>
<value>
1
</value>
</prop>
</node>
<node
oor:name=
".uno:DataStreamsStop"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Stop streaming
</value>
</prop>
<prop
oor:name=
"Properties"
oor:type=
"xs:int"
>
<value>
1
</value>
</prop>
</node>
<node
oor:name=
".uno:ManageXMLSource"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
~XML Source...
</value>
...
...
officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -54,6 +54,17 @@
<value>
true
</value>
</prop>
</node>
<node
oor:name=
"private:resource/toolbar/datastreams"
oor:op=
"replace"
>
<prop
oor:name=
"Docked"
oor:type=
"xs:boolean"
>
<value>
false
</value>
</prop>
<prop
oor:name=
"UIName"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Data Streams
</value>
</prop>
<prop
oor:name=
"Visible"
oor:type=
"xs:boolean"
>
<value>
true
</value>
</prop>
</node>
<node
oor:name=
"private:resource/toolbar/drawobjectbar"
oor:op=
"replace"
>
<prop
oor:name=
"DockPos"
oor:type=
"xs:string"
>
<value>
0,1
</value>
...
...
postprocess/packimages/image-sort.lst
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -103,6 +103,7 @@ modules/scalc/toolbar/arrowshapes.xml
modules/scalc/toolbar/basicshapes.xml
modules/scalc/toolbar/calloutshapes.xml
modules/scalc/toolbar/colorbar.xml
modules/scalc/toolbar/datastreams.xml
modules/scalc/toolbar/drawbar.xml
modules/scalc/toolbar/drawobjectbar.xml
modules/scalc/toolbar/extrusionobjectbar.xml
...
...
sc/UIConfig_scalc.mk
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -29,6 +29,7 @@ $(eval $(call gb_UIConfig_add_toolbarfiles,modules/scalc,\
sc/uiconfig/scalc/toolbar/basicshapes \
sc/uiconfig/scalc/toolbar/calloutshapes \
sc/uiconfig/scalc/toolbar/colorbar \
sc/uiconfig/scalc/toolbar/datastreams \
sc/uiconfig/scalc/toolbar/drawbar \
sc/uiconfig/scalc/toolbar/drawobjectbar \
sc/uiconfig/scalc/toolbar/extrusionobjectbar \
...
...
sc/inc/sc.hrc
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -91,6 +91,8 @@
#define SID_SCFORMULAOPTIONS (SC_VIEW_START + 20)
#define SID_SCDEFAULTSOPTIONS (SC_VIEW_START + 21)
#define SID_DATA_STREAMS_PLAY (SC_VIEW_START + 33)
#define SID_DATA_STREAMS_STOP (SC_VIEW_START + 34)
#define SID_DATA_STREAMS (SC_VIEW_START + 35)
// slot-IDs for attributes
...
...
sc/sdi/cellsh.sdi
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -52,6 +52,8 @@ interface CellSelection
SID_SBA_BRW_INSERT [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_SELECT_DB [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_DATA_STREAMS [ ExecMethod = ExecuteDB; ]
SID_DATA_STREAMS_PLAY [ ExecMethod = ExecuteDB; ]
SID_DATA_STREAMS_STOP [ ExecMethod = ExecuteDB; ]
SID_MANAGE_XML_SOURCE [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_SORT [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_DATA_FORM [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
...
...
sc/sdi/scalc.sdi
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -6148,6 +6148,52 @@ SfxVoidItem DataStreams SID_DATA_STREAMS
GroupId = GID_DATA;
]
SfxVoidItem DataStreamsPlay SID_DATA_STREAMS_PLAY
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_DATA;
]
SfxVoidItem DataStreamsStop SID_DATA_STREAMS_STOP
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_DATA;
]
SfxVoidItem ManageXMLSource SID_MANAGE_XML_SOURCE
(SfxStringItem DbName SID_MANAGE_XML_SOURCE)
[
...
...
sc/source/ui/inc/datastreams.hxx
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -43,13 +43,13 @@ public:
~
DataStreams
();
bool
ImportData
();
void
ShowDialog
(
Window
*
pParent
);
void
Start
();
void
Stop
();
private
:
void
MoveData
();
void
Set
(
const
OUString
&
rUrl
,
bool
bIsScript
,
const
OUString
&
rRange
,
sal_Int32
nLimit
,
MoveEnum
eMove
);
void
Start
();
void
Stop
();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/miscdlgs/datastreams.cxx
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -57,6 +57,7 @@ DataStreams::DataStreams(ScDocShell *pScDocShell):
mpScDocShell
(
pScDocShell
)
,
mpScDocument
(
mpScDocShell
->
GetDocument
())
,
meMove
(
NO_MOVE
)
,
mbRunning
(
false
)
{
mxThread
=
new
datastreams
::
CallerThread
(
this
);
mxThread
->
launch
();
...
...
@@ -73,6 +74,8 @@ DataStreams::~DataStreams()
void
DataStreams
::
Start
()
{
if
(
mbRunning
)
return
;
mbIsUndoEnabled
=
mpScDocument
->
IsUndoEnabled
();
mpScDocument
->
EnableUndo
(
false
);
mbRunning
=
true
;
...
...
@@ -81,6 +84,8 @@ void DataStreams::Start()
void
DataStreams
::
Stop
()
{
if
(
!
mbRunning
)
return
;
mbRunning
=
false
;
mpScDocument
->
EnableUndo
(
mbIsUndoEnabled
);
}
...
...
sc/source/ui/miscdlgs/datastreamsdlg.cxx
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -20,7 +20,6 @@ class DataStreamsDlg : public ModalDialog
SvtURLBox
*
m_pCbUrl
;
PushButton
*
m_pBtnBrowse
;
PushButton
*
m_pBtnStop
;
RadioButton
*
m_pRBDirectData
;
RadioButton
*
m_pRBScriptData
;
RadioButton
*
m_pRBDataDown
;
...
...
@@ -34,7 +33,6 @@ class DataStreamsDlg : public ModalDialog
DECL_LINK
(
UpdateHdl
,
void
*
);
DECL_LINK
(
BrowseHdl
,
void
*
);
DECL_LINK
(
StopHdl
,
void
*
);
void
UpdateEnable
();
...
...
@@ -50,7 +48,6 @@ DataStreamsDlg::DataStreamsDlg(DataStreams *pDataStreams, Window* pParent)
{
get
(
m_pCbUrl
,
"url"
);
get
(
m_pBtnBrowse
,
"browse"
);
get
(
m_pBtnStop
,
"stop"
);
get
(
m_pRBDirectData
,
"directdata"
);
get
(
m_pRBScriptData
,
"scriptdata"
);
get
(
m_pRBDataDown
,
"datadown"
);
...
...
@@ -65,7 +62,6 @@ DataStreamsDlg::DataStreamsDlg(DataStreams *pDataStreams, Window* pParent)
m_pCbUrl
->
SetSelectHdl
(
LINK
(
this
,
DataStreamsDlg
,
UpdateHdl
)
);
m_pEdRange
->
SetModifyHdl
(
LINK
(
this
,
DataStreamsDlg
,
UpdateHdl
)
);
m_pBtnBrowse
->
SetClickHdl
(
LINK
(
this
,
DataStreamsDlg
,
BrowseHdl
)
);
m_pBtnStop
->
SetClickHdl
(
LINK
(
this
,
DataStreamsDlg
,
StopHdl
)
);
UpdateEnable
();
}
...
...
@@ -92,12 +88,6 @@ IMPL_LINK_NOARG(DataStreamsDlg, BrowseHdl)
return
0
;
}
IMPL_LINK_NOARG
(
DataStreamsDlg
,
StopHdl
)
{
mpDataStreams
->
Stop
();
return
0
;
}
IMPL_LINK_NOARG
(
DataStreamsDlg
,
UpdateHdl
)
{
UpdateEnable
();
...
...
sc/source/ui/view/cellsh2.cxx
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -738,6 +738,14 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
pImpl
->
m_pDataStreams
=
new
DataStreams
(
GetViewData
()
->
GetDocShell
());
pImpl
->
m_pDataStreams
->
ShowDialog
(
pTabViewShell
->
GetDialogParent
()
);
break
;
case
SID_DATA_STREAMS_PLAY
:
if
(
pImpl
->
m_pDataStreams
)
pImpl
->
m_pDataStreams
->
Start
();
break
;
case
SID_DATA_STREAMS_STOP
:
if
(
pImpl
->
m_pDataStreams
)
pImpl
->
m_pDataStreams
->
Stop
();
break
;
case
SID_MANAGE_XML_SOURCE
:
ExecuteXMLSourceDialog
();
break
;
...
...
sc/uiconfig/scalc/toolbar/datastreams.xml
0 → 100644
Dosyayı görüntüle @
4dc9dc6a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<toolbar:toolbar
xmlns:toolbar=
"http://openoffice.org/2001/toolbar"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
toolbar:id=
"toolbar"
>
<toolbar:toolbaritem
xlink:href=
".uno:DataStreamsPlay"
/>
<toolbar:toolbarseparator/>
<toolbar:toolbaritem
xlink:href=
".uno:DataStreamsStop"
/>
</toolbar:toolbar>
sc/uiconfig/scalc/ui/datastreams.ui
Dosyayı görüntüle @
4dc9dc6a
...
...
@@ -447,20 +447,6 @@
<property
name=
"position"
>
2
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"stop"
>
<property
name=
"label"
translatable=
"yes"
>
Stop
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
...
...
@@ -475,7 +461,6 @@
<action-widget
response=
"0"
>
ok
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
<action-widget
response=
"0"
>
stop
</action-widget>
</action-widgets>
</object>
<object
class=
"GtkAdjustment"
id=
"adjustment1"
>
...
...
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