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
b15b372c
Kaydet (Commit)
b15b372c
authored
Tem 27, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
structure for vba export
Change-Id: I8094b64185ef8730355841e9b6f9d4ba412568dc
üst
86aebe9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
0 deletions
+86
-0
vbaexport.hxx
include/oox/ole/vbaexport.hxx
+40
-0
Library_oox.mk
oox/Library_oox.mk
+1
-0
vbaexport.cxx
oox/source/ole/vbaexport.cxx
+45
-0
No files found.
include/oox/ole/vbaexport.hxx
0 → 100644
Dosyayı görüntüle @
b15b372c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __INCLUDED_INCLUDE_OOX_OLE_VBAEXPORT_HXX__
#define __INCLUDED_INCLUDE_OOX_OLE_VBAEXPORT_HXX__
#include <com/sun/star/uno/XInterface.hpp>
#include <oox/dllapi.h>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
container
{
class
XNameContainer
;
}
namespace
frame
{
class
XModel
;
}
}
}
}
class
OOX_DLLPUBLIC
VbaExport
{
public
:
VbaExport
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
);
void
exportVBA
();
private
:
css
::
uno
::
Reference
<
css
::
container
::
XNameContainer
>
getBasicLibrary
();
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
mxModel
;
OUString
maProjectName
;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
oox/Library_oox.mk
Dosyayı görüntüle @
b15b372c
...
...
@@ -236,6 +236,7 @@ $(eval $(call gb_Library_add_exception_objects,oox,\
oox/source/ole/oleobjecthelper \
oox/source/ole/olestorage \
oox/source/ole/vbacontrol \
oox/source/ole/vbaexport \
oox/source/ole/vbahelper \
oox/source/ole/vbainputstream \
oox/source/ole/vbamodule \
...
...
oox/source/ole/vbaexport.cxx
0 → 100644
Dosyayı görüntüle @
b15b372c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <oox/ole/vbaexport.hxx>
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include "oox/helper/propertyset.hxx"
#include "oox/token/properties.hxx"
VbaExport
::
VbaExport
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
:
mxModel
(
xModel
)
{
maProjectName
=
"How to get the correct project name?"
;
}
void
VbaExport
::
exportVBA
()
{
// start here with the VBA export
}
css
::
uno
::
Reference
<
css
::
container
::
XNameContainer
>
VbaExport
::
getBasicLibrary
()
{
css
::
uno
::
Reference
<
css
::
container
::
XNameContainer
>
xLibrary
;
try
{
oox
::
PropertySet
aDocProp
(
mxModel
);
css
::
uno
::
Reference
<
css
::
script
::
XLibraryContainer
>
xLibContainer
(
aDocProp
.
getAnyProperty
(
oox
::
PROP_BasicLibraries
),
css
::
uno
::
UNO_QUERY_THROW
);
xLibrary
.
set
(
xLibContainer
->
getByName
(
maProjectName
),
css
::
uno
::
UNO_QUERY_THROW
);
}
catch
(...)
{
}
return
xLibrary
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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