LibreOffice Module sc (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at .
18 */
19#pragma once
21#include <com/sun/star/frame/XModel.hpp>
22#include <ooo/vba/excel/XWorkbook.hpp>
26typedef cppu::ImplInheritanceHelper< VbaDocumentBase, ov::excel::XWorkbook > ScVbaWorkbook_BASE;
30 static css::uno::Sequence< sal_Int32 > ColorData;
31 static bool setFilterPropsFromFormat( sal_Int32 nFormat, css::uno::Sequence< css::beans::PropertyValue >& rProps );
32 void init();
35 ScVbaWorkbook( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,
36 css::uno::Reference< css::frame::XModel > const & xModel );
37 ScVbaWorkbook( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
39 // Attributes
40 virtual sal_Bool SAL_CALL getProtectStructure() override;
41 virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL getActiveSheet() override;
42 virtual sal_Bool SAL_CALL getPrecisionAsDisplayed() override;
43 virtual void SAL_CALL setPrecisionAsDisplayed( sal_Bool _precisionAsDisplayed ) override;
44 virtual OUString SAL_CALL getAuthor() override;
45 virtual void SAL_CALL setAuthor( const OUString& _author ) override;
47 // Methods
48 virtual css::uno::Any SAL_CALL Worksheets( const css::uno::Any& aIndex ) override;
49 virtual css::uno::Any SAL_CALL Sheets( const css::uno::Any& aIndex ) override;
50 virtual css::uno::Any SAL_CALL Windows( const css::uno::Any& aIndex ) override;
51 virtual void SAL_CALL Activate() override;
52 virtual void SAL_CALL Protect( const css::uno::Any & aPassword ) override;
53 virtual void SAL_CALL SaveAs( const css::uno::Any& FileName, const css::uno::Any& FileFormat, const css::uno::Any& Password, const css::uno::Any& WriteResPassword, const css::uno::Any& ReadOnlyRecommended, const css::uno::Any& CreateBackup, const css::uno::Any& AccessMode, const css::uno::Any& ConflictResolution, const css::uno::Any& AddToMru, const css::uno::Any& TextCodepage, const css::uno::Any& TextVisualLayout, const css::uno::Any& Local ) override;
54 virtual css::uno::Any SAL_CALL Names( const css::uno::Any& aIndex ) override;
56 virtual css::uno::Any SAL_CALL Styles( const css::uno::Any& Item ) override;
57 virtual void SAL_CALL ResetColors( ) override;
58 virtual css::uno::Any SAL_CALL Colors( const css::uno::Any& Index ) override;
59 virtual ::sal_Int32 SAL_CALL getFileFormat( ) override;
60 virtual void SAL_CALL SaveCopyAs( const OUString& Filename ) override;
61 virtual void SAL_CALL ExportAsFixedFormat( const css::uno::Any& Type, const css::uno::Any& FileName, const css::uno::Any& Quality,
62 const css::uno::Any& IncludeDocProperties, const css::uno::Any& IgnorePrintAreas, const css::uno::Any& From,
63 const css::uno::Any& To, const css::uno::Any& OpenAfterPublish, const css::uno::Any& FixedFormatExtClassPtr) override;
65 // code name
66 virtual OUString SAL_CALL getCodeName() override;
68 // XHelperInterface
69 virtual OUString getServiceImplName() override;
70 virtual css::uno::Sequence<OUString> getServiceNames() override;
72 // XUnoTunnel
73 virtual ::sal_Int64 SAL_CALL getSomething(const css::uno::Sequence<sal_Int8 >& rId ) override;
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
ScVbaWorkbook(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
virtual css::uno::Any SAL_CALL Windows(const css::uno::Any &aIndex) override
virtual OUString SAL_CALL getCodeName() override
virtual ::sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rId) override
virtual css::uno::Any SAL_CALL Sheets(const css::uno::Any &aIndex) override
virtual OUString SAL_CALL getAuthor() override
virtual void SAL_CALL setAuthor(const OUString &_author) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual css::uno::Any SAL_CALL Worksheets(const css::uno::Any &aIndex) override
virtual void SAL_CALL ExportAsFixedFormat(const css::uno::Any &Type, const css::uno::Any &FileName, const css::uno::Any &Quality, const css::uno::Any &IncludeDocProperties, const css::uno::Any &IgnorePrintAreas, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &OpenAfterPublish, const css::uno::Any &FixedFormatExtClassPtr) override
virtual void SAL_CALL ResetColors() override
Definition: vbaworkbook.cxx:55
virtual void SAL_CALL setPrecisionAsDisplayed(sal_Bool _precisionAsDisplayed) override
virtual void SAL_CALL Protect(const css::uno::Any &aPassword) override
virtual sal_Bool SAL_CALL getPrecisionAsDisplayed() override
virtual css::uno::Any SAL_CALL Styles(const css::uno::Any &Item) override
virtual OUString getServiceImplName() override
virtual css::uno::Any SAL_CALL Names(const css::uno::Any &aIndex) override
virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL getActiveSheet() override
virtual void SAL_CALL Activate() override
virtual sal_Bool SAL_CALL getProtectStructure() override
static css::uno::Sequence< sal_Int32 > ColorData
Definition: vbaworkbook.hxx:30
static bool setFilterPropsFromFormat(sal_Int32 nFormat, css::uno::Sequence< css::beans::PropertyValue > &rProps)
Definition: vbaworkbook.cxx:81
virtual ::sal_Int32 SAL_CALL getFileFormat() override
virtual void SAL_CALL SaveAs(const css::uno::Any &FileName, const css::uno::Any &FileFormat, const css::uno::Any &Password, const css::uno::Any &WriteResPassword, const css::uno::Any &ReadOnlyRecommended, const css::uno::Any &CreateBackup, const css::uno::Any &AccessMode, const css::uno::Any &ConflictResolution, const css::uno::Any &AddToMru, const css::uno::Any &TextCodepage, const css::uno::Any &TextVisualLayout, const css::uno::Any &Local) override
ScVbaWorkbook(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::frame::XModel > const &xModel)
virtual void SAL_CALL SaveCopyAs(const OUString &Filename) override
virtual css::uno::Any SAL_CALL Colors(const css::uno::Any &Index) override
Definition: vbaworkbook.cxx:67
unsigned char sal_Bool
cppu::ImplInheritanceHelper< VbaDocumentBase, ov::excel::XWorkbook > ScVbaWorkbook_BASE
Definition: vbaworkbook.hxx:26