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
cb715a83
Kaydet (Commit)
cb715a83
authored
Eki 12, 2001
tarafından
jp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Task #93129#: use also the new Undo-/Red controler
üst
dc065cd4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
20 deletions
+134
-20
smslots.sdi
starmath/sdi/smslots.sdi
+25
-3
document.cxx
starmath/source/document.cxx
+91
-8
smdll.cxx
starmath/source/smdll.cxx
+13
-7
typemap.cxx
starmath/source/typemap.cxx
+5
-2
No files found.
starmath/sdi/smslots.sdi
Dosyayı görüntüle @
cb715a83
...
...
@@ -5,8 +5,8 @@
#*
#* Beschreibung Starmath IDL-File
#*
#* Letzte Aenderung $Author:
tl $ $Date: 2001-05-02 16:58:48
$
#* $Revision: 1.
2
$
#* Letzte Aenderung $Author:
jp $ $Date: 2001-10-12 15:57:24
$
#* $Revision: 1.
3
$
#*
#* $Logfile: T:/starmath/sdi/smslots.sdv $
#*
...
...
@@ -16,7 +16,7 @@
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/starmath/sdi/smslots.sdi,v 1.
2 2001-05-02 16:58:48 tl
Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/starmath/sdi/smslots.sdi,v 1.
3 2001-10-12 15:57:24 jp
Exp $
*************************************************************************/
...
...
@@ -153,6 +153,25 @@ interface FormulaDocument : OfficeDocument
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_UNDO //idlpp ole : no , status : no
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_REDO //idlpp ole : no , status : no
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_GETUNDOSTRINGS //idlpp ole : no , status : no
[
StateMethod = GetState ;
]
SID_GETREDOSTRINGS //idlpp ole : no , status : no
[
StateMethod = GetState ;
]
}
shell SmDocShell : SfxObjectShell
...
...
@@ -318,6 +337,9 @@ shell SmViewShell : SfxViewShell
Source Code Control System - History
$Log: not supported by cvs2svn $
Revision 1.2 2001/05/02 16:58:48 tl
Math configuration and Symbol/SymbolSet/SymbolSetManager
Revision 1.1.1.1 2000/09/18 16:57:26 hr
initial import
...
...
starmath/source/document.cxx
Dosyayı görüntüle @
cb715a83
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: document.cxx,v $
*
* $Revision: 1.4
1
$
* $Revision: 1.4
2
$
*
* last change: $Author:
tl $ $Date: 2001-10-08 11:47:58
$
* last change: $Author:
jp $ $Date: 2001-10-12 15:54:37
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -135,6 +135,9 @@
#ifndef _SFXREQUEST_HXX //autogen
#include <sfx2/request.hxx>
#endif
#ifndef _SFXVIEWFRM_HXX
#include <sfx2/viewfrm.hxx>
#endif
#ifndef _SFXECODE_HXX //autogen
#include <svtools/sfxecode.hxx>
#endif
...
...
@@ -165,6 +168,9 @@
#ifndef _SVX_FHGTITEM_HXX
#include <svx/fhgtitem.hxx>
#endif
#ifndef _SFXSLSTITM_HXX
#include <svtools/slstitm.hxx>
#endif
#ifndef STARMATH_HRC
#include <starmath.hrc>
...
...
@@ -1422,6 +1428,38 @@ void SmDocShell::Execute(SfxRequest& rReq)
}
}
break
;
case
SID_UNDO
:
case
SID_REDO
:
{
SfxUndoManager
*
pUndoMgr
=
GetUndoManager
();
if
(
pUndoMgr
)
{
USHORT
nId
=
rReq
.
GetSlot
(),
nCnt
=
1
;
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
const
SfxPoolItem
*
pItem
;
if
(
pArgs
&&
SFX_ITEM_SET
==
pArgs
->
GetItemState
(
nId
,
FALSE
,
&
pItem
))
nCnt
=
((
SfxUInt16Item
*
)
pItem
)
->
GetValue
();
BOOL
(
SfxUndoManager
::
*
fnDo
)(
USHORT
);
sal_uInt16
nCount
;
if
(
SID_UNDO
==
rReq
.
GetSlot
()
)
{
nCount
=
pUndoMgr
->
GetUndoActionCount
();
fnDo
=
&
SfxUndoManager
::
Undo
;
}
else
{
nCount
=
pUndoMgr
->
GetRedoActionCount
();
fnDo
=
&
SfxUndoManager
::
Redo
;
}
for
(
;
nCnt
&&
nCount
;
--
nCnt
,
--
nCount
)
(
pUndoMgr
->*
fnDo
)(
0
);
}
}
break
;
}
}
...
...
@@ -1435,10 +1473,8 @@ void SmDocShell::GetState(SfxItemSet &rSet)
switch
(
nWh
)
{
case
SID_TEXTMODE
:
{
rSet
.
Put
(
SfxBoolItem
(
SID_TEXTMODE
,
GetFormat
().
IsTextmode
()));
break
;
}
case
SID_DOCTEMPLATE
:
rSet
.
DisableItem
(
SID_DOCTEMPLATE
);
...
...
@@ -1450,8 +1486,8 @@ void SmDocShell::GetState(SfxItemSet &rSet)
BOOL
bRedraw
=
pp
->
GetConfig
()
->
IsAutoRedraw
();
rSet
.
Put
(
SfxBoolItem
(
SID_AUTO_REDRAW
,
bRedraw
));
break
;
}
break
;
case
SID_TOOLBOX
:
{
...
...
@@ -1466,17 +1502,17 @@ void SmDocShell::GetState(SfxItemSet &rSet)
bState
=
TRUE
;
}
rSet
.
Put
(
SfxBoolItem
(
SID_TOOLBOX
,
bState
));
break
;
}
break
;
case
SID_MODIFYSTATUS
:
{
char
cMod
=
' '
;
sal_Unicode
cMod
=
' '
;
if
(
IsModified
())
cMod
=
'*'
;
rSet
.
Put
(
SfxStringItem
(
SID_MODIFYSTATUS
,
String
(
cMod
)));
break
;
}
break
;
case
SID_TEXT
:
rSet
.
Put
(
SfxStringItem
(
SID_TEXT
,
GetText
()));
...
...
@@ -1485,6 +1521,53 @@ void SmDocShell::GetState(SfxItemSet &rSet)
case
SID_GRAPHIC
:
rSet
.
Put
(
SfxInt16Item
(
SID_GRAPHIC
,
nModifyCount
));
break
;
case
SID_UNDO
:
case
SID_REDO
:
{
SfxViewFrame
*
pFrm
=
SfxViewFrame
::
GetFirst
(
this
);
if
(
pFrm
)
pFrm
->
GetSlotState
(
nWh
,
NULL
,
&
rSet
);
else
rSet
.
DisableItem
(
nWh
);
}
break
;
case
SID_GETUNDOSTRINGS
:
case
SID_GETREDOSTRINGS
:
{
SfxUndoManager
*
pUndoMgr
=
GetUndoManager
();
if
(
pUndoMgr
)
{
UniString
(
SfxUndoManager
::
*
fnGetComment
)(
USHORT
)
const
;
sal_uInt16
nCount
;
if
(
SID_GETUNDOSTRINGS
==
nWh
)
{
nCount
=
pUndoMgr
->
GetUndoActionCount
();
fnGetComment
=
&
SfxUndoManager
::
GetUndoActionComment
;
}
else
{
nCount
=
pUndoMgr
->
GetRedoActionCount
();
fnGetComment
=
&
SfxUndoManager
::
GetRedoActionComment
;
}
if
(
nCount
)
{
String
sList
;
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
++
n
)
(
sList
+=
(
pUndoMgr
->*
fnGetComment
)(
n
)
)
+=
'\n'
;
SfxStringListItem
aItem
(
nWh
);
aItem
.
SetString
(
sList
);
rSet
.
Put
(
aItem
);
}
}
else
rSet
.
DisableItem
(
nWh
);
}
break
;
}
}
}
...
...
starmath/source/smdll.cxx
Dosyayı görüntüle @
cb715a83
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: smdll.cxx,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change: $Author:
tl $ $Date: 2001-05-30 07:52:2
7 $
* last change: $Author:
jp $ $Date: 2001-10-12 15:54:3
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -76,21 +76,25 @@
#ifndef _SFX_OBJFAC_HXX
#include <sfx2/docfac.hxx>
#endif
#ifndef _SVX_LBOXCTRL_HXX_
#include <svx/lboxctrl.hxx>
#endif
#ifndef _SMDLL_HXX
#include
"smdll.hxx"
#include
<smdll.hxx>
#endif
#ifndef DOCUMENT_HXX
#include
"document.hxx"
#include
<document.hxx>
#endif
#ifndef TOOLBOX_HXX
#include
"toolbox.hxx"
#include
<toolbox.hxx>
#endif
#ifndef VIEW_HXX
#include
"view.hxx"
#include
<view.hxx>
#endif
#ifndef _STARMATH_HRC
#include
"starmath.hrc"
#include
<starmath.hrc>
#endif
BOOL
SmDLL
::
bInitialized
=
FALSE
;
...
...
@@ -144,6 +148,8 @@ void SmDLL::Init()
SvxZoomStatusBarControl
::
RegisterControl
(
SID_ATTR_ZOOM
,
pp
);
SvxModifyControl
::
RegisterControl
(
SID_TEXTSTATUS
,
pp
);
SvxUndoRedoControl
::
RegisterControl
(
SID_UNDO
,
pp
);
SvxUndoRedoControl
::
RegisterControl
(
SID_REDO
,
pp
);
SmToolBoxWrapper
::
RegisterChildWindow
(
TRUE
);
SmCmdBoxWrapper
::
RegisterChildWindow
(
TRUE
);
...
...
starmath/source/typemap.cxx
Dosyayı görüntüle @
cb715a83
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: typemap.cxx,v $
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
* last change: $Author:
hr $ $Date: 2000-09-18 16:57:2
7 $
* last change: $Author:
jp $ $Date: 2001-10-12 15:54:3
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -182,6 +182,9 @@
#ifndef _SVX_ZOOMITEM_HXX //autogen
#include <svx/zoomitem.hxx>
#endif
#ifndef _SFXSLSTITM_HXX
#include <svtools/slstitm.hxx>
#endif
#define SFX_TYPEMAP
#include "smslots.hxx"
...
...
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