Kaydet (Commit) 2ba43bc1 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

A little cleanup and avoid exporting all methods from ScDatabaseRangeObj.

Change-Id: I4dc7dc689af5d2e9d49584157171202aef873688
üst ccce242c
......@@ -494,7 +494,7 @@ public:
};
class SC_DLLPUBLIC ScDatabaseRangeObj : public cppu::WeakImplHelper6<
class ScDatabaseRangeObj : public cppu::WeakImplHelper6<
com::sun::star::sheet::XDatabaseRange,
com::sun::star::util::XRefreshable,
com::sun::star::container::XNamed,
......@@ -516,9 +516,9 @@ private:
void Refreshed_Impl();
public:
ScDatabaseRangeObj(ScDocShell* pDocSh, const String& rNm);
ScDatabaseRangeObj(ScDocShell* pDocSh, const SCTAB nTab);
virtual ~ScDatabaseRangeObj();
ScDatabaseRangeObj(ScDocShell* pDocSh, const String& rNm);
SC_DLLPUBLIC ScDatabaseRangeObj(ScDocShell* pDocSh, const SCTAB nTab);
virtual ~ScDatabaseRangeObj();
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
......
......@@ -480,8 +480,7 @@ Reference< XDatabaseRange > WorkbookGlobals::createUnnamedDatabaseRangeObject( c
aScRange.aEnd.Col(), aScRange.aEnd.Row() );
rDoc.SetAnonymousDBData( aScRange.aStart.Tab() , pNewDBData );
ScDocShell* pDocSh = static_cast< ScDocShell* >(rDoc.GetDocumentShell());
ScDatabaseRangeObj* pDBRangeObj = new ScDatabaseRangeObj( pDocSh, aScRange.aStart.Tab() );
xDatabaseRange.set( pDBRangeObj );
xDatabaseRange.set(new ScDatabaseRangeObj(pDocSh, aScRange.aStart.Tab()));
}
catch( Exception& )
{
......
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