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
cef4c601
Kaydet (Commit)
cef4c601
authored
May 27, 2002
tarafından
Mathias Bauer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#98405#: more debugging code for macro recording
üst
443ee322
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
appuno.cxx
sfx2/source/appl/appuno.cxx
+0
-0
request.cxx
sfx2/source/control/request.cxx
+22
-12
No files found.
sfx2/source/appl/appuno.cxx
Dosyayı görüntüle @
cef4c601
This diff is collapsed.
Click to expand it.
sfx2/source/control/request.cxx
Dosyayı görüntüle @
cef4c601
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
// class SfxRequest
// class SfxRequest
//
//
// (C) 1996 - 2000 StarDivision GmbH, Hamburg, Germany
// (C) 1996 - 2000 StarDivision GmbH, Hamburg, Germany
// $Author: mba $ $Date: 2002-0
4-22 16:56:18 $ $Revision: 1.5
$
// $Author: mba $ $Date: 2002-0
5-27 13:52:19 $ $Revision: 1.6
$
// $Logfile: T:/sfx2/source/control/request.cxv $ $Workfile: REQUEST.CXX $
// $Logfile: T:/sfx2/source/control/request.cxv $ $Workfile: REQUEST.CXX $
//------------------------------------------------------------------*/
//------------------------------------------------------------------*/
...
@@ -62,7 +62,6 @@ struct SfxRequest_Impl: public SfxListener
...
@@ -62,7 +62,6 @@ struct SfxRequest_Impl: public SfxListener
{
{
SfxRequest
*
pAnti
;
// Owner wegen sterbendem Pool
SfxRequest
*
pAnti
;
// Owner wegen sterbendem Pool
SfxMacro
*
pMacro
;
// falls != 0, soll hierdrin recorded werden
String
aTarget
;
// ggf. von App gesetztes Zielobjekt
String
aTarget
;
// ggf. von App gesetztes Zielobjekt
SfxItemPool
*
pPool
;
// ItemSet mit diesem Pool bauen
SfxItemPool
*
pPool
;
// ItemSet mit diesem Pool bauen
SfxPoolItem
*
pRetVal
;
// R"uckgabewert geh"ort sich selbst
SfxPoolItem
*
pRetVal
;
// R"uckgabewert geh"ort sich selbst
...
@@ -148,7 +147,6 @@ SfxRequest::SfxRequest
...
@@ -148,7 +147,6 @@ SfxRequest::SfxRequest
pImp
->
bDone
=
FALSE
;
pImp
->
bDone
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
pMacro
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pSlot
=
0
;
pImp
->
pSlot
=
0
;
...
@@ -190,7 +188,6 @@ SfxRequest::SfxRequest
...
@@ -190,7 +188,6 @@ SfxRequest::SfxRequest
pImp
->
bDone
=
FALSE
;
pImp
->
bDone
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
SetPool
(
&
rShell
.
GetPool
()
);
pImp
->
SetPool
(
&
rShell
.
GetPool
()
);
pImp
->
pMacro
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pShell
=
0
;
pImp
->
nCallMode
=
SFX_CALLMODE_SYNCHRON
;
pImp
->
nCallMode
=
SFX_CALLMODE_SYNCHRON
;
...
@@ -222,7 +219,6 @@ SfxRequest::SfxRequest
...
@@ -222,7 +219,6 @@ SfxRequest::SfxRequest
pImp
->
bDone
=
FALSE
;
pImp
->
bDone
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
SetPool
(
&
rPool
);
pImp
->
SetPool
(
&
rPool
);
pImp
->
pMacro
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pSlot
=
0
;
pImp
->
pSlot
=
0
;
...
@@ -250,7 +246,6 @@ SfxRequest::SfxRequest
...
@@ -250,7 +246,6 @@ SfxRequest::SfxRequest
pImp
->
bDone
=
FALSE
;
pImp
->
bDone
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
bIgnored
=
FALSE
;
pImp
->
SetPool
(
rSfxArgs
.
GetPool
()
);
pImp
->
SetPool
(
rSfxArgs
.
GetPool
()
);
pImp
->
pMacro
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pRetVal
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pShell
=
0
;
pImp
->
pSlot
=
0
;
pImp
->
pSlot
=
0
;
...
@@ -625,7 +620,7 @@ void SfxRequest::Done_Impl
...
@@ -625,7 +620,7 @@ void SfxRequest::Done_Impl
/* [Beschreibung]
/* [Beschreibung]
Interne Methode zum als 'done' markieren des SfxRequest und zum Auswerten
Interne Methode zum als 'done' markieren des SfxRequest und zum Auswerten
der Parameter in 'pSet' falls aufgezeichnet wird
(pMacro gesetzt ist)
.
der Parameter in 'pSet' falls aufgezeichnet wird.
*/
*/
{
{
...
@@ -648,13 +643,18 @@ void SfxRequest::Done_Impl
...
@@ -648,13 +643,18 @@ void SfxRequest::Done_Impl
// record-f"ahig?
// record-f"ahig?
// neues Recorden verwendet UnoName!
// neues Recorden verwendet UnoName!
// DBG_ASSERT( pImp->pSlot->pName, "recording not exported slot" );
if
(
!
pImp
->
pSlot
->
pUnoName
)
// if ( !pImp->pSlot->pName ) // Hosentr"ger und G"urtel
{
// return;
ByteString
aStr
(
"Recording not exported slot: "
);
aStr
+=
ByteString
::
CreateFromInt32
(
pImp
->
pSlot
->
GetSlotId
()
);
DBG_ERROR
(
aStr
.
GetBuffer
()
);
}
if
(
!
pImp
->
pSlot
->
pUnoName
)
// Hosentr"ger und G"urtel
return
;
// "ofters ben"otigte Werte
// "ofters ben"otigte Werte
SfxItemPool
&
rPool
=
pImp
->
pShell
->
GetPool
();
SfxItemPool
&
rPool
=
pImp
->
pShell
->
GetPool
();
SfxMapUnit
eUserMetric
;
// = SFX_APP()->GetOptions().GetUserMetric();
// Property-Slot?
// Property-Slot?
if
(
!
pImp
->
pSlot
->
IsMode
(
SFX_SLOT_METHOD
)
)
if
(
!
pImp
->
pSlot
->
IsMode
(
SFX_SLOT_METHOD
)
)
...
@@ -663,7 +663,14 @@ void SfxRequest::Done_Impl
...
@@ -663,7 +663,14 @@ void SfxRequest::Done_Impl
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
USHORT
nWhich
=
rPool
.
GetWhich
(
pImp
->
pSlot
->
GetSlotId
());
USHORT
nWhich
=
rPool
.
GetWhich
(
pImp
->
pSlot
->
GetSlotId
());
SfxItemState
eState
=
pSet
?
pSet
->
GetItemState
(
nWhich
,
FALSE
,
&
pItem
)
:
SFX_ITEM_UNKNOWN
;
SfxItemState
eState
=
pSet
?
pSet
->
GetItemState
(
nWhich
,
FALSE
,
&
pItem
)
:
SFX_ITEM_UNKNOWN
;
DBG_ASSERT
(
eState
==
SFX_ITEM_SET
,
"recording property not available"
);
#ifdef DBG_UTIL
if
(
SFX_ITEM_SET
!=
eState
)
{
ByteString
aStr
(
"Recording property not available: "
);
aStr
+=
ByteString
::
CreateFromInt32
(
pImp
->
pSlot
->
GetSlotId
()
);
DBG_ERROR
(
aStr
.
GetBuffer
()
);
}
#endif
uno
::
Sequence
<
beans
::
PropertyValue
>
aSeq
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aSeq
;
if
(
eState
==
SFX_ITEM_SET
)
if
(
eState
==
SFX_ITEM_SET
)
TransformItems
(
pImp
->
pSlot
->
GetSlotId
(),
*
pSet
,
aSeq
,
pImp
->
pSlot
);
TransformItems
(
pImp
->
pSlot
->
GetSlotId
(),
*
pSet
,
aSeq
,
pImp
->
pSlot
);
...
@@ -861,6 +868,9 @@ void SfxRequest::SetTarget( const String &rTarget )
...
@@ -861,6 +868,9 @@ void SfxRequest::SetTarget( const String &rTarget )
/*------------------------------------------------------------------------
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
$Log: not supported by cvs2svn $
Revision 1.5 2002/04/22 16:56:18 mba
#98405#: new macro recording functionality
Revision 1.4 2002/04/11 08:05:49 mba
Revision 1.4 2002/04/11 08:05:49 mba
#98405#: support macro recorder
#98405#: support macro recorder
...
...
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