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
3a5d8b30
Kaydet (Commit)
3a5d8b30
authored
Ara 21, 2001
tarafından
Frank Schönheit
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#95867# reverted the previous fix - concept has changed
üst
7d8ebb70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
134 deletions
+8
-134
fmmodel.cxx
svx/source/form/fmmodel.cxx
+2
-19
fmpage.cxx
svx/source/form/fmpage.cxx
+2
-31
fmpgeimp.cxx
svx/source/form/fmpgeimp.cxx
+2
-78
fmpgeimp.hxx
svx/source/inc/fmpgeimp.hxx
+2
-6
No files found.
svx/source/form/fmmodel.cxx
Dosyayı görüntüle @
3a5d8b30
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: fmmodel.cxx,v $
* $RCSfile: fmmodel.cxx,v $
*
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
*
* last change: $Author: fs $ $Date: 2001-12-
18 14:12:11
$
* last change: $Author: fs $ $Date: 2001-12-
21 11:42:57
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -418,23 +418,6 @@ void FmFormModel::SetAutoControlFocus( sal_Bool _bAutoControlFocus )
...
@@ -418,23 +418,6 @@ void FmFormModel::SetAutoControlFocus( sal_Bool _bAutoControlFocus )
#endif
#endif
}
}
//------------------------------------------------------------------------
sal_Bool
FmFormModel
::
containsActiveCode
(
const
String
&
_rScriptType
)
const
{
sal_Bool
bContainsActiveCode
=
sal_False
;
// loop through all our pages
USHORT
nPageCount
=
GetPageCount
(
);
for
(
USHORT
i
=
0
;
i
<
nPageCount
&&
!
bContainsActiveCode
;
++
i
)
{
const
FmFormPage
*
pPage
=
PTR_CAST
(
FmFormPage
,
GetPage
(
i
)
);
if
(
pPage
&&
pPage
->
containsActiveCode
(
_rScriptType
)
)
bContainsActiveCode
=
sal_True
;
}
return
bContainsActiveCode
;
}
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void
FmFormModel
::
SetObjectShell
(
SfxObjectShell
*
pShell
)
void
FmFormModel
::
SetObjectShell
(
SfxObjectShell
*
pShell
)
{
{
...
...
svx/source/form/fmpage.cxx
Dosyayı görüntüle @
3a5d8b30
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: fmpage.cxx,v $
* $RCSfile: fmpage.cxx,v $
*
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
*
* last change: $Author: fs $ $Date: 2001-12-
18 14:12:11
$
* last change: $Author: fs $ $Date: 2001-12-
21 11:42:57
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -151,9 +151,6 @@
...
@@ -151,9 +151,6 @@
using
namespace
::
svxform
;
using
namespace
::
svxform
;
#endif
#endif
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
container
;
#ifndef _COMPHELPER_PROPERTY_HXX_
#ifndef _COMPHELPER_PROPERTY_HXX_
#include <comphelper/property.hxx>
#include <comphelper/property.hxx>
#endif
#endif
...
@@ -322,32 +319,6 @@ const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContai
...
@@ -322,32 +319,6 @@ const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContai
#endif
#endif
}
}
//------------------------------------------------------------------
sal_Bool
FmFormPage
::
containsActiveCode
(
const
String
&
_rScriptType
)
const
{
sal_Bool
bContains
=
sal_False
;
try
{
Reference
<
XIndexAccess
>
xForms
(
pImpl
->
getForms
(),
UNO_QUERY
);
DBG_ASSERT
(
xForms
.
is
(),
"FmFormPage::containsActiveCode: invalid forms collection!"
);
if
(
xForms
.
is
()
)
{
bContains
=
pImpl
->
containsActiveCode
(
xForms
,
_rScriptType
);
}
else
// be on the safe side: If we can't check this, assume there is active (potential dangerous) code
bContains
=
pImpl
->
getForms
().
is
();
// (if and only if there is a forms collection)
}
catch
(
const
Exception
&
)
{
DBG_ERROR
(
"FmFormPage::containsActiveCode: caught an exception!"
);
// be on the safe side: If we can't check this, assume there is active (potential dangerous) code
bContains
=
sal_True
;
}
return
bContains
;
}
//------------------------------------------------------------------
//------------------------------------------------------------------
sal_Bool
FmFormPage
::
RequestHelp
(
Window
*
pWindow
,
SdrView
*
pView
,
sal_Bool
FmFormPage
::
RequestHelp
(
Window
*
pWindow
,
SdrView
*
pView
,
const
HelpEvent
&
rEvt
)
const
HelpEvent
&
rEvt
)
...
...
svx/source/form/fmpgeimp.cxx
Dosyayı görüntüle @
3a5d8b30
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: fmpgeimp.cxx,v $
* $RCSfile: fmpgeimp.cxx,v $
*
*
* $Revision: 1.1
3
$
* $Revision: 1.1
4
$
*
*
* last change: $Author: fs $ $Date: 2001-12-
18 14:13:58
$
* last change: $Author: fs $ $Date: 2001-12-
21 11:42:57
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -94,9 +94,6 @@
...
@@ -94,9 +94,6 @@
#ifndef _COM_SUN_STAR_IO_XMARKABLESTREAM_HPP_
#ifndef _COM_SUN_STAR_IO_XMARKABLESTREAM_HPP_
#include <com/sun/star/io/XMarkableStream.hpp>
#include <com/sun/star/io/XMarkableStream.hpp>
#endif
#endif
#ifndef _COM_SUN_STAR_SCRIPT_XEVENTATTACHERMANAGER_HPP_
#include <com/sun/star/script/XEventAttacherManager.hpp>
#endif
#ifndef _SFX_OBJSH_HXX
#ifndef _SFX_OBJSH_HXX
#include <sfx2/objsh.hxx>
#include <sfx2/objsh.hxx>
...
@@ -168,8 +165,6 @@
...
@@ -168,8 +165,6 @@
#include <connectivity/dbtools.hxx>
#include <connectivity/dbtools.hxx>
#endif
#endif
#include <algorithm>
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
...
@@ -177,7 +172,6 @@ using namespace ::com::sun::star::sdb;
...
@@ -177,7 +172,6 @@ using namespace ::com::sun::star::sdb;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
form
;
using
namespace
::
com
::
sun
::
star
::
form
;
using
namespace
::
com
::
sun
::
star
::
script
;
using
namespace
::
svxform
;
using
namespace
::
svxform
;
DBG_NAME
(
FmFormPageImpl
);
DBG_NAME
(
FmFormPageImpl
);
...
@@ -808,76 +802,6 @@ void FmFormPageImpl::read(const Reference< ::com::sun::star::io::XObjectInputStr
...
@@ -808,76 +802,6 @@ void FmFormPageImpl::read(const Reference< ::com::sun::star::io::XObjectInputStr
}
}
}
}
//------------------------------------------------------------------------------
namespace
svxform
{
struct
CheckEventType
:
public
::
std
::
unary_function
<
ScriptEventDescriptor
,
sal_Bool
>
{
const
::
rtl
::
OUString
&
m_rScriptType
;
CheckEventType
(
const
::
rtl
::
OUString
&
_rScriptType
)
:
m_rScriptType
(
_rScriptType
)
{
}
sal_Bool
operator
()
(
const
ScriptEventDescriptor
&
_rDescriptor
)
{
return
_rDescriptor
.
ScriptType
.
equals
(
m_rScriptType
);
}
};
}
//------------------------------------------------------------------------------
sal_Bool
FmFormPageImpl
::
containsActiveCode
(
const
Reference
<
XIndexAccess
>&
_rxContainer
,
const
String
&
_rScriptType
)
const
{
DBG_ASSERT
(
_rxContainer
.
is
(),
"FmFormPageImpl::containsActiveCode: invalid container!"
);
if
(
!
_rxContainer
.
is
()
)
return
sal_False
;
sal_Bool
bContains
=
sal_False
;
try
{
::
rtl
::
OUString
sScriptType
(
_rScriptType
);
// faster usage ....
sal_Int32
nChildCount
=
_rxContainer
->
getCount
();
// first, try if the container itself handles script events for it's children
Reference
<
XEventAttacherManager
>
xEvents
(
_rxContainer
,
UNO_QUERY
);
if
(
xEvents
.
is
()
)
{
// yes, it does -> check them
for
(
sal_Int32
i
=
0
;
(
i
<
nChildCount
)
&&
!
bContains
;
++
i
)
{
Sequence
<
ScriptEventDescriptor
>
aScripts
=
xEvents
->
getScriptEvents
(
i
);
const
ScriptEventDescriptor
*
pEvents
=
aScripts
.
getConstArray
();
const
ScriptEventDescriptor
*
pEventsEnd
=
pEvents
+
aScripts
.
getLength
();
const
ScriptEventDescriptor
*
pFirstFound
=
::
std
::
find_if
(
pEvents
,
pEventsEnd
,
CheckEventType
(
sScriptType
)
);
if
(
pFirstFound
!=
pEventsEnd
)
bContains
=
sal_True
;
}
}
if
(
!
bContains
)
{
// step down only if not already found such a script ....
Reference
<
XIndexAccess
>
xChild
;
for
(
sal_Int32
i
=
0
;
(
i
<
nChildCount
)
&&
!
bContains
;
++
i
)
{
if
(
_rxContainer
->
getByIndex
(
i
)
>>=
xChild
)
{
// the child is a container, again
bContains
=
containsActiveCode
(
xChild
,
_rScriptType
);
}
}
}
}
catch
(
const
Exception
&
)
{
DBG_ERROR
(
"FmFormPageImpl::containsActiveCode: caught an exception!"
);
// be on the safe side: If we can't check this, assume there is active (potential dangerous) code
bContains
=
sal_True
;
}
return
bContains
;
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
FmFormPageImpl
::
fillList
(
FmObjectList
&
rList
,
const
SdrObjList
&
rObjList
,
sal_Bool
bConnected
)
const
void
FmFormPageImpl
::
fillList
(
FmObjectList
&
rList
,
const
SdrObjList
&
rObjList
,
sal_Bool
bConnected
)
const
{
{
...
...
svx/source/inc/fmpgeimp.hxx
Dosyayı görüntüle @
3a5d8b30
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: fmpgeimp.hxx,v $
* $RCSfile: fmpgeimp.hxx,v $
*
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
*
* last change: $Author: fs $ $Date: 2001-12-
18 14:09:5
4 $
* last change: $Author: fs $ $Date: 2001-12-
21 11:41:1
4 $
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -128,10 +128,6 @@ protected:
...
@@ -128,10 +128,6 @@ protected:
void
Init
();
void
Init
();
sal_Bool
containsActiveCode
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XIndexAccess
>&
_rxContainer
,
const
String
&
_rScriptType
)
const
;
public
:
public
:
// nur wichtig fuer den DesignMode
// nur wichtig fuer den DesignMode
void
setCurForm
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
form
::
XForm
>
xForm
);
void
setCurForm
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
form
::
XForm
>
xForm
);
...
...
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