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
c66a0e9c
Kaydet (Commit)
c66a0e9c
authored
Agu 05, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove obsolete SjJSbxObject cruft
Change-Id: Ieb10d3bd8fc23650156906292bf3d0757565e2af
üst
92a2862e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
48 deletions
+2
-48
macitem.hxx
include/svl/macitem.hxx
+1
-27
macitem.cxx
svl/source/items/macitem.cxx
+1
-21
No files found.
include/svl/macitem.hxx
Dosyayı görüntüle @
c66a0e9c
...
@@ -47,23 +47,10 @@ enum ScriptType
...
@@ -47,23 +47,10 @@ enum ScriptType
EXTENDED_STYPE
EXTENDED_STYPE
};
};
// Basisklasse fuer SjJSbxObject mit virtuellem Destruktor
class
SjJSbxObjectBase
{
public
:
virtual
~
SjJSbxObjectBase
();
virtual
SjJSbxObjectBase
*
Clone
(
void
);
//virtual SjJSbxObjectBase& operator=( const SjJSbxObjectBase& rBase );
};
class
SjJSbxObject
;
class
SVL_DLLPUBLIC
SvxMacro
class
SVL_DLLPUBLIC
SvxMacro
{
{
OUString
aMacName
;
OUString
aMacName
;
OUString
aLibName
;
OUString
aLibName
;
// Fuer JavaScript muss ein Function-Objekt gehalten werden
SjJSbxObjectBase
*
pFunctionObject
;
ScriptType
eType
;
ScriptType
eType
;
public
:
public
:
...
@@ -73,9 +60,6 @@ public:
...
@@ -73,9 +60,6 @@ public:
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLibName
,
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLibName
,
ScriptType
eType
);
// = STARBASIC entfernt
ScriptType
eType
);
// = STARBASIC entfernt
SvxMacro
(
SjJSbxObjectBase
*
_pFunctionObject
,
const
OUString
&
rSource
);
~
SvxMacro
();
// noetig fuer pFunctionObject
const
OUString
&
GetLibName
()
const
{
return
aLibName
;
}
const
OUString
&
GetLibName
()
const
{
return
aLibName
;
}
const
OUString
&
GetMacName
()
const
{
return
aMacName
;
}
const
OUString
&
GetMacName
()
const
{
return
aMacName
;
}
OUString
GetLanguage
()
const
;
OUString
GetLanguage
()
const
;
...
@@ -84,22 +68,12 @@ public:
...
@@ -84,22 +68,12 @@ public:
bool
HasMacro
()
const
{
return
!
aMacName
.
isEmpty
();
}
bool
HasMacro
()
const
{
return
!
aMacName
.
isEmpty
();
}
#ifdef SOLAR_JAVA
// JavaScript-Function-Objekt holen
// ACHTUNG: Implementation in SJ, Source/JScript/sjimpl.cxx
SjJSbxObjectBase
*
GetFunctionObject
(
SjJSbxObject
*
pParent
);
#endif
SvxMacro
&
operator
=
(
const
SvxMacro
&
rBase
);
SvxMacro
&
operator
=
(
const
SvxMacro
&
rBase
);
};
};
inline
SvxMacro
::
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLibName
,
inline
SvxMacro
::
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLibName
,
ScriptType
eTyp
)
ScriptType
eTyp
)
:
aMacName
(
rMacName
),
aLibName
(
rLibName
),
pFunctionObject
(
NULL
),
eType
(
eTyp
)
:
aMacName
(
rMacName
),
aLibName
(
rLibName
),
eType
(
eTyp
)
{}
inline
SvxMacro
::
SvxMacro
(
SjJSbxObjectBase
*
_pFunctionObject
,
const
OUString
&
rSource
)
:
aMacName
(
rSource
),
pFunctionObject
(
_pFunctionObject
),
eType
(
JAVASCRIPT
)
{}
{}
//Macro Table, zerstoert die Pointer im DTor!
//Macro Table, zerstoert die Pointer im DTor!
...
...
svl/source/items/macitem.cxx
Dosyayı görüntüle @
c66a0e9c
...
@@ -31,19 +31,9 @@ TYPEINIT1_FACTORY(SvxMacroItem, SfxPoolItem, new SvxMacroItem(0));
...
@@ -31,19 +31,9 @@ TYPEINIT1_FACTORY(SvxMacroItem, SfxPoolItem, new SvxMacroItem(0));
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
SjJSbxObjectBase
::~
SjJSbxObjectBase
()
{
}
SjJSbxObjectBase
*
SjJSbxObjectBase
::
Clone
(
void
)
{
return
NULL
;
}
SvxMacro
::
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLanguage
)
SvxMacro
::
SvxMacro
(
const
OUString
&
rMacName
,
const
OUString
&
rLanguage
)
:
aMacName
(
rMacName
),
aLibName
(
rLanguage
),
:
aMacName
(
rMacName
),
aLibName
(
rLanguage
),
pFunctionObject
(
NULL
),
eType
(
EXTENDED_STYPE
)
eType
(
EXTENDED_STYPE
)
{
{
if
(
rLanguage
==
SVX_MACRO_LANGUAGE_STARBASIC
)
if
(
rLanguage
==
SVX_MACRO_LANGUAGE_STARBASIC
)
eType
=
STARBASIC
;
eType
=
STARBASIC
;
...
@@ -51,12 +41,6 @@ SvxMacro::SvxMacro( const OUString &rMacName, const OUString &rLanguage)
...
@@ -51,12 +41,6 @@ SvxMacro::SvxMacro( const OUString &rMacName, const OUString &rLanguage)
eType
=
JAVASCRIPT
;
eType
=
JAVASCRIPT
;
}
}
SvxMacro
::~
SvxMacro
()
{
delete
pFunctionObject
;
}
OUString
SvxMacro
::
GetLanguage
()
const
OUString
SvxMacro
::
GetLanguage
()
const
{
{
if
(
eType
==
STARBASIC
)
if
(
eType
==
STARBASIC
)
...
@@ -75,16 +59,12 @@ OUString SvxMacro::GetLanguage()const
...
@@ -75,16 +59,12 @@ OUString SvxMacro::GetLanguage()const
return
aLibName
;
return
aLibName
;
}
}
SvxMacro
&
SvxMacro
::
operator
=
(
const
SvxMacro
&
rBase
)
SvxMacro
&
SvxMacro
::
operator
=
(
const
SvxMacro
&
rBase
)
{
{
if
(
this
!=
&
rBase
)
if
(
this
!=
&
rBase
)
{
{
aMacName
=
rBase
.
aMacName
;
aMacName
=
rBase
.
aMacName
;
aLibName
=
rBase
.
aLibName
;
aLibName
=
rBase
.
aLibName
;
delete
pFunctionObject
;
pFunctionObject
=
rBase
.
pFunctionObject
?
rBase
.
pFunctionObject
->
Clone
()
:
NULL
;
eType
=
rBase
.
eType
;
eType
=
rBase
.
eType
;
}
}
return
*
this
;
return
*
this
;
...
...
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