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
d9a749ac
Kaydet (Commit)
d9a749ac
authored
Agu 30, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
debug code isn't going to cut it
üst
db0a8b38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
+0
-40
macro.hxx
sfx2/inc/macro.hxx
+0
-2
macro.cxx
sfx2/source/control/macro.cxx
+0
-38
No files found.
sfx2/inc/macro.hxx
Dosyayı görüntüle @
d9a749ac
...
@@ -171,8 +171,6 @@ public:
...
@@ -171,8 +171,6 @@ public:
void
Record
(
SfxMacroStatement
*
pStatement
);
void
Record
(
SfxMacroStatement
*
pStatement
);
void
Replace
(
SfxMacroStatement
*
pStatement
);
void
Replace
(
SfxMacroStatement
*
pStatement
);
void
Remove
();
void
Remove
();
String
GenerateSource
()
const
;
};
};
#endif
#endif
...
...
sfx2/source/control/macro.cxx
Dosyayı görüntüle @
d9a749ac
...
@@ -390,17 +390,9 @@ SfxMacro::~SfxMacro()
...
@@ -390,17 +390,9 @@ SfxMacro::~SfxMacro()
Virtual Destructor of the SfxMacro class. This should be overloaded in
Virtual Destructor of the SfxMacro class. This should be overloaded in
the derived classes to save the recorded source in the mode
the derived classes to save the recorded source in the mode
SFX_MACRO_RECORDINGABSOLUTE and SFX_MACRO_RECORDINGRELATIVE.
SFX_MACRO_RECORDINGABSOLUTE and SFX_MACRO_RECORDINGRELATIVE.
[Cross-reference]
<SfxMacro::GenerateSource()const>
*/
*/
{
{
#if OSL_DEBUG_LEVEL > 1
SvFileStream
aStream
(
String
::
CreateFromAscii
(
"file:///f:/testmacro.bas"
),
STREAM_STD_READWRITE
|
STREAM_TRUNC
);
aStream
<<
ByteString
(
GenerateSource
(),
RTL_TEXTENCODING_UTF8
).
GetBuffer
();
#endif
delete
pImp
;
delete
pImp
;
}
}
...
@@ -525,34 +517,4 @@ void SfxMacro::Remove()
...
@@ -525,34 +517,4 @@ void SfxMacro::Remove()
pImp
->
aList
.
Remove
(
pImp
->
aList
.
Count
()
-
1
);
pImp
->
aList
.
Remove
(
pImp
->
aList
.
Count
()
-
1
);
}
}
//--------------------------------------------------------------------
String
SfxMacro
::
GenerateSource
()
const
/* [Description]
This function generates BASIC source code that contains the statements, but
does not contain the header ('Sub X') and Footer ('End Sub') from recorded
<SfxMacroStatement> since the construction of the instance until the time
of calling this method.
[Cross-reference]
<SfxMacro::Record(SfxMacroStatement*)>
<SfxMacro::Repeat(SfxMacroStatement*)>
*/
{
DBG_ASSERT
(
pImp
->
eMode
!=
SFX_MACRO_EXISTING
,
"invalid call to non-recording SfxMacro"
);
String
aSource
;
for
(
sal_uInt16
n
=
0
;
n
<
pImp
->
aList
.
Count
();
++
n
)
{
aSource
+=
pImp
->
aList
.
GetObject
(
n
)
->
GetStatement
();
if
(
(
n
+
1
)
<
pImp
->
aList
.
Count
()
)
aSource
+=
DEFINE_CONST_UNICODE
(
"
\n
"
);
}
return
aSource
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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