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
39f7e818
Kaydet (Commit)
39f7e818
authored
Eyl 20, 2010
tarafından
Frank Schoenheit [fs]
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
dba33j: #i114627# do not let the SubComponentManager manage reports executed for data display
üst
2fc62ba1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
AppController.cxx
dbaccess/source/ui/app/AppController.cxx
+14
-5
AppControllerGen.cxx
dbaccess/source/ui/app/AppControllerGen.cxx
+2
-1
No files found.
dbaccess/source/ui/app/AppController.cxx
Dosyayı görüntüle @
39f7e818
...
...
@@ -1789,7 +1789,7 @@ bool OApplicationController::onEntryDoubleClick( SvTreeListBox& _rTree )
}
catch
(
const
Exception
&
)
{
OSL_ENSURE
(
0
,
"Could not open element!"
);
DBG_UNHANDLED_EXCEPTION
(
);
}
}
return
false
;
// not handled
...
...
@@ -1842,12 +1842,20 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const
getContainer
()
->
showPreview
(
NULL
);
}
bool
isStandaloneDocument
=
false
;
switch
(
_eType
)
{
case
E_REPORT
:
if
(
_eOpenMode
!=
E_OPEN_DESIGN
)
{
// reports which are opened in a mode other than design are no sub components of our application
// component, but standalone documents.
isStandaloneDocument
=
true
;
}
// NO break!
case
E_FORM
:
{
if
(
!
m_pSubComponentManager
->
activateSubFrame
(
_sName
,
_eType
,
_eOpenMode
,
xRet
)
)
if
(
isStandaloneDocument
||
!
m_pSubComponentManager
->
activateSubFrame
(
_sName
,
_eType
,
_eOpenMode
,
xRet
)
)
{
::
std
::
auto_ptr
<
OLinkedDocumentsAccess
>
aHelper
=
getDocumentsAccess
(
_eType
);
if
(
!
aHelper
->
isConnected
()
)
...
...
@@ -1856,7 +1864,8 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const
Reference
<
XComponent
>
xDefinition
;
xRet
=
aHelper
->
open
(
_sName
,
xDefinition
,
_eOpenMode
,
_rAdditionalArguments
);
onDocumentOpened
(
_sName
,
_eType
,
_eOpenMode
,
xRet
,
xDefinition
);
if
(
!
isStandaloneDocument
)
onDocumentOpened
(
_sName
,
_eType
,
_eOpenMode
,
xRet
,
xDefinition
);
}
}
break
;
...
...
@@ -2781,9 +2790,9 @@ void OApplicationController::containerFound( const Reference< XContainer >& _xCo
_xContainer
->
addContainerListener
(
this
);
}
}
catch
(
Exception
)
catch
(
const
Exception
&
)
{
OSL_ENSURE
(
0
,
"Could not listener on the container!"
);
DBG_UNHANDLED_EXCEPTION
(
);
}
}
// -----------------------------------------------------------------------------
...
...
dbaccess/source/ui/app/AppControllerGen.cxx
Dosyayı görüntüle @
39f7e818
...
...
@@ -676,7 +676,8 @@ void OApplicationController::onDocumentOpened( const ::rtl::OUString& _rName, co
try
{
m_pSubComponentManager
->
onSubComponentOpened
(
_rName
,
_nType
,
_eMode
,
_rxDefinition
.
is
()
?
_rxDefinition
:
_xDocument
);
OSL_ENSURE
(
_xDocument
.
is
(),
"OApplicationController::onDocumentOpened: is there any *valid* scenario where this fails?"
);
m_pSubComponentManager
->
onSubComponentOpened
(
_rName
,
_nType
,
_eMode
,
_xDocument
.
is
()
?
_xDocument
:
_rxDefinition
);
if
(
_rxDefinition
.
is
()
)
{
...
...
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