Kaydet (Commit) be8e63cd authored tarafından Markus Mohrhard's avatar Markus Mohrhard

rename UNO API method for cond format

My first idea does not work that well as it introduces some nasty
problems with the lifecycle. THe new approach will only allow to use
cond format objects of the same document.

Change-Id: I276c3750ef24cdee6d63162c678ec839d4845b08
üst 4c4a9767
......@@ -22,7 +22,7 @@ interface XConditionalFormats : com::sun::star::uno::XInterface
* adds a conditional format to the existing list
* returns the id of the inserted conditional format
*/
long addByRange( [in] com::sun::star::sheet::XConditionalFormat conditionalFormat, [in] com::sun::star::sheet::XSheetCellRanges range);
long createByRange( [in] com::sun::star::sheet::XSheetCellRanges range);
void removeByID( [in] long ID);
......
......@@ -62,10 +62,8 @@ public:
static ScCondFormatsObj* getImplementation( uno::Reference< com::sun::star::sheet::XConditionalFormats > xCondFormat );
// XConditionalFormats
virtual sal_Int32 SAL_CALL addByRange( const uno::Reference< sheet::XConditionalFormat >& xCondFormat,
const uno::Reference<sheet::XSheetCellRanges>& xRanges)
throw(::com::sun::star::uno::RuntimeException,
std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL createByRange(const uno::Reference<sheet::XSheetCellRanges>& xRanges)
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL removeByID( const sal_Int32 nID )
throw(::com::sun::star::uno::RuntimeException,
......
......@@ -332,13 +332,9 @@ void ScCondFormatsObj::Notify(SfxBroadcaster& /*rBC*/, const SfxHint& rHint)
}
}
sal_Int32 ScCondFormatsObj::addByRange(const uno::Reference< sheet::XConditionalFormat >& xCondFormat,
const uno::Reference< sheet::XSheetCellRanges >& /*xRanges*/)
sal_Int32 ScCondFormatsObj::createByRange(const uno::Reference< sheet::XSheetCellRanges >& /*xRanges*/)
throw(uno::RuntimeException, std::exception)
{
if (!xCondFormat.is())
return 0;
SolarMutexGuard aGuard;
/*
ScCondFormatObj* pFormatObj = ScCondFormatObj::getImplementation(xCondFormat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment