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
b0eeac20
Kaydet (Commit)
b0eeac20
authored
Eki 07, 2010
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
warn if people havn't source the environment after linkoo
üst
14675eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
app.cxx
desktop/source/app/app.cxx
+19
-7
No files found.
desktop/source/app/app.cxx
Dosyayı görüntüle @
b0eeac20
...
...
@@ -1490,6 +1490,24 @@ void Desktop::AppEvent( const ApplicationEvent& rAppEvent )
HandleAppEvent
(
rAppEvent
);
}
namespace
{
void
SetDocumentExtendedStyle
(
const
Reference
<
::
com
::
sun
::
star
::
awt
::
XWindow
>
&
xContainerWindow
)
{
// set the WB_EXT_DOCUMENT style. Normally, this is done by the TaskCreator service when a "_blank"
// frame/window is created. Since we do not use the TaskCreator here, we need to mimic its behavior,
// otherwise documents loaded into this frame will later on miss functionality depending on the style.
Window
*
pContainerWindow
=
VCLUnoHelper
::
GetWindow
(
xContainerWindow
);
OSL_ENSURE
(
pContainerWindow
,
"Desktop::Main: no implementation access to the frame's container window!"
);
if
(
!
pContainerWindow
)
{
fprintf
(
stderr
,
"Error: It very much looks as if you have used 'linkoo' (or bin/ooinstall -l)
\n
"
"but have then forgotten to source 'ooenv' into your shell before running !
\n
"
"to save a crash, we will exit now with an error - please '. ./ooenv' first.
\n
"
);
exit
(
1
);
}
pContainerWindow
->
SetExtendedStyle
(
pContainerWindow
->
GetExtendedStyle
()
|
WB_EXT_DOCUMENT
);
}
}
void
Desktop
::
Main
()
{
RTL_LOGFILE_CONTEXT
(
aLog
,
"desktop (cd100003) ::Desktop::Main"
);
...
...
@@ -1770,13 +1788,7 @@ void Desktop::Main()
xContainerWindow
=
xBackingFrame
->
getContainerWindow
();
if
(
xContainerWindow
.
is
())
{
// set the WB_EXT_DOCUMENT style. Normally, this is done by the TaskCreator service when a "_blank"
// frame/window is created. Since we do not use the TaskCreator here, we need to mimic its behavior,
// otherwise documents loaded into this frame will later on miss functionality depending on the style.
Window
*
pContainerWindow
=
VCLUnoHelper
::
GetWindow
(
xContainerWindow
);
OSL_ENSURE
(
pContainerWindow
,
"Desktop::Main: no implementation access to the frame's container window!"
);
pContainerWindow
->
SetExtendedStyle
(
pContainerWindow
->
GetExtendedStyle
()
|
WB_EXT_DOCUMENT
);
SetDocumentExtendedStyle
(
xContainerWindow
);
SetSplashScreenProgress
(
75
);
Sequence
<
Any
>
lArgs
(
1
);
lArgs
[
0
]
<<=
xContainerWindow
;
...
...
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