27#include <com/sun/star/beans/XPropertySet.hpp>
28#include <com/sun/star/beans/XIntrospectionAccess.hpp>
29#include <com/sun/star/container/XNamed.hpp>
30#include <com/sun/star/util/XProtectable.hpp>
31#include <com/sun/star/table/XCellRange.hpp>
32#include <com/sun/star/sheet/XSpreadsheetView.hpp>
33#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
34#include <com/sun/star/sheet/XCalculatable.hpp>
35#include <com/sun/star/sheet/XCellRangeAddressable.hpp>
36#include <com/sun/star/sheet/XSheetCellRange.hpp>
37#include <com/sun/star/sheet/XSheetCellCursor.hpp>
38#include <com/sun/star/sheet/XSheetAnnotationsSupplier.hpp>
39#include <com/sun/star/sheet/XUsedAreaCursor.hpp>
40#include <com/sun/star/sheet/XSpreadsheets.hpp>
41#include <com/sun/star/sheet/XSheetOutline.hpp>
42#include <com/sun/star/sheet/XSheetPageBreak.hpp>
43#include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
44#include <com/sun/star/sheet/XNamedRanges.hpp>
45#include <com/sun/star/frame/Desktop.hpp>
46#include <com/sun/star/table/XTableChartsSupplier.hpp>
47#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
48#include <com/sun/star/drawing/XControlShape.hpp>
49#include <com/sun/star/form/XFormsSupplier.hpp>
50#include <ooo/vba/excel/XApplication.hpp>
51#include <ooo/vba/excel/XlEnableSelection.hpp>
52#include <ooo/vba/excel/XlSheetVisibility.hpp>
53#include <ooo/vba/XControlProvider.hpp>
82#define STANDARDWIDTH 2267
83#define STANDARDHEIGHT 427
88static void getNewSpreadsheetName (OUString &aNewName, std::u16string_view aOldName,
const uno::Reference <sheet::XSpreadsheetDocument>& xSpreadDoc )
91 throw lang::IllegalArgumentException(
"getNewSpreadsheetName() xSpreadDoc is null", uno::Reference< uno::XInterface >(), 1 );
92 static const char aUnderScore[] =
"_";
94 aNewName = OUString::Concat(aOldName) + aUnderScore + OUString::number(currentNum) ;
98 aNewName = OUString::Concat(aOldName) + aUnderScore + OUString::number(++currentNum);
102static void removeAllSheets(
const uno::Reference <sheet::XSpreadsheetDocument>& xSpreadDoc,
const OUString& aSheetName)
104 if (!xSpreadDoc.is())
105 throw lang::IllegalArgumentException(
"removeAllSheets() xSpreadDoc is null", uno::Reference< uno::XInterface >(), 1 );
106 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets();
107 uno::Reference <container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY );
112 uno::Reference<container::XNameContainer> xNameContainer(xSheets,uno::UNO_QUERY_THROW);
113 for (sal_Int32
i = xIndex->getCount() -1;
i>= 1;
i--)
115 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(
i), uno::UNO_QUERY);
116 uno::Reference< container::XNamed > xNamed( xSheet, uno::UNO_QUERY_THROW );
117 xNameContainer->removeByName(xNamed->getName());
120 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(0), uno::UNO_QUERY);
121 uno::Reference< container::XNamed > xNamed( xSheet, uno::UNO_QUERY_THROW );
122 xNamed->setName(aSheetName);
125static uno::Reference<frame::XModel>
128 uno::Reference<frame::XModel>
xModel;
131 uno::Reference< uno::XComponentContext > xContext(
134 uno::Reference <frame::XDesktop2 > xComponentLoader = frame::Desktop::create(xContext);
136 uno::Reference<lang::XComponent > xComponent( xComponentLoader->loadComponentFromURL(
137 "private:factory/scalc",
139 uno::Sequence < css::beans::PropertyValue >() ) );
140 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( xComponent, uno::UNO_QUERY_THROW );
142 xModel.set(xSpreadDoc,uno::UNO_QUERY_THROW);
144 catch ( uno::Exception & )
151 uno::Reference< sheet::XSpreadsheet > xSheet,
159 if (
args.getLength() < 3 )
160 throw lang::IllegalArgumentException();
163 args[2] >>= sSheetName;
165 uno::Reference< sheet::XSpreadsheetDocument > xSpreadDoc( mxModel, uno::UNO_QUERY_THROW );
166 uno::Reference< container::XNameAccess > xNameAccess( xSpreadDoc->getSheets(), uno::UNO_QUERY_THROW );
167 mxSheet.set( xNameAccess->getByName( sSheetName ), uno::UNO_QUERY_THROW );
177 return theScVbaWorksheetUnoTunnelId.
getSeq();
180uno::Reference< ov::excel::XWorksheet >
183 uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor =
getSheet()->createCursor( );
184 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW);
194 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
xModel, uno::UNO_QUERY_THROW );
196 uno::Reference <sheet::XSpreadsheets> xSheets( xSpreadDoc->getSheets(), uno::UNO_SET_THROW );
197 uno::Reference <container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY_THROW );
198 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW);
204 return uno::Reference< excel::XWorksheet >(
getUnoDocModule( aCodeName, pShell ), uno::UNO_QUERY_THROW );
207css::uno::Reference< ov::excel::XWorksheet >
210 OUString aCurrSheetName =
getName();
211 ScVbaWorksheet* pDestSheet = excel::getImplFromDocModuleWrapper<ScVbaWorksheet>( xSheet );
213 uno::Reference <sheet::XSpreadsheetDocument> xDestDoc( pDestSheet->
getModel(), uno::UNO_QUERY );
214 uno::Reference <sheet::XSpreadsheetDocument> xSrcDoc(
getModel(), uno::UNO_QUERY );
218 OUString aSheetName = xSheet->getName();
224 aSheetName = aCurrSheetName;
225 if ( bSheetExists && bDestSheetExists )
230 uno::Reference<sheet::XSpreadsheets> xSheets = xDestDoc->getSheets();
234 xSheets->copyByName(aCurrSheetName,aSheetName,nDest);
239 if ( pDestDocShell && pSrcDocShell )
240 pDestDocShell->
TransferTab( *pSrcDocShell, nSrc, nDest,
true,
true );
244 uno::Reference< excel::XApplication > xApplication(
Application(), uno::UNO_QUERY_THROW );
245 uno::Reference< excel::XWorksheet > xNewSheet( xApplication->Worksheets(
uno::Any( aSheetName ) ), uno::UNO_QUERY_THROW );
252 uno::Reference< container::XNamed > xNamed(
getSheet(), uno::UNO_QUERY_THROW );
253 return xNamed->getName();
259 uno::Reference< container::XNamed > xNamed(
getSheet(), uno::UNO_QUERY_THROW );
260 xNamed->setName( rName );
266 uno::Reference< beans::XPropertySet > xProps(
getSheet(), uno::UNO_QUERY_THROW );
268 xProps->getPropertyValue(
"IsVisible" ) >>=
bVisible;
269 using namespace ::ooo::vba::excel::XlSheetVisibility;
276 using namespace ::ooo::vba::excel::XlSheetVisibility;
280 case xlSheetVisible:
case 1:
288 case xlSheetVeryHidden:
293 throw uno::RuntimeException();
295 uno::Reference< beans::XPropertySet > xProps(
getSheet(), uno::UNO_QUERY_THROW );
308 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
311 throw uno::RuntimeException(
"Sheet Name does not exist." );
317 bool bLockedCells =
false;
318 bool bUnlockedCells =
false;
325 return excel::XlEnableSelection::xlNoRestrictions;
327 return excel::XlEnableSelection::xlUnlockedCells;
329 return excel::XlEnableSelection::xlNoSelection;
336 if( (nSelection != excel::XlEnableSelection::xlNoRestrictions) &&
337 (nSelection != excel::XlEnableSelection::xlUnlockedCells) &&
338 (nSelection != excel::XlEnableSelection::xlNoSelection) )
343 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
346 throw uno::RuntimeException(
"Sheet Name does not exist." );
353 bool bLockedCells =
false;
354 bool bUnlockedCells =
false;
355 if( nSelection == excel::XlEnableSelection::xlNoRestrictions )
358 bUnlockedCells =
true;
360 else if( nSelection == excel::XlEnableSelection::xlUnlockedCells )
362 bUnlockedCells =
true;
403 else if (!bAutoFilterMode)
412uno::Reference< excel::XRange >
415 uno::Reference< sheet::XSheetCellRange > xSheetCellRange(
getSheet(), uno::UNO_QUERY_THROW );
416 uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor(
getSheet()->createCursorByRange( xSheetCellRange ), uno::UNO_SET_THROW );
417 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW);
418 xUsedCursor->gotoStartOfUsedArea(
false );
419 xUsedCursor->gotoEndOfUsedArea(
true );
423uno::Reference< excel::XOutline >
426 uno::Reference<sheet::XSheetOutline> xOutline(
getSheet(),uno::UNO_QUERY_THROW);
430uno::Reference< excel::XPageSetup >
439 uno::Reference< sheet::XSheetPageBreak > xSheetPageBreak(
getSheet(),uno::UNO_QUERY_THROW);
449 uno::Reference< sheet::XSheetPageBreak > xSheetPageBreak(
getSheet(), uno::UNO_QUERY_THROW );
477 uno::Reference<util::XProtectable > xProtectable(
getSheet(), uno::UNO_QUERY_THROW);
478 return xProtectable->isProtected();
485 OUString aSheetName =
getName();
486 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
510 uno::Reference< sheet::XSpreadsheetView > xSpreadsheet(
511 getModel()->getCurrentController(), uno::UNO_QUERY_THROW );
512 xSpreadsheet->setActiveSheet(
getSheet());
524 uno::Reference<excel::XWorksheet> xSheet;
525 OUString aCurrSheetName =
getName();
529 uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor =
getSheet()->createCursor( );
530 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW);
545 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
552 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets();
553 xSheets->moveByName(aCurrSheetName,nDest);
560 uno::Reference<excel::XWorksheet> xSheet;
568 xNewSheet->Activate();
575 uno::Reference<excel::XRange> xRange(
Destination, uno::UNO_QUERY );
584 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
585 OUString aSheetName =
getName();
591 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets();
592 uno::Reference<container::XNameContainer> xNameContainer(xSheets,uno::UNO_QUERY_THROW);
593 xNameContainer->removeByName(aSheetName);
597uno::Reference< excel::XWorksheet >
600 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc(
getModel(), uno::UNO_QUERY_THROW );
601 uno::Reference <sheet::XSpreadsheets> xSheets( xSpreadDoc->getSheets(), uno::UNO_SET_THROW );
602 uno::Reference <container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY_THROW );
606 return uno::Reference< excel::XWorksheet >();
607 nIdx = nIdx + offset;
608 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(nIdx), uno::UNO_QUERY_THROW);
613uno::Reference< excel::XWorksheet >
619uno::Reference< excel::XWorksheet >
630 uno::Reference<util::XProtectable > xProtectable(
getSheet(), uno::UNO_QUERY_THROW);
633 xProtectable->protect( aPasswd );
639 uno::Reference<util::XProtectable > xProtectable(
getSheet(), uno::UNO_QUERY_THROW);
642 xProtectable->unprotect( aPasswd );
648 uno::Reference <sheet::XCalculatable> xReCalculate(
getModel(), uno::UNO_QUERY_THROW);
649 xReCalculate->calculate();
652uno::Reference< excel::XRange >
656, uno::Reference< table::XCellRange >(
getSheet(), uno::UNO_QUERY_THROW ) ) );
657 return xSheetRange->Range( Cell1, Cell2 );
668uno::Reference< excel::XRange >
671 uno::Reference< table::XCellRange > xRange(
getSheet(),uno::UNO_QUERY_THROW );
677uno::Reference< excel::XRange >
682 uno::Reference< table::XCellRange > xRange(
getSheet(), uno::UNO_QUERY_THROW );
683 uno::Reference< frame::XModel >
xModel(
getModel(), uno::UNO_SET_THROW );
686 throw uno::RuntimeException();
689uno::Reference< excel::XRange >
695uno::Reference< excel::XRange >
706 uno::Reference< table::XTableChartsSupplier > xChartSupplier(
getSheet(), uno::UNO_QUERY_THROW );
707 uno::Reference< table::XTableCharts > xTableCharts = xChartSupplier->getCharts();
709 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier(
mxSheet, uno::UNO_QUERY_THROW );
712 if (
Index.hasValue() )
714 uno::Reference< XCollection > xColl(
mxCharts, uno::UNO_QUERY_THROW );
725 uno::Reference< css::sheet::XSpreadsheet > xSheet =
getSheet();
726 uno::Reference< sheet::XDataPilotTablesSupplier > xTables(xSheet, uno::UNO_QUERY_THROW ) ;
727 uno::Reference< container::XIndexAccess > xIndexAccess( xTables->getDataPilotTables(), uno::UNO_QUERY_THROW );
730 if (
Index.hasValue() )
738 uno::Reference< css::sheet::XSpreadsheet > xSheet =
getSheet();
739 uno::Reference< sheet::XSheetAnnotationsSupplier > xAnnosSupp( xSheet, uno::UNO_QUERY_THROW );
740 uno::Reference< sheet::XSheetAnnotations > xAnnos( xAnnosSupp->getAnnotations(), uno::UNO_SET_THROW );
741 uno::Reference< container::XIndexAccess > xIndexAccess( xAnnos, uno::UNO_QUERY_THROW );
743 if (
Index.hasValue() )
763 css::uno::Reference<css::beans::XPropertySet> xProps(
getSheet(), css::uno::UNO_QUERY_THROW);
764 uno::Reference< sheet::XNamedRanges > xNamedRanges( xProps->getPropertyValue(
"NamedRanges"), uno::UNO_QUERY_THROW );
774 uno::Reference< sheet::XSpreadsheet > xSpreadsheet(
getSheet(), uno::UNO_SET_THROW );
775 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW );
776 uno::Reference< drawing::XDrawPage > xDrawPage( xDrawPageSupplier->getDrawPage(), uno::UNO_SET_THROW );
777 uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPage, uno::UNO_QUERY_THROW );
780 if(
Index.hasValue() )
788 uno::Reference< sheet::XSpreadsheet > xSpreadsheet(
getSheet(), uno::UNO_SET_THROW );
789 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW );
790 uno::Reference< drawing::XShapes > xShapes( xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY_THROW );
791 uno::Reference< container::XIndexAccess > xIndexAccess( xShapes, uno::UNO_QUERY_THROW );
804 if( !rxButtons.is() )
807 rxButtons->collectShapes();
809 return rxButtons->Item( rIndex,
uno::Any() );
810 return uno::Any( uno::Reference< XCollection >( rxButtons ) );
822 throw uno::RuntimeException();
828 throw uno::RuntimeException();
834 throw uno::RuntimeException();
840 throw uno::RuntimeException();
846 throw uno::RuntimeException();
858 throw uno::RuntimeException();
864 throw uno::RuntimeException();
870 uno::Reference< frame::XModel >
xModel(
getModel(), uno::UNO_SET_THROW );
891uno::Reference< beans::XIntrospectionAccess > SAL_CALL
894 return uno::Reference< beans::XIntrospectionAccess >();
898ScVbaWorksheet::invoke(
const OUString& ,
const uno::Sequence< uno::Any >& , uno::Sequence< ::sal_Int16 >& , uno::Sequence< uno::Any >& )
900 throw uno::RuntimeException(
"Unsupported");
911 uno::Reference< drawing::XControlShape > xControlShape(
getControlShape( aPropertyName ), uno::UNO_QUERY_THROW );
913 uno::Reference<lang::XMultiComponentFactory > xServiceManager(
mxContext->getServiceManager(), uno::UNO_SET_THROW );
914 uno::Reference< XControlProvider > xControlProvider( xServiceManager->createInstanceWithContext(
"ooo.vba.ControlProvider",
mxContext ), uno::UNO_QUERY_THROW );
915 uno::Reference< msforms::XControl > xControl( xControlProvider->createControl( xControlShape,
getModel() ) );
925uno::Reference< container::XNameAccess >
928 uno::Reference< container::XNameAccess > xFormControls;
931 uno::Reference< sheet::XSpreadsheet > xSpreadsheet(
getSheet(), uno::UNO_SET_THROW );
932 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW );
933 uno::Reference< form::XFormsSupplier > xFormSupplier( xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY_THROW );
934 uno::Reference< container::XIndexAccess > xIndexAccess( xFormSupplier->getForms(), uno::UNO_QUERY_THROW );
938 if( xIndexAccess->hasElements() )
939 xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY );
942 catch( uno::Exception& )
945 return xFormControls;
951 uno::Reference< container::XNameAccess > xFormControls(
getFormControls() );
952 if ( xFormControls.is() )
953 return xFormControls->hasByName(
aName );
969 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier(
getSheet(), uno::UNO_QUERY_THROW );
970 uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY_THROW );
972 sal_Int32
nCount = xIndexAccess->getCount();
977 uno::Reference< drawing::XControlShape > xControlShape( aUnoObj, uno::UNO_QUERY );
978 if( xControlShape.is() )
980 uno::Reference< container::XNamed > xNamed( xControlShape->getControl(), uno::UNO_QUERY_THROW );
981 if(
sName == xNamed->getName() )
993 return "ScVbaWorksheet";
999 uno::Reference <sheet::XCalculatable> xCalculatable(
getModel(), uno::UNO_QUERY_THROW);
1000 xCalculatable->enableAutomaticCalculation( bEnableCalculation);
1005 uno::Reference <sheet::XCalculatable> xCalculatable(
getModel(), uno::UNO_QUERY_THROW);
1006 return xCalculatable->isAutomaticCalculationEnabled();
1009uno::Sequence< OUString >
1014 "ooo.vba.excel.Worksheet"
1022 uno::Reference< beans::XPropertySet > xSheetProp(
mxSheet, uno::UNO_QUERY_THROW );
1023 return xSheetProp->getPropertyValue(
"CodeName").get< OUString >();
1029 uno::Reference< sheet::XCellRangeAddressable > xAddressable(
mxSheet, uno::UNO_QUERY_THROW );
1030 return xAddressable->getRangeAddress().Sheet;
1037 sal_Int32 nFrom = 0;
1038 bool bSelection =
false;
1042 if ( !( nFrom || nTo ) )
1045 uno::Reference< frame::XModel >
xModel(
getModel(), uno::UNO_SET_THROW );
1051 const css::uno::Any& IncludeDocProperties,
const css::uno::Any& ,
const css::uno::Any& From,
1052 const css::uno::Any& To,
const css::uno::Any& OpenAfterPublish,
const css::uno::Any& )
1054 uno::Reference< frame::XModel >
xModel(
getModel(), uno::UNO_SET_THROW);
1055 uno::Reference< excel::XApplication > xApplication(
Application(), uno::UNO_QUERY_THROW);
1058 IncludeDocProperties, From,
To, OpenAfterPublish);
1067extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
1069 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& args)
css::uno::Reference< css::frame::XModel2 > mxModel
css::uno::Reference< css::uno::XComponentContext > mxContext
virtual css::uno::Any SAL_CALL Application() override
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent() override
virtual VclPtr< AbstractScDataFormDlg > CreateScDataFormDlg(weld::Window *pParent, ScTabViewShell *pTabViewShell)=0
static SC_DLLPUBLIC ScAbstractDialogFactory * Create()
bool HasAutoFilter() const
void GetArea(SCTAB &rTab, SCCOL &rCol1, SCROW &rRow1, SCCOL &rCol2, SCROW &rRow2) const
void SetAutoFilter(bool bSet)
const ScDocument & GetDocument() const
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
sal_uLong TransferTab(ScDocShell &rSrcDocShell, SCTAB nSrcPos, SCTAB nDestPos, bool bInsertNew, bool bNotifyAndPaint)
SC_DLLPUBLIC bool RemoveFlagsTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags)
SC_DLLPUBLIC const ScTableProtection * GetTabProtection(SCTAB nTab) const
SC_DLLPUBLIC bool ApplyFlagsTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags)
const OUString & GetCodeName() const
SC_DLLPUBLIC void SetTabProtection(SCTAB nTab, const ScTableProtection *pProtect)
SC_DLLPUBLIC ScDBData * GetAnonymousDBData(SCTAB nTab)
sheet protection state container
bool isOptionEnabled(Option eOption) const
void setOption(Option eOption, bool bEnabled)
Represents a collection of hyperlinks of a worksheet or of a range.
static css::uno::Reference< ov::excel::XRange > CellsHelper(const ScDocument &rDoc, const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::table::XCellRange > &xRange, const css::uno::Any &nRowIndex, const css::uno::Any &nColumnIndex)
virtual void SAL_CALL Paste(const css::uno::Any &Destination, const css::uno::Any &Link) override
virtual css::uno::Any SAL_CALL Evaluate(const OUString &Name) override
virtual void SAL_CALL setVisible(sal_Int32 nVisible) override
virtual css::uno::Any SAL_CALL invoke(const OUString &aFunctionName, const css::uno::Sequence< css::uno::Any > &aParams, css::uno::Sequence< ::sal_Int16 > &aOutParamIndex, css::uno::Sequence< css::uno::Any > &aOutParam) override
css::uno::Reference< ov::excel::XChartObjects > mxCharts
virtual void SAL_CALL Protect(const css::uno::Any &Password, const css::uno::Any &DrawingObjects, const css::uno::Any &Contents, const css::uno::Any &Scenarios, const css::uno::Any &UserInterfaceOnly) override
::rtl::Reference< ScVbaSheetObjectsBase > mxButtons[2]
virtual void SAL_CALL Copy(const css::uno::Any &Before, const css::uno::Any &After) override
virtual sal_Bool SAL_CALL hasProperty(const OUString &aName) override
virtual void SAL_CALL setName(const OUString &rName) override
virtual void SAL_CALL setEnableCalculation(sal_Bool EnableCalculation) override
virtual css::uno::Any SAL_CALL ChartObjects(const css::uno::Any &Index) override
virtual css::uno::Any SAL_CALL Spinners(const css::uno::Any &rIndex) override
virtual css::uno::Reference< ov::excel::XOutline > SAL_CALL Outline() override
virtual ::sal_Int32 SAL_CALL getStandardWidth() override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
virtual css::uno::Any SAL_CALL OLEObjects(const css::uno::Any &Index) override
virtual sal_Int16 SAL_CALL getIndex() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual ~ScVbaWorksheet() override
virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection() override
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL getUsedRange() override
virtual sal_Bool SAL_CALL getProtectionMode() override
virtual void SAL_CALL Unprotect(const css::uno::Any &Password) override
virtual ::sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rId) override
sal_Int16 getSheetID() const
virtual css::uno::Any SAL_CALL ListBoxes(const css::uno::Any &rIndex) override
virtual void SAL_CALL PrintOut(const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &Copies, const css::uno::Any &Preview, const css::uno::Any &ActivePrinter, const css::uno::Any &PrintToFile, const css::uno::Any &Collate, const css::uno::Any &PrToFileName, const css::uno::Any &IgnorePrintAreas) override
virtual sal_Bool SAL_CALL hasMethod(const OUString &aName) override
css::uno::Reference< ov::excel::XWorksheet > createSheetCopyInNewDoc(const OUString &)
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Rows(const css::uno::Any &aIndex) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Cells(const css::uno::Any &nRow, const css::uno::Any &nCol) override
virtual css::uno::Any SAL_CALL Buttons(const css::uno::Any &rIndex) override
virtual void SAL_CALL Delete() override
virtual sal_Bool SAL_CALL getProtectContents() override
virtual void SAL_CALL setEnableSelection(sal_Int32 nSelection) override
virtual css::uno::Any SAL_CALL Hyperlinks(const css::uno::Any &aIndex) override
virtual sal_Int32 SAL_CALL getEnableSelection() override
virtual css::uno::Any SAL_CALL Shapes(const css::uno::Any &aIndex) override
virtual css::uno::Any SAL_CALL Comments(const css::uno::Any &Index) override
const css::uno::Reference< css::frame::XModel > & getModel() const
css::uno::Reference< ov::excel::XHyperlinks > mxHlinks
virtual css::uno::Any SAL_CALL Names(const css::uno::Any &aIndex) override
virtual void SAL_CALL Activate() override
virtual ::sal_Int32 SAL_CALL getStandardHeight() override
virtual sal_Int32 SAL_CALL getVisible() override
virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL getNext() override
virtual void SAL_CALL ShowDataForm() override
css::uno::Reference< css::sheet::XSpreadsheet > mxSheet
virtual css::uno::Any SAL_CALL DropDowns(const css::uno::Any &rIndex) 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 setValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL VPageBreaks(const css::uno::Any &aIndex) override
virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL getPrevious() override
virtual css::uno::Reference< ov::excel::XPageSetup > SAL_CALL PageSetup() override
virtual css::uno::Any SAL_CALL Labels(const css::uno::Any &rIndex) override
virtual css::uno::Any SAL_CALL GroupBoxes(const css::uno::Any &rIndex) override
virtual void SAL_CALL Select() override
css::uno::Reference< ov::excel::XWorksheet > getSheetAtOffset(SCTAB offset)
css::uno::Reference< ov::excel::XRange > getSheetRange()
css::uno::Reference< css::frame::XModel > mxModel
virtual void SAL_CALL setAutoFilterMode(sal_Bool bAutoFilterMode) override
virtual OUString getServiceImplName() override
css::uno::Any getButtons(const css::uno::Any &rIndex, bool bOptionButtons)
virtual OUString SAL_CALL getCodeName() override
virtual sal_Bool SAL_CALL getProtectDrawingObjects() override
virtual css::uno::Any SAL_CALL CheckBoxes(const css::uno::Any &rIndex) override
virtual void SAL_CALL Calculate() override
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Columns(const css::uno::Any &aIndex) override
virtual sal_Bool SAL_CALL getProtectScenarios() override
virtual sal_Bool SAL_CALL getEnableCalculation() override
css::uno::Reference< css::container::XNameAccess > getFormControls() const
virtual void SAL_CALL CheckSpelling(const css::uno::Any &CustomDictionary, const css::uno::Any &IgnoreUppercase, const css::uno::Any &AlwaysSuggest, const css::uno::Any &SpellingLang) override
css::uno::Reference< ov::excel::XWorksheet > createSheetCopy(css::uno::Reference< ov::excel::XWorksheet > const &xSheet, bool bAfter)
virtual void SAL_CALL Move(const css::uno::Any &Before, const css::uno::Any &After) override
virtual sal_Bool SAL_CALL getAutoFilterMode() override
virtual css::uno::Any SAL_CALL getValue(const OUString &aPropertyName) override
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Range(const css::uno::Any &Cell1, const css::uno::Any &Cell2) override
const css::uno::Reference< css::sheet::XSpreadsheet > & getSheet() const
virtual css::uno::Any SAL_CALL HPageBreaks(const css::uno::Any &aIndex) override
virtual css::uno::Any SAL_CALL PivotTables(const css::uno::Any &Index) override
virtual css::uno::Any SAL_CALL OptionButtons(const css::uno::Any &rIndex) override
ScVbaWorksheet(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::sheet::XSpreadsheet > xSheet, css::uno::Reference< css::frame::XModel > xModel)
virtual css::uno::Any SAL_CALL ScrollBars(const css::uno::Any &rIndex) override
css::uno::Any getControlShape(std::u16string_view sName)
static bool nameExists(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xSpreadDoc, std::u16string_view name, SCTAB &nTab)
weld::Window * GetFrameWeld() const
const css::uno::Sequence< sal_Int8 > & getSeq() const
std::deque< AttacherIndex_Impl > aIndex
Sequence< OUString > aServiceNames
sal_Int64 getSomethingImpl(const css::uno::Sequence< sal_Int8 > &rId, T *pThis, FallbackToGetSomethingOf< Base >={})
Reference< XComponentContext > getProcessComponentContext()
void setUpDocumentModules(const uno::Reference< sheet::XSpreadsheetDocument > &xDoc)
ScDocShell * getDocShell(const css::uno::Reference< css::frame::XModel > &xModel)
void implnPaste(const uno::Reference< frame::XModel > &xModel)
void ExportAsFixedFormatHelper(const uno::Reference< frame::XModel > &xModel, const css::uno::Reference< XApplication > &xApplication, const css::uno::Any &Type, const css::uno::Any &FileName, const css::uno::Any &Quality, const css::uno::Any &IncludeDocProperties, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &OpenAfterPublish)
ScTabViewShell * getBestViewShell(const css::uno::Reference< css::frame::XModel > &xModel)
void implnCopy(const uno::Reference< frame::XModel > &xModel)
VBAHELPER_DLLPUBLIC void setDefaultPropByIntrospection(const css::uno::Any &aObj, const css::uno::Any &aValue)
css::uno::Reference< T > getXSomethingFromArgs(css::uno::Sequence< css::uno::Any > const &args, sal_Int32 nPos, bool bCanBeNull=true)
VBAHELPER_DLLPUBLIC void PrintOutHelper(SfxViewShell const *pViewShell, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &Copies, const css::uno::Any &Preview, const css::uno::Any &ActivePrinter, const css::uno::Any &PrintToFile, const css::uno::Any &Collate, const css::uno::Any &PrToFileName, bool bSelection)
uno::Reference< XHelperInterface > getUnoDocModule(std::u16string_view aModName, SfxObjectShell const *pShell)
VBAHELPER_DLLPUBLIC void dispatchRequests(const css::uno::Reference< css::frame::XModel > &xModel, const OUString &aUrl)
#define ERRCODE_BASIC_BAD_PARAMETER
Reference< XModel > xModel
static void removeAllSheets(const uno::Reference< sheet::XSpreadsheetDocument > &xSpreadDoc, const OUString &aSheetName)
static void getNewSpreadsheetName(OUString &aNewName, std::u16string_view aOldName, const uno::Reference< sheet::XSpreadsheetDocument > &xSpreadDoc)
static uno::Reference< frame::XModel > openNewDoc(const OUString &aSheetName)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * Calc_ScVbaWorksheet_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &args)