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
f1940265
Kaydet (Commit)
f1940265
authored
Eyl 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix windows build
Change-Id: Ibd768bef633de63ad3f7e826eb8044e04c1159ae
üst
cc2c9d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vbaexport.cxx
oox/source/ole/vbaexport.cxx
+5
-4
No files found.
oox/source/ole/vbaexport.cxx
Dosyayı görüntüle @
f1940265
...
@@ -778,10 +778,11 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
...
@@ -778,10 +778,11 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
// start here with the VBA export
// start here with the VBA export
SotStorage
*
pVBAStream
=
pRootStorage
->
OpenSotStorage
(
"VBA"
,
STREAM_READWRITE
);
SotStorage
*
pVBAStream
=
pRootStorage
->
OpenSotStorage
(
"VBA"
,
STREAM_READWRITE
);
SotStorageStream
*
pDirStream
=
pVBAStream
->
OpenSotStream
(
"dir"
,
STREAM_READWRITE
);
SotStorageStream
*
pDirStream
=
pVBAStream
->
OpenSotStream
(
"dir"
,
STREAM_READWRITE
);
SotStorageStream
*
pModuleStream
[
n
];
std
::
vector
<
SotStorageStream
*>
aModuleStreams
;
aModuleStreams
.
reserve
(
n
);
for
(
sal_Int32
i
=
0
;
i
<
n
;
++
i
)
for
(
sal_Int32
i
=
0
;
i
<
n
;
++
i
)
{
{
pModuleStream
[
i
]
=
pVBAStream
->
OpenSotStream
(
aElementNames
[
i
],
STREAM_READWRITE
);
aModuleStreams
.
push_back
(
pVBAStream
->
OpenSotStream
(
aElementNames
[
i
],
STREAM_READWRITE
)
);
}
}
SotStorageStream
*
pVBAProjectStream
=
pVBAStream
->
OpenSotStream
(
"_VBA_PROJECT"
,
STREAM_READWRITE
);
SotStorageStream
*
pVBAProjectStream
=
pVBAStream
->
OpenSotStream
(
"_VBA_PROJECT"
,
STREAM_READWRITE
);
SotStorageStream
*
pPROJECTStream
=
pRootStorage
->
OpenSotStream
(
"PROJECT"
,
STREAM_READWRITE
);
SotStorageStream
*
pPROJECTStream
=
pRootStorage
->
OpenSotStream
(
"PROJECT"
,
STREAM_READWRITE
);
...
@@ -795,7 +796,7 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
...
@@ -795,7 +796,7 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
css
::
uno
::
Any
aCode
=
xNameContainer
->
getByName
(
aElementNames
[
i
]);
css
::
uno
::
Any
aCode
=
xNameContainer
->
getByName
(
aElementNames
[
i
]);
OUString
aSourceCode
;
OUString
aSourceCode
;
aCode
>>=
aSourceCode
;
aCode
>>=
aSourceCode
;
exportModuleStream
(
*
pModuleStream
[
i
],
aSourceCode
,
aElementNames
[
i
]);
exportModuleStream
(
*
aModuleStreams
[
i
],
aSourceCode
,
aElementNames
[
i
]);
}
}
exportVBAProjectStream
(
*
pVBAProjectStream
);
exportVBAProjectStream
(
*
pVBAProjectStream
);
exportPROJECTStream
(
*
pPROJECTStream
,
xNameContainer
,
getProjectName
());
exportPROJECTStream
(
*
pPROJECTStream
,
xNameContainer
,
getProjectName
());
...
@@ -804,7 +805,7 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
...
@@ -804,7 +805,7 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
pVBAProjectStream
->
Commit
();
pVBAProjectStream
->
Commit
();
for
(
sal_Int32
i
=
0
;
i
<
n
;
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
n
;
i
++
)
{
{
pModuleStream
[
i
]
->
Commit
();
aModuleStreams
[
i
]
->
Commit
();
}
}
pDirStream
->
Commit
();
pDirStream
->
Commit
();
pVBAStream
->
Commit
();
pVBAStream
->
Commit
();
...
...
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