com::sun::star->css in basctl

Change-Id: If0013cdd734a58397ab4972f9cca5584f05d1715
Reviewed-on: https://gerrit.libreoffice.org/17164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin 2015-07-17 15:49:35 +02:00 committed by Noel Grandin
parent ad0c0f685b
commit 9cde33eba1
35 changed files with 283 additions and 289 deletions

View File

@ -77,7 +77,7 @@ private:
OUString aCurText; OUString aCurText;
bool bIgnoreSelect; bool bIgnoreSelect;
bool bFillBox; bool bFillBox;
com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; css::uno::Reference< css::frame::XFrame > m_xFrame;
static void ReleaseFocus(); static void ReleaseFocus();
void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation ); void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation );
@ -94,7 +94,7 @@ protected:
public: public:
LibBox( vcl::Window* pParent, LibBox( vcl::Window* pParent,
const com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame ); const css::uno::Reference< css::frame::XFrame >& rFrame );
virtual ~LibBox(); virtual ~LibBox();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;

View File

@ -34,7 +34,7 @@ using namespace com::sun::star;
using namespace com::sun::star::uno; using namespace com::sun::star::uno;
Renderable::Renderable (BaseWindow* pWin) Renderable::Renderable (BaseWindow* pWin)
: cppu::WeakComponentImplHelper< com::sun::star::view::XRenderable >( maMutex ) : cppu::WeakComponentImplHelper< css::view::XRenderable >( maMutex )
, mpWindow( pWin ) , mpWindow( pWin )
{ {
ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) ); ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) );

View File

@ -30,7 +30,7 @@ namespace basctl
class BaseWindow; class BaseWindow;
class Renderable : class Renderable :
public cppu::WeakComponentImplHelper< com::sun::star::view::XRenderable >, public cppu::WeakComponentImplHelper< css::view::XRenderable >,
public vcl::PrinterOptionsHelper public vcl::PrinterOptionsHelper
{ {
VclPtr<BaseWindow> mpWindow; VclPtr<BaseWindow> mpWindow;
@ -43,21 +43,21 @@ public:
// XRenderable // XRenderable
virtual sal_Int32 SAL_CALL getRendererCount ( virtual sal_Int32 SAL_CALL getRendererCount (
const com::sun::star::uno::Any& aSelection, const css::uno::Any& aSelection,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue >& xOptions) const css::uno::Sequence<css::beans::PropertyValue >& xOptions)
throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> SAL_CALL getRenderer ( virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getRenderer (
sal_Int32 nRenderer, sal_Int32 nRenderer,
const com::sun::star::uno::Any& rSelection, const css::uno::Any& rSelection,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rxOptions) const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL render ( virtual void SAL_CALL render (
sal_Int32 nRenderer, sal_Int32 nRenderer,
const com::sun::star::uno::Any& rSelection, const css::uno::Any& rSelection,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rxOptions) const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
throw (com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };

View File

@ -72,21 +72,21 @@ friend class CodeCompleteListBox;
private: private:
class ChangesListener; class ChangesListener;
boost::scoped_ptr<ExtTextView> pEditView; boost::scoped_ptr<ExtTextView> pEditView;
boost::scoped_ptr<ExtTextEngine> pEditEngine; boost::scoped_ptr<ExtTextEngine> pEditEngine;
ModulWindow& rModulWindow; ModulWindow& rModulWindow;
rtl::Reference< ChangesListener > listener_; rtl::Reference< ChangesListener > listener_;
osl::Mutex mutex_; osl::Mutex mutex_;
com::sun::star::uno::Reference< com::sun::star::beans::XMultiPropertySet > css::uno::Reference< css::beans::XMultiPropertySet >
notifier_; notifier_;
long nCurTextWidth; long nCurTextWidth;
SyntaxHighlighter aHighlighter; SyntaxHighlighter aHighlighter;
Idle aSyntaxIdle; Idle aSyntaxIdle;
typedef std::set<sal_uInt16> SyntaxLineSet; typedef std::set<sal_uInt16> SyntaxLineSet;
SyntaxLineSet aSyntaxLineTable; SyntaxLineSet aSyntaxLineTable;
DECL_LINK_TYPED(SyntaxTimerHdl, Idle *, void); DECL_LINK_TYPED(SyntaxTimerHdl, Idle *, void);
// progress bar // progress bar
@ -105,9 +105,7 @@ private:
bool bDoSyntaxHighlight; bool bDoSyntaxHighlight;
bool bDelayHighlight; bool bDelayHighlight;
virtual virtual css::uno::Reference< css::awt::XWindowPeer > GetComponentInterface(bool bCreate = true) SAL_OVERRIDE;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >
GetComponentInterface(bool bCreate = true) SAL_OVERRIDE;
CodeCompleteDataCache aCodeCompleteCache; CodeCompleteDataCache aCodeCompleteCache;
VclPtr<CodeCompleteWindow> pCodeCompleteWnd; VclPtr<CodeCompleteWindow> pCodeCompleteWnd;
OUString GetActualSubName( sal_uLong nLine ); // gets the actual subroutine name according to line number OUString GetActualSubName( sal_uLong nLine ); // gets the actual subroutine name according to line number

View File

@ -1034,7 +1034,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
} }
// Resource? // Resource?
::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); css::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale();
Reference< task::XInteractionHandler > xDummyHandler; Reference< task::XInteractionHandler > xDummyHandler;
bool bReadOnly = true; bool bReadOnly = true;
Reference< XStringResourceWithLocation > xImportStringResource = Reference< XStringResourceWithLocation > xImportStringResource =
@ -1360,9 +1360,9 @@ void DialogWindow::InitSettings(bool bFont, bool bForeground, bool bBackground)
SetBackground( rStyleSettings.GetFieldColor() ); SetBackground( rStyleSettings.GetFieldColor() );
} }
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > DialogWindow::CreateAccessible() css::uno::Reference< css::accessibility::XAccessible > DialogWindow::CreateAccessible()
{ {
return static_cast<com::sun::star::accessibility::XAccessible*>(new AccessibleDialogWindow( this )); return static_cast<css::accessibility::XAccessible*>(new AccessibleDialogWindow( this ));
} }
char const* DialogWindow::GetHid () const char const* DialogWindow::GetHid () const

View File

@ -1061,7 +1061,7 @@ void Shell::ManageToolbars()
( GetViewFrame()->GetFrame().GetFrameInterface(), uno::UNO_QUERY ); ( GetViewFrame()->GetFrame().GetFrameInterface(), uno::UNO_QUERY );
if ( xFrameProps.is() ) if ( xFrameProps.is() )
{ {
Reference< ::com::sun::star::frame::XLayoutManager > xLayoutManager; Reference< css::frame::XLayoutManager > xLayoutManager;
uno::Any a = xFrameProps->getPropertyValue( "LayoutManager" ); uno::Any a = xFrameProps->getPropertyValue( "LayoutManager" );
a >>= xLayoutManager; a >>= xLayoutManager;
if ( xLayoutManager.is() ) if ( xLayoutManager.is() )

View File

@ -114,8 +114,8 @@ public:
if( mpShell && ( Event.Accessor >>= sModuleName ) ) if( mpShell && ( Event.Accessor >>= sModuleName ) )
mpShell->FindBasWin( mpShell->m_aCurDocument, mpShell->m_aCurLibName, sModuleName, true, false ); mpShell->FindBasWin( mpShell->m_aCurDocument, mpShell->m_aCurLibName, sModuleName, true, false );
} }
virtual void SAL_CALL elementReplaced( const container::ContainerEvent& ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE { } virtual void SAL_CALL elementReplaced( const container::ContainerEvent& ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE { }
virtual void SAL_CALL elementRemoved( const container::ContainerEvent& Event ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE virtual void SAL_CALL elementRemoved( const container::ContainerEvent& Event ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
{ {
OUString sModuleName; OUString sModuleName;
if( mpShell && ( Event.Accessor >>= sModuleName ) ) if( mpShell && ( Event.Accessor >>= sModuleName ) )

View File

@ -196,7 +196,7 @@ namespace basctl
xBroadcaster.set( m_xModel, UNO_QUERY_THROW ); xBroadcaster.set( m_xModel, UNO_QUERY_THROW );
else else
{ {
Reference< com::sun::star::uno::XComponentContext > aContext( Reference< css::uno::XComponentContext > aContext(
comphelper::getProcessComponentContext() ); comphelper::getProcessComponentContext() );
xBroadcaster = theGlobalEventBroadcaster::get(aContext); xBroadcaster = theGlobalEventBroadcaster::get(aContext);
} }

View File

@ -57,10 +57,10 @@ namespace basctl { namespace docs {
// DocumentEnumeration_Data // DocumentEnumeration_Data
struct DocumentEnumeration_Data struct DocumentEnumeration_Data
{ {
Reference< com::sun::star::uno::XComponentContext > aContext; Reference< css::uno::XComponentContext > aContext;
const IDocumentDescriptorFilter* pFilter; const IDocumentDescriptorFilter* pFilter;
DocumentEnumeration_Data( Reference< com::sun::star::uno::XComponentContext > const & _rContext, const IDocumentDescriptorFilter* _pFilter ) DocumentEnumeration_Data( Reference< css::uno::XComponentContext > const & _rContext, const IDocumentDescriptorFilter* _pFilter )
:aContext( _rContext ) :aContext( _rContext )
,pFilter( _pFilter ) ,pFilter( _pFilter )
{ {
@ -68,7 +68,7 @@ namespace basctl { namespace docs {
}; };
// DocumentEnumeration // DocumentEnumeration
DocumentEnumeration::DocumentEnumeration( Reference< com::sun::star::uno::XComponentContext > const & _rContext, const IDocumentDescriptorFilter* _pFilter ) DocumentEnumeration::DocumentEnumeration( Reference< css::uno::XComponentContext > const & _rContext, const IDocumentDescriptorFilter* _pFilter )
:m_pData( new DocumentEnumeration_Data( _rContext, _pFilter ) ) :m_pData( new DocumentEnumeration_Data( _rContext, _pFilter ) )
{ {
} }

View File

@ -75,7 +75,7 @@ void LocalizationMgr::handleTranslationbar ()
( m_pShell->GetViewFrame()->GetFrame().GetFrameInterface(), uno::UNO_QUERY ); ( m_pShell->GetViewFrame()->GetFrame().GetFrameInterface(), uno::UNO_QUERY );
if ( xFrameProps.is() ) if ( xFrameProps.is() )
{ {
Reference< ::com::sun::star::frame::XLayoutManager > xLayoutManager; Reference< css::frame::XLayoutManager > xLayoutManager;
uno::Any a = xFrameProps->getPropertyValue( aLayoutManagerName ); uno::Any a = xFrameProps->getPropertyValue( aLayoutManagerName );
a >>= xLayoutManager; a >>= xLayoutManager;
if ( xLayoutManager.is() ) if ( xLayoutManager.is() )

View File

@ -80,7 +80,7 @@ public:
{ {
} }
virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& rRequest ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& rRequest ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ {
if ( m_xHandler.is() ) if ( m_xHandler.is() )
{ {

View File

@ -240,7 +240,7 @@ protected:
void NewLib(); void NewLib();
void InsertLib(); void InsertLib();
void implExportLib( const OUString& aLibName, const OUString& aTargetURL, void implExportLib( const OUString& aLibName, const OUString& aTargetURL,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ); const css::uno::Reference< css::task::XInteractionHandler >& Handler );
void Export(); void Export();
void ExportAsPackage( const OUString& aLibName ); void ExportAsPackage( const OUString& aLibName );
void ExportAsBasic( const OUString& aLibName ); void ExportAsBasic( const OUString& aLibName );
@ -248,7 +248,7 @@ protected:
void FillListBox(); void FillListBox();
void InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocation eLocation ); void InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocation eLocation );
void SetCurLib(); void SetCurLib();
SvTreeListEntry* ImpInsertLibEntry( const OUString& rLibName, sal_uLong nPos ); SvTreeListEntry* ImpInsertLibEntry( const OUString& rLibName, sal_uLong nPos );
virtual void ActivatePage() SAL_OVERRIDE; virtual void ActivatePage() SAL_OVERRIDE;
virtual void DeactivatePage() SAL_OVERRIDE; virtual void DeactivatePage() SAL_OVERRIDE;

View File

@ -28,44 +28,44 @@ namespace basctl
class SIDEModel : public SfxBaseModel, class SIDEModel : public SfxBaseModel,
public com::sun::star::lang::XServiceInfo public com::sun::star::lang::XServiceInfo
{ {
static void notImplemented() throw ( ::com::sun::star::io::IOException ); static void notImplemented() throw ( css::io::IOException );
public: public:
explicit SIDEModel(SfxObjectShell *pObjSh = 0); explicit SIDEModel(SfxObjectShell *pObjSh = 0);
virtual ~SIDEModel(); virtual ~SIDEModel();
//XInterface //XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL acquire( ) throw() SAL_OVERRIDE; virtual void SAL_CALL acquire( ) throw() SAL_OVERRIDE;
virtual void SAL_CALL release( ) throw() SAL_OVERRIDE; virtual void SAL_CALL release( ) throw() SAL_OVERRIDE;
//XTypeProvider //XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
//XServiceInfo //XServiceInfo
virtual OUString SAL_CALL getImplementationName() virtual OUString SAL_CALL getImplementationName()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XStorable2 // XStorable2
virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& ) virtual void SAL_CALL storeSelf( const css::uno::Sequence< css::beans::PropertyValue >& )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { notImplemented(); } throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE { notImplemented(); }
// XStorable // XStorable
virtual void SAL_CALL store() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL store() throw (css::io::IOException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL storeAsURL( const OUString& sURL, virtual void SAL_CALL storeAsURL( const OUString& sURL,
const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments ) const css::uno::Sequence< css::beans::PropertyValue >& seqArguments )
throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::io::IOException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL storeToURL( const OUString& sURL, virtual void SAL_CALL storeToURL( const OUString& sURL,
const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments ) const css::uno::Sequence< css::beans::PropertyValue >& seqArguments )
throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::io::IOException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
static OUString getImplementationName_Static(); static OUString getImplementationName_Static();
}; };
com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SIDEModel_createInstance( css::uno::Reference< css::uno::XInterface > SAL_CALL SIDEModel_createInstance(
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr ) const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
throw( com::sun::star::uno::Exception ); throw( com::sun::star::uno::Exception );
} // namespace basctl } // namespace basctl

View File

@ -176,8 +176,8 @@ bool DlgEditor::RemarkDialog()
DlgEditor::DlgEditor ( DlgEditor::DlgEditor (
vcl::Window& rWindow_, DialogWindowLayout& rLayout_, vcl::Window& rWindow_, DialogWindowLayout& rLayout_,
com::sun::star::uno::Reference<com::sun::star::frame::XModel> const& xModel, css::uno::Reference<css::frame::XModel> const& xModel,
com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xDialogModel css::uno::Reference<css::container::XNameContainer> xDialogModel
) )
:pHScroll(NULL) :pHScroll(NULL)
,pVScroll(NULL) ,pVScroll(NULL)
@ -363,7 +363,7 @@ void DlgEditor::SetDialog( uno::Reference< container::XNameContainer > xUnoContr
pDlgEdForm->StartListening(); pDlgEdForm->StartListening();
// create controls // create controls
Reference< ::com::sun::star::container::XNameAccess > xNameAcc( m_xUnoControlDialogModel, UNO_QUERY ); Reference< css::container::XNameAccess > xNameAcc( m_xUnoControlDialogModel, UNO_QUERY );
if ( xNameAcc.is() ) if ( xNameAcc.is() )
{ {
// get sequence of control names // get sequence of control names
@ -381,7 +381,7 @@ void DlgEditor::SetDialog( uno::Reference< container::XNameContainer > xUnoContr
// get tab index // get tab index
sal_Int16 nTabIndex = -1; sal_Int16 nTabIndex = -1;
Any aCtrl = xNameAcc->getByName( aName ); Any aCtrl = xNameAcc->getByName( aName );
Reference< ::com::sun::star::beans::XPropertySet > xPSet; Reference< css::beans::XPropertySet > xPSet;
aCtrl >>= xPSet; aCtrl >>= xPSet;
if ( xPSet.is() ) if ( xPSet.is() )
xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex; xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex;
@ -394,7 +394,7 @@ void DlgEditor::SetDialog( uno::Reference< container::XNameContainer > xUnoContr
for ( IndexToNameMap::iterator aIt = aIndexToNameMap.begin(); aIt != aIndexToNameMap.end(); ++aIt ) for ( IndexToNameMap::iterator aIt = aIndexToNameMap.begin(); aIt != aIndexToNameMap.end(); ++aIt )
{ {
Any aCtrl = xNameAcc->getByName( aIt->second ); Any aCtrl = xNameAcc->getByName( aIt->second );
Reference< ::com::sun::star::awt::XControlModel > xCtrlModel; Reference< css::awt::XControlModel > xCtrlModel;
aCtrl >>= xCtrlModel; aCtrl >>= xCtrlModel;
DlgEdObj* pCtrlObj = new DlgEdObj(); DlgEdObj* pCtrlObj = new DlgEdObj();
pCtrlObj->SetUnoControlModel( xCtrlModel ); pCtrlObj->SetUnoControlModel( xCtrlModel );
@ -905,7 +905,7 @@ void DlgEditor::Paste()
} }
// get control models from clipboard dialog model // get control models from clipboard dialog model
Reference< ::com::sun::star::container::XNameAccess > xNameAcc( xClipDialogModel, UNO_QUERY ); Reference< css::container::XNameAccess > xNameAcc( xClipDialogModel, UNO_QUERY );
if ( xNameAcc.is() ) if ( xNameAcc.is() )
{ {
Sequence< OUString > aNames = xNameAcc->getElementNames(); Sequence< OUString > aNames = xNameAcc->getElementNames();
@ -921,7 +921,7 @@ void DlgEditor::Paste()
for( sal_uInt32 n = 0; n < nCtrls; n++ ) for( sal_uInt32 n = 0; n < nCtrls; n++ )
{ {
Any aA = xNameAcc->getByName( pNames[n] ); Any aA = xNameAcc->getByName( pNames[n] );
Reference< ::com::sun::star::awt::XControlModel > xCM; Reference< css::awt::XControlModel > xCM;
aA >>= xCM; aA >>= xCM;
// clone the control model // clone the control model
@ -1023,10 +1023,10 @@ void DlgEditor::Delete()
} }
// remove control from dialog model // remove control from dialog model
Reference< ::com::sun::star::container::XNameAccess > xNameAcc(pDlgEdObj->GetDlgEdForm()->GetUnoControlModel(), UNO_QUERY ); Reference< css::container::XNameAccess > xNameAcc(pDlgEdObj->GetDlgEdForm()->GetUnoControlModel(), UNO_QUERY );
if ( xNameAcc.is() && xNameAcc->hasByName(aName) ) if ( xNameAcc.is() && xNameAcc->hasByName(aName) )
{ {
Reference< ::com::sun::star::container::XNameContainer > xCont(xNameAcc, UNO_QUERY ); Reference< css::container::XNameContainer > xCont(xNameAcc, UNO_QUERY );
if ( xCont.is() ) if ( xCont.is() )
{ {
if( xCont->hasByName( aName ) ) if( xCont->hasByName( aName ) )

View File

@ -31,7 +31,7 @@ namespace basctl
using namespace ::com::sun::star; using namespace ::com::sun::star;
DlgEdFactory::DlgEdFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ) : mxModel( xModel ) DlgEdFactory::DlgEdFactory( const css::uno::Reference< css::frame::XModel >& xModel ) : mxModel( xModel )
{ {
SdrObjFactory::InsertMakeObjectHdl( LINK(this, DlgEdFactory, MakeObject) ); SdrObjFactory::InsertMakeObjectHdl( LINK(this, DlgEdFactory, MakeObject) );
} }
@ -168,7 +168,7 @@ IMPL_LINK( DlgEdFactory, MakeObject, SdrObjFactory *, pObjFactory )
if (xPSet.is()) if (xPSet.is())
{ {
uno::Any aValue; uno::Any aValue;
aValue <<= (sal_Int32) ::com::sun::star::awt::ScrollBarOrientation::VERTICAL; aValue <<= (sal_Int32) css::awt::ScrollBarOrientation::VERTICAL;
xPSet->setPropertyValue( DLGED_PROP_ORIENTATION, aValue ); xPSet->setPropertyValue( DLGED_PROP_ORIENTATION, aValue );
} }
} }

View File

@ -34,12 +34,12 @@ DlgEdPropListenerImpl::~DlgEdPropListenerImpl()
} }
// XEventListener // XEventListener
void SAL_CALL DlgEdPropListenerImpl::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdPropListenerImpl::disposing( const css::lang::EventObject& ) throw( css::uno::RuntimeException, std::exception)
{ {
} }
// XPropertyChangeListener // XPropertyChangeListener
void SAL_CALL DlgEdPropListenerImpl::propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdPropListenerImpl::propertyChange( const css::beans::PropertyChangeEvent& evt ) throw( css::uno::RuntimeException, std::exception)
{ {
rDlgEdObj._propertyChange( evt ); rDlgEdObj._propertyChange( evt );
} }
@ -55,22 +55,22 @@ DlgEdEvtContListenerImpl::~DlgEdEvtContListenerImpl()
} }
// XEventListener // XEventListener
void SAL_CALL DlgEdEvtContListenerImpl::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdEvtContListenerImpl::disposing( const css::lang::EventObject& ) throw( css::uno::RuntimeException, std::exception)
{ {
} }
// XContainerListener // XContainerListener
void SAL_CALL DlgEdEvtContListenerImpl::elementInserted(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdEvtContListenerImpl::elementInserted(const css::container::ContainerEvent& Event) throw(css::uno::RuntimeException, std::exception)
{ {
rDlgEdObj._elementInserted( Event ); rDlgEdObj._elementInserted( Event );
} }
void SAL_CALL DlgEdEvtContListenerImpl::elementReplaced(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdEvtContListenerImpl::elementReplaced(const css::container::ContainerEvent& Event) throw(css::uno::RuntimeException, std::exception)
{ {
rDlgEdObj._elementReplaced( Event ); rDlgEdObj._elementReplaced( Event );
} }
void SAL_CALL DlgEdEvtContListenerImpl::elementRemoved(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException, std::exception) void SAL_CALL DlgEdEvtContListenerImpl::elementRemoved(const css::container::ContainerEvent& Event) throw(css::uno::RuntimeException, std::exception)
{ {
rDlgEdObj._elementRemoved( Event ); rDlgEdObj._elementRemoved( Event );
} }

View File

@ -70,7 +70,7 @@ DlgEdObj::DlgEdObj()
} }
DlgEdObj::DlgEdObj(const OUString& rModelName, DlgEdObj::DlgEdObj(const OUString& rModelName,
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSFac) const css::uno::Reference< css::lang::XMultiServiceFactory >& rxSFac)
:SdrUnoObj(rModelName, rxSFac, false) :SdrUnoObj(rModelName, rxSFac, false)
,bIsListening(false) ,bIsListening(false)
,pDlgEdForm( NULL ) ,pDlgEdForm( NULL )
@ -453,7 +453,7 @@ void DlgEdObj::PositionAndSizeChange( const beans::PropertyChangeEvent& evt )
SetRectFromProps(); SetRectFromProps();
} }
void SAL_CALL DlgEdObj::NameChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (css::container::NoSuchElementException, css::uno::RuntimeException) void SAL_CALL DlgEdObj::NameChange( const css::beans::PropertyChangeEvent& evt ) throw (css::container::NoSuchElementException, css::uno::RuntimeException)
{ {
// get old name // get old name
OUString aOldName; OUString aOldName;
@ -1124,7 +1124,7 @@ void DlgEdObj::EndListening(bool bRemoveListener)
} }
} }
void SAL_CALL DlgEdObj::_propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (css::uno::RuntimeException, std::exception) void SAL_CALL DlgEdObj::_propertyChange( const css::beans::PropertyChangeEvent& evt ) throw (css::uno::RuntimeException, std::exception)
{ {
if (isListening()) if (isListening())
{ {
@ -1180,7 +1180,7 @@ void SAL_CALL DlgEdObj::_propertyChange( const ::com::sun::star::beans::Propert
} }
} }
void SAL_CALL DlgEdObj::_elementInserted(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException) void SAL_CALL DlgEdObj::_elementInserted(const css::container::ContainerEvent& ) throw(css::uno::RuntimeException)
{ {
if (isListening()) if (isListening())
{ {
@ -1189,7 +1189,7 @@ void SAL_CALL DlgEdObj::_elementInserted(const ::com::sun::star::container::Cont
} }
} }
void SAL_CALL DlgEdObj::_elementReplaced(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException) void SAL_CALL DlgEdObj::_elementReplaced(const css::container::ContainerEvent& ) throw(css::uno::RuntimeException)
{ {
if (isListening()) if (isListening())
{ {
@ -1198,7 +1198,7 @@ void SAL_CALL DlgEdObj::_elementReplaced(const ::com::sun::star::container::Cont
} }
} }
void SAL_CALL DlgEdObj::_elementRemoved(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException) void SAL_CALL DlgEdObj::_elementRemoved(const css::container::ContainerEvent& ) throw(css::uno::RuntimeException)
{ {
if (isListening()) if (isListening())
{ {
@ -1436,7 +1436,7 @@ void DlgEdForm::UpdateTabIndices()
(*aIter)->EndListening( false ); (*aIter)->EndListening( false );
} }
Reference< ::com::sun::star::container::XNameAccess > xNameAcc( GetUnoControlModel() , UNO_QUERY ); Reference< css::container::XNameAccess > xNameAcc( GetUnoControlModel() , UNO_QUERY );
if ( xNameAcc.is() ) if ( xNameAcc.is() )
{ {
// get sequence of control names // get sequence of control names
@ -1454,7 +1454,7 @@ void DlgEdForm::UpdateTabIndices()
// get tab index // get tab index
sal_Int16 nTabIndex = -1; sal_Int16 nTabIndex = -1;
Any aCtrl = xNameAcc->getByName( aName ); Any aCtrl = xNameAcc->getByName( aName );
Reference< ::com::sun::star::beans::XPropertySet > xPSet; Reference< css::beans::XPropertySet > xPSet;
aCtrl >>= xPSet; aCtrl >>= xPSet;
if ( xPSet.is() ) if ( xPSet.is() )
xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex; xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex;

View File

@ -163,8 +163,8 @@ void PropBrw::ImplReCreateController()
if ( m_xBrowserComponentWindow.is() ) if ( m_xBrowserComponentWindow.is() )
{ {
m_xBrowserComponentWindow->setPosSize(aPropWinPos.X(), aPropWinPos.Y(), aPropWinSize.Width(), aPropWinSize.Height(), m_xBrowserComponentWindow->setPosSize(aPropWinPos.X(), aPropWinPos.Y(), aPropWinSize.Width(), aPropWinSize.Height(),
::com::sun::star::awt::PosSize::WIDTH | ::com::sun::star::awt::PosSize::HEIGHT | css::awt::PosSize::WIDTH | css::awt::PosSize::HEIGHT |
::com::sun::star::awt::PosSize::X | ::com::sun::star::awt::PosSize::Y); css::awt::PosSize::X | css::awt::PosSize::Y);
m_xBrowserComponentWindow->setVisible(true); m_xBrowserComponentWindow->setVisible(true);
} }
} }
@ -433,7 +433,7 @@ void PropBrw::Resize()
if (m_xBrowserComponentWindow.is()) if (m_xBrowserComponentWindow.is())
{ {
m_xBrowserComponentWindow->setPosSize(0, 0, aPropWinSize.Width(), aPropWinSize.Height(), m_xBrowserComponentWindow->setPosSize(0, 0, aPropWinSize.Width(), aPropWinSize.Height(),
::com::sun::star::awt::PosSize::WIDTH | ::com::sun::star::awt::PosSize::HEIGHT); css::awt::PosSize::WIDTH | css::awt::PosSize::HEIGHT);
} }
} }

View File

@ -46,9 +46,9 @@ class DialogWindow;
typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE; typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE;
typedef ::cppu::ImplHelper3< typedef ::cppu::ImplHelper3<
::com::sun::star::accessibility::XAccessible, css::accessibility::XAccessible,
::com::sun::star::lang::XServiceInfo, css::lang::XServiceInfo,
::com::sun::star::beans::XPropertyChangeListener > AccessibleDialogControlShape_BASE; css::beans::XPropertyChangeListener > AccessibleDialogControlShape_BASE;
class AccessibleDialogControlShape : public AccessibleExtendedComponentHelper_BASE, class AccessibleDialogControlShape : public AccessibleExtendedComponentHelper_BASE,
public AccessibleDialogControlShape_BASE public AccessibleDialogControlShape_BASE
@ -62,8 +62,8 @@ private:
bool m_bFocused; bool m_bFocused;
bool m_bSelected; bool m_bSelected;
::com::sun::star::awt::Rectangle m_aBounds; css::awt::Rectangle m_aBounds;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xControlModel; css::uno::Reference< css::beans::XPropertySet > m_xControlModel;
protected: protected:
bool IsFocused(); bool IsFocused();
@ -72,17 +72,17 @@ protected:
void SetFocused (bool bFocused); void SetFocused (bool bFocused);
void SetSelected (bool bSelected); void SetSelected (bool bSelected);
::com::sun::star::awt::Rectangle GetBounds(); css::awt::Rectangle GetBounds();
void SetBounds( const ::com::sun::star::awt::Rectangle& aBounds ); void SetBounds( const css::awt::Rectangle& aBounds );
vcl::Window* GetWindow() const; vcl::Window* GetWindow() const;
OUString GetModelStringProperty( const sal_Char* pPropertyName ); OUString GetModelStringProperty( const sal_Char* pPropertyName );
void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
// OCommonAccessibleComponent // OCommonAccessibleComponent
virtual ::com::sun::star::awt::Rectangle implGetBounds() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::awt::Rectangle implGetBounds() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XComponent // XComponent
virtual void SAL_CALL disposing() SAL_OVERRIDE; virtual void SAL_CALL disposing() SAL_OVERRIDE;
@ -98,41 +98,41 @@ public:
DECLARE_XTYPEPROVIDER() DECLARE_XTYPEPROVIDER()
// XEventListener // XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& rSource ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& rSource ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XPropertyChangeListener // XPropertyChangeListener
virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL propertyChange( const css::beans::PropertyChangeEvent& rEvent ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XServiceInfo // XServiceInfo
virtual OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessible // XAccessible
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleContext // XAccessibleContext
virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getAccessibleDescription( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getAccessibleName( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::lang::Locale SAL_CALL getLocale( ) throw (css::accessibility::IllegalAccessibleComponentStateException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleComponent // XAccessibleComponent
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL grabFocus( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getForeground( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getBackground( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleExtendedComponent // XAccessibleExtendedComponent
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getTitledBorderText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getTitledBorderText( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getToolTipText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getToolTipText( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} // namespace basctl } // namespace basctl

View File

@ -51,9 +51,9 @@ class DlgEdObj;
typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE; typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE;
typedef ::cppu::ImplHelper3 < typedef ::cppu::ImplHelper3 <
::com::sun::star::accessibility::XAccessible, css::accessibility::XAccessible,
::com::sun::star::accessibility::XAccessibleSelection, css::accessibility::XAccessibleSelection,
::com::sun::star::lang::XServiceInfo > AccessibleDialogWindow_BASE; css::lang::XServiceInfo > AccessibleDialogWindow_BASE;
class AccessibleDialogWindow : public AccessibleExtendedComponentHelper_BASE, class AccessibleDialogWindow : public AccessibleExtendedComponentHelper_BASE,
public AccessibleDialogWindow_BASE, public AccessibleDialogWindow_BASE,
@ -64,8 +64,8 @@ private:
class ChildDescriptor class ChildDescriptor
{ {
public: public:
DlgEdObj* pDlgEdObj; DlgEdObj* pDlgEdObj;
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > rxAccessible; css::uno::Reference< css::accessibility::XAccessible > rxAccessible;
ChildDescriptor( DlgEdObj* _pDlgEdObj ); ChildDescriptor( DlgEdObj* _pDlgEdObj );
~ChildDescriptor(); ~ChildDescriptor();
@ -79,18 +79,18 @@ private:
typedef ::std::vector< ChildDescriptor > AccessibleChildren; typedef ::std::vector< ChildDescriptor > AccessibleChildren;
AccessibleChildren m_aAccessibleChildren; AccessibleChildren m_aAccessibleChildren;
VCLExternalSolarLock* m_pExternalLock; VCLExternalSolarLock* m_pExternalLock;
VclPtr<basctl::DialogWindow> m_pDialogWindow; VclPtr<basctl::DialogWindow> m_pDialogWindow;
DlgEditor* m_pDlgEditor; DlgEditor* m_pDlgEditor;
DlgEdModel* m_pDlgEdModel; DlgEdModel* m_pDlgEdModel;
protected: protected:
void UpdateFocused(); void UpdateFocused();
void UpdateSelected(); void UpdateSelected();
void UpdateBounds(); void UpdateBounds();
bool IsChildVisible( const ChildDescriptor& rDesc ); bool IsChildVisible( const ChildDescriptor& rDesc );
void InsertChild( const ChildDescriptor& rDesc ); void InsertChild( const ChildDescriptor& rDesc );
void RemoveChild( const ChildDescriptor& rDesc ); void RemoveChild( const ChildDescriptor& rDesc );
@ -104,7 +104,7 @@ protected:
void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
// OCommonAccessibleComponent // OCommonAccessibleComponent
virtual ::com::sun::star::awt::Rectangle implGetBounds( ) throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; virtual css::awt::Rectangle implGetBounds( ) throw (css::uno::RuntimeException) SAL_OVERRIDE;
// XComponent // XComponent
virtual void SAL_CALL disposing() SAL_OVERRIDE; virtual void SAL_CALL disposing() SAL_OVERRIDE;
@ -123,46 +123,46 @@ public:
DECLARE_XTYPEPROVIDER() DECLARE_XTYPEPROVIDER()
// XServiceInfo // XServiceInfo
virtual OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessible // XAccessible
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleContext // XAccessibleContext
virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getAccessibleDescription( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getAccessibleName( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::lang::Locale SAL_CALL getLocale( ) throw (css::accessibility::IllegalAccessibleComponentStateException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleComponent // XAccessibleComponent
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL grabFocus( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getForeground( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getBackground( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleExtendedComponent // XAccessibleExtendedComponent
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getTitledBorderText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getTitledBorderText( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getToolTipText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getToolTipText( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XAccessibleSelection // XAccessibleSelection
virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL clearAccessibleSelection() virtual void SAL_CALL clearAccessibleSelection()
throw (::com::sun::star::uno::RuntimeException, throw (css::uno::RuntimeException,
std::exception) SAL_OVERRIDE; std::exception) SAL_OVERRIDE;
virtual void SAL_CALL selectAllAccessibleChildren( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL selectAllAccessibleChildren( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} // namespace basctl } // namespace basctl

View File

@ -78,13 +78,13 @@ protected:
void InitSettings(bool bFont, bool bForeground, bool bBackground); void InitSettings(bool bFont, bool bForeground, bool bBackground);
public: public:
DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const& xDialogModel); DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, css::uno::Reference<css::container::XNameContainer> const& xDialogModel);
DialogWindow( DialogWindow* pCurView ); // never implemented DialogWindow( DialogWindow* pCurView ); // never implemented
virtual void ExecuteCommand( SfxRequest& rReq ) SAL_OVERRIDE; virtual void ExecuteCommand( SfxRequest& rReq ) SAL_OVERRIDE;
virtual void GetState( SfxItemSet& ) SAL_OVERRIDE; virtual void GetState( SfxItemSet& ) SAL_OVERRIDE;
DlgEditor& GetEditor() const { return *pEditor; } DlgEditor& GetEditor() const { return *pEditor; }
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const; css::uno::Reference< css::container::XNameContainer > GetDialog() const;
DlgEdModel& GetModel() const; DlgEdModel& GetModel() const;
DlgEdPage& GetPage() const; DlgEdPage& GetPage() const;
DlgEdView& GetView() const; DlgEdView& GetView() const;
@ -112,7 +112,7 @@ public:
virtual void Activating () SAL_OVERRIDE; virtual void Activating () SAL_OVERRIDE;
virtual void Deactivating () SAL_OVERRIDE; virtual void Deactivating () SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE; virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE;
virtual char const* GetHid () const SAL_OVERRIDE; virtual char const* GetHid () const SAL_OVERRIDE;
virtual ItemType GetType () const SAL_OVERRIDE; virtual ItemType GetType () const SAL_OVERRIDE;

View File

@ -45,16 +45,16 @@ public:
virtual ~Controller(); virtual ~Controller();
// XInterface // XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL acquire() throw() SAL_OVERRIDE; virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
virtual void SAL_CALL release() throw() SAL_OVERRIDE; virtual void SAL_CALL release() throw() SAL_OVERRIDE;
// XTypeProvider ( ::SfxBaseController ) // XTypeProvider ( ::SfxBaseController )
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XPropertySet // XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// OPropertySetHelper // OPropertySetHelper
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;

View File

@ -88,7 +88,7 @@ private:
bool m_bAppBasicModified; bool m_bAppBasicModified;
DocumentEventNotifier m_aNotifier; DocumentEventNotifier m_aNotifier;
friend class ContainerListenerImpl; friend class ContainerListenerImpl;
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener > m_xLibListener; css::uno::Reference< css::container::XContainerListener > m_xLibListener;
void Init(); void Init();
void InitTabBar(); void InitTabBar();
@ -173,7 +173,7 @@ public:
svl::IUndoManager* GetUndoManager() SAL_OVERRIDE; svl::IUndoManager* GetUndoManager() SAL_OVERRIDE;
virtual com::sun::star::uno::Reference< com::sun::star::view::XRenderable > GetRenderable() SAL_OVERRIDE; virtual css::uno::Reference< css::view::XRenderable > GetRenderable() SAL_OVERRIDE;
// virtual sal_uInt16 Print( SfxProgress &rProgress, sal_Bool bIsAPI, PrintDialog *pPrintDialog = 0 ); // virtual sal_uInt16 Print( SfxProgress &rProgress, sal_Bool bIsAPI, PrintDialog *pPrintDialog = 0 );
virtual SfxPrinter* GetPrinter( bool bCreate ) SAL_OVERRIDE; virtual SfxPrinter* GetPrinter( bool bCreate ) SAL_OVERRIDE;
@ -204,11 +204,11 @@ public:
// For Dialog Drag&Drop in Dialog Organizer: // For Dialog Drag&Drop in Dialog Organizer:
// (defined in moduldlg.cxx) // (defined in moduldlg.cxx)
static void CopyDialogResources( static void CopyDialogResources(
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >& io_xISP, css::uno::Reference< css::io::XInputStreamProvider >& io_xISP,
const ScriptDocument& rSourceDoc, const OUString& rSourceLibName, const ScriptDocument& rDestDoc, const ScriptDocument& rSourceDoc, const OUString& rSourceLibName, const ScriptDocument& rDestDoc,
const OUString& rDestLibName, const OUString& rDlgName ); const OUString& rDestLibName, const OUString& rDlgName );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > virtual css::uno::Reference< css::frame::XModel >
GetCurrentDocument() const SAL_OVERRIDE; GetCurrentDocument() const SAL_OVERRIDE;
void UpdateObjectCatalog () { aObjectCatalog->UpdateEntries(); } void UpdateObjectCatalog () { aObjectCatalog->UpdateEntries(); }

View File

@ -59,9 +59,9 @@ namespace basctl
// libraries // libraries
::com::sun::star::uno::Sequence< OUString > GetMergedLibraryNames( css::uno::Sequence< OUString > GetMergedLibraryNames(
const ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >& xModLibContainer, const css::uno::Reference< css::script::XLibraryContainer >& xModLibContainer,
const ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >& xDlgLibContainer ); const css::uno::Reference< css::script::XLibraryContainer >& xDlgLibContainer );
/** renames a module /** renames a module
@ -74,10 +74,10 @@ namespace basctl
// new methods for macros // new methods for macros
OUString ChooseMacro( OUString ChooseMacro(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& rxLimitToDocument, const css::uno::Reference< css::frame::XModel >& rxLimitToDocument,
bool bChooseOnly, const OUString& rMacroDesc ); bool bChooseOnly, const OUString& rMacroDesc );
::com::sun::star::uno::Sequence< OUString > GetMethodNames( css::uno::Sequence< OUString > GetMethodNames(
const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rModName ) const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rModName )
throw (css::container::NoSuchElementException, css::uno::RuntimeException, std::exception); throw (css::container::NoSuchElementException, css::uno::RuntimeException, std::exception);

View File

@ -302,15 +302,15 @@ bool QueryDelMacro( const OUString& rName, vcl::Window* pParent = 0 );
bool QueryDelDialog( const OUString& rName, vcl::Window* pParent = 0 ); bool QueryDelDialog( const OUString& rName, vcl::Window* pParent = 0 );
bool QueryDelModule( const OUString& rName, vcl::Window* pParent = 0 ); bool QueryDelModule( const OUString& rName, vcl::Window* pParent = 0 );
bool QueryDelLib( const OUString& rName, bool bRef = false, vcl::Window* pParent = 0 ); bool QueryDelLib( const OUString& rName, bool bRef = false, vcl::Window* pParent = 0 );
bool QueryPassword( const ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >& xLibContainer, const OUString& rLibName, OUString& rPassword, bool bRepeat = false, bool bNewTitle = false ); bool QueryPassword( const css::uno::Reference< css::script::XLibraryContainer >& xLibContainer, const OUString& rLibName, OUString& rPassword, bool bRepeat = false, bool bNewTitle = false );
class ModuleInfoHelper class ModuleInfoHelper
{ {
ModuleInfoHelper (const ModuleInfoHelper&) SAL_DELETED_FUNCTION; ModuleInfoHelper (const ModuleInfoHelper&) SAL_DELETED_FUNCTION;
ModuleInfoHelper& operator = (const ModuleInfoHelper&) SAL_DELETED_FUNCTION; ModuleInfoHelper& operator = (const ModuleInfoHelper&) SAL_DELETED_FUNCTION;
public: public:
static void getObjectName( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& rLib, const OUString& rModName, OUString& rObjName ); static void getObjectName( const css::uno::Reference< css::container::XNameContainer >& rLib, const OUString& rModName, OUString& rObjName );
static sal_Int32 getModuleType( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& rLib, const OUString& rModName ); static sal_Int32 getModuleType( const css::uno::Reference< css::container::XNameContainer >& rLib, const OUString& rModName );
}; };
} // namespace basctl } // namespace basctl

View File

@ -114,14 +114,14 @@ private:
DlgEdPage* pDlgEdPage; // never nullptr DlgEdPage* pDlgEdPage; // never nullptr
boost::scoped_ptr<DlgEdView> pDlgEdView; // never nullptr boost::scoped_ptr<DlgEdView> pDlgEdView; // never nullptr
DlgEdForm* pDlgEdForm; // never nullptr DlgEdForm* pDlgEdForm; // never nullptr
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > m_xUnoControlDialogModel; css::uno::Reference< css::container::XNameContainer > m_xUnoControlDialogModel;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > m_xControlContainer; css::uno::Reference< css::awt::XControlContainer > m_xControlContainer;
::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > m_ClipboardDataFlavors; css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavors;
::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > m_ClipboardDataFlavorsResource; css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavorsResource;
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > m_xSupplier; css::uno::Reference< css::util::XNumberFormatsSupplier > m_xSupplier;
boost::scoped_ptr<DlgEdFactory> pObjFac; // never nullptr boost::scoped_ptr<DlgEdFactory> pObjFac; // never nullptr
vcl::Window& rWindow; // DialogWindow vcl::Window& rWindow; // DialogWindow
boost::scoped_ptr<DlgEdFunc> pFunc; boost::scoped_ptr<DlgEdFunc> pFunc;
DialogWindowLayout& rLayout; DialogWindowLayout& rLayout;
Mode eMode; Mode eMode;
sal_uInt16 eActObj; sal_uInt16 eActObj;
@ -134,13 +134,13 @@ private:
bool bDialogModelChanged; bool bDialogModelChanged;
Idle aMarkIdle; Idle aMarkIdle;
long mnPaintGuard; long mnPaintGuard;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > m_xDocument; css::uno::Reference< css::frame::XModel > m_xDocument;
public: public:
DlgEditor ( DlgEditor (
vcl::Window&, DialogWindowLayout&, vcl::Window&, DialogWindowLayout&,
com::sun::star::uno::Reference<com::sun::star::frame::XModel> const& xModel, css::uno::Reference<css::frame::XModel> const& xModel,
com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xDialogModel css::uno::Reference<css::container::XNameContainer> xDialogModel
); );
virtual ~DlgEditor(); virtual ~DlgEditor();
@ -150,7 +150,7 @@ public:
@see GetWindow @see GetWindow
@see SetWindow @see SetWindow
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > css::uno::Reference< css::awt::XControlContainer >
GetWindowControlContainer(); GetWindowControlContainer();
void SetScrollBars( ScrollBar* pHScroll, ScrollBar* pVScroll ); void SetScrollBars( ScrollBar* pHScroll, ScrollBar* pVScroll );
@ -160,12 +160,12 @@ public:
void DoScroll( ScrollBar* pActScroll ); void DoScroll( ScrollBar* pActScroll );
void UpdateScrollBars(); void UpdateScrollBars();
void SetDialog (com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xUnoControlDialogModel); void SetDialog (css::uno::Reference<css::container::XNameContainer> xUnoControlDialogModel);
void ResetDialog (); void ResetDialog ();
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const css::uno::Reference< css::container::XNameContainer > GetDialog() const
{return m_xUnoControlDialogModel;} {return m_xUnoControlDialogModel;}
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier(); css::uno::Reference< css::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier();
DlgEdModel& GetModel() const { return *pDlgEdModel; } DlgEdModel& GetModel() const { return *pDlgEdModel; }
DlgEdView& GetView() const { return *pDlgEdView; } DlgEdView& GetView() const { return *pDlgEdView; }

View File

@ -30,28 +30,28 @@ namespace basctl
// DlgEdTransferableImpl // DlgEdTransferableImpl
typedef ::cppu::WeakImplHelper< ::com::sun::star::datatransfer::XTransferable, ::com::sun::star::datatransfer::clipboard::XClipboardOwner > DlgEdTransferableHelper; typedef ::cppu::WeakImplHelper< css::datatransfer::XTransferable, css::datatransfer::clipboard::XClipboardOwner > DlgEdTransferableHelper;
class DlgEdTransferableImpl : public DlgEdTransferableHelper class DlgEdTransferableImpl : public DlgEdTransferableHelper
{ {
private: private:
::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > m_SeqFlavors; css::uno::Sequence< css::datatransfer::DataFlavor > m_SeqFlavors;
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > m_SeqData; css::uno::Sequence< css::uno::Any > m_SeqData;
protected: protected:
static bool compareDataFlavors( const ::com::sun::star::datatransfer::DataFlavor& lFlavor, const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); static bool compareDataFlavors( const css::datatransfer::DataFlavor& lFlavor, const css::datatransfer::DataFlavor& rFlavor );
public: public:
DlgEdTransferableImpl( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& aSeqFlavors, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aSeqData ); DlgEdTransferableImpl( const css::uno::Sequence< css::datatransfer::DataFlavor >& aSeqFlavors, const css::uno::Sequence< css::uno::Any >& aSeqData );
virtual ~DlgEdTransferableImpl(); virtual ~DlgEdTransferableImpl();
// XTransferable // XTransferable
virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& rFlavor ) throw(css::datatransfer::UnsupportedFlavorException, css::io::IOException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& rFlavor ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XClipboardOwner // XClipboardOwner
virtual void SAL_CALL lostOwnership( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& xClipboard, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL lostOwnership( const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& xClipboard, const css::uno::Reference< css::datatransfer::XTransferable >& xTrans ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} // namespace basctl } // namespace basctl

View File

@ -33,9 +33,9 @@ namespace basctl
class DlgEdFactory class DlgEdFactory
{ {
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel; const css::uno::Reference< css::frame::XModel > mxModel;
public: public:
DlgEdFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ); DlgEdFactory( const css::uno::Reference< css::frame::XModel >& xModel );
~DlgEdFactory(); ~DlgEdFactory();
DECL_LINK( MakeObject, SdrObjFactory * ); DECL_LINK( MakeObject, SdrObjFactory * );

View File

@ -33,7 +33,7 @@ class DlgEdObj;
// DlgEdPropListenerImpl // DlgEdPropListenerImpl
typedef ::cppu::WeakImplHelper< ::com::sun::star::beans::XPropertyChangeListener > PropertyChangeListenerHelper; typedef ::cppu::WeakImplHelper< css::beans::XPropertyChangeListener > PropertyChangeListenerHelper;
class DlgEdPropListenerImpl: public PropertyChangeListenerHelper class DlgEdPropListenerImpl: public PropertyChangeListenerHelper
{ {
@ -45,10 +45,10 @@ public:
virtual ~DlgEdPropListenerImpl(); virtual ~DlgEdPropListenerImpl();
// XEventListener // XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XPropertyChangeListener // XPropertyChangeListener
virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL propertyChange( const css::beans::PropertyChangeEvent& evt ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
@ -56,7 +56,7 @@ public:
// DlgEdEvtContListenerImpl // DlgEdEvtContListenerImpl
typedef ::cppu::WeakImplHelper< ::com::sun::star::container::XContainerListener > ContainerListenerHelper; typedef ::cppu::WeakImplHelper< css::container::XContainerListener > ContainerListenerHelper;
class DlgEdEvtContListenerImpl: public ContainerListenerHelper class DlgEdEvtContListenerImpl: public ContainerListenerHelper
{ {
@ -68,12 +68,12 @@ public:
virtual ~DlgEdEvtContListenerImpl(); virtual ~DlgEdEvtContListenerImpl();
// XEventListener // XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XContainerListener // XContainerListener
virtual void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL elementInserted( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL elementReplaced( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL elementRemoved( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} // namespace basctl } // namespace basctl

View File

@ -49,10 +49,10 @@ class DlgEdObj: public SdrUnoObj
friend class DlgEdForm; friend class DlgEdForm;
private: private:
bool bIsListening; bool bIsListening;
DlgEdForm* pDlgEdForm; DlgEdForm* pDlgEdForm;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener> m_xPropertyChangeListener; css::uno::Reference< css::beans::XPropertyChangeListener> m_xPropertyChangeListener;
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener> m_xContainerListener; css::uno::Reference< css::container::XContainerListener> m_xContainerListener;
private: private:
DlgEditor& GetDialogEditor (); DlgEditor& GetDialogEditor ();
@ -60,7 +60,7 @@ private:
protected: protected:
DlgEdObj(); DlgEdObj();
DlgEdObj(const OUString& rModelName, DlgEdObj(const OUString& rModelName,
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSFac); const css::uno::Reference< css::lang::XMultiServiceFactory >& rxSFac);
virtual void NbcMove( const Size& rSize ) SAL_OVERRIDE; virtual void NbcMove( const Size& rSize ) SAL_OVERRIDE;
virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) SAL_OVERRIDE; virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) SAL_OVERRIDE;
@ -114,22 +114,22 @@ public:
virtual void SetRectFromProps(); virtual void SetRectFromProps();
virtual void SetPropsFromRect(); virtual void SetPropsFromRect();
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > GetControl() const; css::uno::Reference< css::awt::XControl > GetControl() const;
virtual void PositionAndSizeChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ); virtual void PositionAndSizeChange( const css::beans::PropertyChangeEvent& evt );
void SAL_CALL NameChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw(css::container::NoSuchElementException, css::uno::RuntimeException); void SAL_CALL NameChange( const css::beans::PropertyChangeEvent& evt ) throw(css::container::NoSuchElementException, css::uno::RuntimeException);
void SAL_CALL TabIndexChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException); void SAL_CALL TabIndexChange( const css::beans::PropertyChangeEvent& evt ) throw( css::uno::RuntimeException);
// PropertyChangeListener // PropertyChangeListener
void SAL_CALL _propertyChange(const css::beans::PropertyChangeEvent& evt) throw (css::uno::RuntimeException, std::exception); void SAL_CALL _propertyChange(const css::beans::PropertyChangeEvent& evt) throw (css::uno::RuntimeException, std::exception);
// ContainerListener // ContainerListener
void SAL_CALL _elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); void SAL_CALL _elementInserted( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException);
void SAL_CALL _elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); void SAL_CALL _elementReplaced( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException);
void SAL_CALL _elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); void SAL_CALL _elementRemoved( const css::container::ContainerEvent& Event ) throw(css::uno::RuntimeException);
virtual void SetLayer(SdrLayerID nLayer) SAL_OVERRIDE; virtual void SetLayer(SdrLayerID nLayer) SAL_OVERRIDE;
bool MakeDataAware( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ); bool MakeDataAware( const css::uno::Reference< css::frame::XModel >& xModel );
}; };
@ -146,7 +146,7 @@ private:
DlgEditor& rDlgEditor; DlgEditor& rDlgEditor;
::std::vector<DlgEdObj*> pChildren; ::std::vector<DlgEdObj*> pChildren;
mutable ::boost::optional< ::com::sun::star::awt::DeviceInfo > mpDeviceInfo; mutable ::boost::optional< css::awt::DeviceInfo > mpDeviceInfo;
private: private:
explicit DlgEdForm (DlgEditor&); explicit DlgEdForm (DlgEditor&);
@ -172,14 +172,14 @@ public:
virtual void SetRectFromProps() SAL_OVERRIDE; virtual void SetRectFromProps() SAL_OVERRIDE;
virtual void SetPropsFromRect() SAL_OVERRIDE; virtual void SetPropsFromRect() SAL_OVERRIDE;
virtual void PositionAndSizeChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) SAL_OVERRIDE; virtual void PositionAndSizeChange( const css::beans::PropertyChangeEvent& evt ) SAL_OVERRIDE;
void UpdateTabIndices(); void UpdateTabIndices();
void UpdateTabOrder(); void UpdateTabOrder();
void UpdateGroups(); void UpdateGroups();
void UpdateTabOrderAndGroups(); void UpdateTabOrderAndGroups();
::com::sun::star::awt::DeviceInfo getDeviceInfo() const; css::awt::DeviceInfo getDeviceInfo() const;
private: private:
void ImplInvalidateDeviceInfo(); void ImplInvalidateDeviceInfo();

View File

@ -62,7 +62,7 @@ namespace basctl
/** creates a notifier instance which notifies about events at a single document /** creates a notifier instance which notifies about events at a single document
*/ */
DocumentEventNotifier (DocumentEventListener&, com::sun::star::uno::Reference<com::sun::star::frame::XModel> const& rxDocument); DocumentEventNotifier (DocumentEventListener&, css::uno::Reference<css::frame::XModel> const& rxDocument);
~DocumentEventNotifier(); ~DocumentEventNotifier();

View File

@ -32,15 +32,14 @@ class DlgEditor;
class LocalizationMgr class LocalizationMgr
{ {
::com::sun::star::uno::Reference css::uno::Reference< css::resource::XStringResourceManager > m_xStringResourceManager;
< ::com::sun::star::resource::XStringResourceManager > m_xStringResourceManager;
Shell* m_pShell; Shell* m_pShell;
ScriptDocument m_aDocument; ScriptDocument m_aDocument;
OUString m_aLibName; OUString m_aLibName;
::com::sun::star::lang::Locale m_aLocaleBeforeBasicStart; css::lang::Locale m_aLocaleBeforeBasicStart;
enum HandleResourceMode enum HandleResourceMode
{ {
@ -53,10 +52,11 @@ class LocalizationMgr
COPY_RESOURCES COPY_RESOURCES
}; };
static sal_Int32 implHandleControlResourceProperties(const css::uno::Any& rControlAny, static sal_Int32 implHandleControlResourceProperties(const css::uno::Any& rControlAny,
const OUString& aDialogName, const OUString& aCtrlName, const OUString& aDialogName,
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > const OUString& aCtrlName,
xStringResourceManager, ::com::sun::star::uno::Reference< ::com::sun::star::resource:: css::uno::Reference< css::resource::XStringResourceManager > xStringResourceManager,
XStringResourceResolver > xSourceStringResolver, HandleResourceMode eMode ); css::uno::Reference< css::resource::XStringResourceResolver > xSourceStringResolver,
HandleResourceMode eMode );
void enableResourceForAllLibraryDialogs() void enableResourceForAllLibraryDialogs()
{ {
@ -70,10 +70,9 @@ class LocalizationMgr
public: public:
LocalizationMgr(Shell*, ScriptDocument const&, OUString const& aLibName, LocalizationMgr(Shell*, ScriptDocument const&, OUString const& aLibName,
const ::com::sun::star::uno::Reference const css::uno::Reference < css::resource::XStringResourceManager >& xStringResourceManager );
< ::com::sun::star::resource::XStringResourceManager >& xStringResourceManager );
::com::sun::star::uno::Reference css::uno::Reference< css::resource::XStringResourceManager >getStringResourceManager()
< ::com::sun::star::resource::XStringResourceManager >getStringResourceManager()
{ {
return m_xStringResourceManager; return m_xStringResourceManager;
} }
@ -82,11 +81,11 @@ public:
void handleTranslationbar(); void handleTranslationbar();
void handleAddLocales( const ::com::sun::star::uno::Sequence void handleAddLocales( const css::uno::Sequence
< ::com::sun::star::lang::Locale >& aLocaleSeq ); < css::lang::Locale >& aLocaleSeq );
void handleRemoveLocales( const ::com::sun::star::uno::Sequence void handleRemoveLocales( const css::uno::Sequence
< ::com::sun::star::lang::Locale >& aLocaleSeq ); < css::lang::Locale >& aLocaleSeq );
void handleSetDefaultLocale(const css::lang::Locale& rLocale); void handleSetDefaultLocale(const css::lang::Locale& rLocale);
@ -106,43 +105,42 @@ public:
const css::uno::Any& rControlAny, const OUString& aCtrlName); const css::uno::Any& rControlAny, const OUString& aCtrlName);
static void setStringResourceAtDialog( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName, static void setStringResourceAtDialog( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName,
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel ); css::uno::Reference< css::container::XNameContainer > xDialogModel );
static void renameStringResourceIDs( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName, static void renameStringResourceIDs( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName,
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel ); css::uno::Reference< css::container::XNameContainer > xDialogModel );
static void removeResourceForDialog( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName, static void removeResourceForDialog( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName,
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel ); css::uno::Reference< css::container::XNameContainer > xDialogModel );
static ::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > static css::uno::Reference< css::resource::XStringResourceManager >
getStringResourceFromDialogLibrary( ::com::sun::star::uno::Reference getStringResourceFromDialogLibrary( css::uno::Reference
< ::com::sun::star::container::XNameContainer > xDialogLib ); < css::container::XNameContainer > xDialogLib );
// Clipboard / Drag & Drop // Clipboard / Drag & Drop
static void resetResourceForDialog( static void resetResourceForDialog(
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel, css::uno::Reference< css::container::XNameContainer > xDialogModel,
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > xStringResourceManager ); css::uno::Reference< css::resource::XStringResourceManager > xStringResourceManager );
static void setResourceIDsForDialog( static void setResourceIDsForDialog(
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel, css::uno::Reference< css::container::XNameContainer > xDialogModel,
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > xStringResourceManager ); css::uno::Reference< css::resource::XStringResourceManager > xStringResourceManager );
static void copyResourcesForPastedEditorObject( DlgEditor* pEditor, static void copyResourcesForPastedEditorObject( DlgEditor* pEditor,
const css::uno::Any& rControlAny, const OUString& aCtrlName, const css::uno::Any& rControlAny, const OUString& aCtrlName,
::com::sun::star::uno::Reference< ::com::sun::star::resource:: css::uno::Reference< css::resource::XStringResourceResolver > xSourceStringResolver );
XStringResourceResolver > xSourceStringResolver );
static void copyResourceForDroppedDialog( static void copyResourceForDroppedDialog(
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel, css::uno::Reference< css::container::XNameContainer > xDialogModel,
const OUString& aDialogName, const OUString& aDialogName,
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > xStringResourceManager, css::uno::Reference< css::resource::XStringResourceManager > xStringResourceManager,
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceResolver > xSourceStringResolver ); css::uno::Reference< css::resource::XStringResourceResolver > xSourceStringResolver );
static void copyResourceForDialog( static void copyResourceForDialog(
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& xDialogModel, const css::uno::Reference< css::container::XNameContainer >& xDialogModel,
const ::com::sun::star::uno::Reference< ::com::sun::star::resource:: const css::uno::Reference< css::resource::
XStringResourceResolver >& xSourceStringResolver, XStringResourceResolver >& xSourceStringResolver,
const ::com::sun::star::uno::Reference< ::com::sun::star::resource:: const css::uno::Reference< css::resource::
XStringResourceManager >& xTargetStringResourceManager ); XStringResourceManager >& xTargetStringResourceManager );
}; };

View File

@ -35,19 +35,19 @@ class LocalizationMgr;
struct LanguageEntry struct LanguageEntry
{ {
OUString m_sLanguage; OUString m_sLanguage;
::com::sun::star::lang::Locale m_aLocale; css::lang::Locale m_aLocale;
bool m_bIsDefault; bool m_bIsDefault;
LanguageEntry( const OUString& _rLanguage, LanguageEntry( const OUString& _rLanguage,
const ::com::sun::star::lang::Locale& _rLocale, const css::lang::Locale& _rLocale,
bool _bIsDefault ) : bool _bIsDefault ) :
m_sLanguage( _rLanguage ), m_sLanguage( _rLanguage ),
m_aLocale( _rLocale ), m_aLocale( _rLocale ),
m_bIsDefault( _bIsDefault ) {} m_bIsDefault( _bIsDefault ) {}
}; };
extern bool localesAreEqual( const ::com::sun::star::lang::Locale& rLocaleLeft, extern bool localesAreEqual( const css::lang::Locale& rLocaleLeft,
const ::com::sun::star::lang::Locale& rLocaleRight ); const css::lang::Locale& rLocaleRight );
class ManageLanguageDialog : public ModalDialog class ManageLanguageDialog : public ModalDialog
{ {
@ -96,7 +96,7 @@ public:
virtual ~SetDefaultLanguageDialog(); virtual ~SetDefaultLanguageDialog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > GetLocales() const; css::uno::Sequence< css::lang::Locale > GetLocales() const;
}; };
} // namespace basctl } // namespace basctl

View File

@ -45,13 +45,13 @@ class PropBrw : public DockingWindow, public SfxListener, public SfxBroadcaster
private: private:
bool m_bInitialStateChange; bool m_bInitialStateChange;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 > css::uno::Reference< css::frame::XFrame2 >
m_xMeAsFrame; m_xMeAsFrame;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > css::uno::Reference< css::beans::XPropertySet >
m_xBrowserController; m_xBrowserController;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > css::uno::Reference< css::awt::XWindow >
m_xBrowserComponentWindow; m_xBrowserComponentWindow;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > css::uno::Reference< css::frame::XModel >
m_xContextDocument; m_xContextDocument;
protected: protected:
@ -59,18 +59,16 @@ protected:
virtual void Resize() SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE;
virtual bool Close() SAL_OVERRIDE; virtual bool Close() SAL_OVERRIDE;
typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> > InterfaceArray; typedef std::vector< css::uno::Reference< css::uno::XInterface> > InterfaceArray;
static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > static css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >
CreateMultiSelectionSequence( const SdrMarkList& _rMarkList ); CreateMultiSelectionSequence( const SdrMarkList& _rMarkList );
void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence void implSetNewObjectSequence( const css::uno::Sequence
< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >& _rObjectSeq ); < css::uno::Reference< css::uno::XInterface > >& _rObjectSeq );
void implSetNewObject( void implSetNewObject( const css::uno::Reference< css::beans::XPropertySet >& _rxObject);
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
static OUString GetHeadlineName( static OUString GetHeadlineName( const css::uno::Reference< css::beans::XPropertySet >& _rxObject);
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
public: public:
explicit PropBrw (DialogWindowLayout&); explicit PropBrw (DialogWindowLayout&);
@ -83,7 +81,7 @@ public:
SdrView* GetCurView() const { return pView; } SdrView* GetCurView() const { return pView; }
private: private:
void ImplUpdate( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxContextDocument, SdrView* pView ); void ImplUpdate( const css::uno::Reference< css::frame::XModel >& _rxContextDocument, SdrView* pView );
void ImplDestroyController(); void ImplDestroyController();
void ImplReCreateController(); void ImplReCreateController();
}; };

View File

@ -95,7 +95,7 @@ namespace basctl
@param _rxDocument @param _rxDocument
the document. Must not be <NULL/>. the document. Must not be <NULL/>.
*/ */
explicit ScriptDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxDocument ); explicit ScriptDocument( const css::uno::Reference< css::frame::XModel >& _rxDocument );
/// copy constructor /// copy constructor
ScriptDocument( const ScriptDocument& _rSource ); ScriptDocument( const ScriptDocument& _rSource );
@ -205,7 +205,7 @@ namespace basctl
Must not be used when the instance operates on the application-wide Must not be used when the instance operates on the application-wide
Basic/Dialog libraries. Basic/Dialog libraries.
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > css::uno::Reference< css::frame::XModel >
getDocument() const; getDocument() const;
/** returns the UNO component representing the document which the instance operates on /** returns the UNO component representing the document which the instance operates on
@ -213,14 +213,14 @@ namespace basctl
May be used when the instance operates on the application-wide May be used when the instance operates on the application-wide
Basic/Dialog libraries, in this case it returns <NULL/>. Basic/Dialog libraries, in this case it returns <NULL/>.
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > css::uno::Reference< css::frame::XModel >
getDocumentOrNull() const; getDocumentOrNull() const;
/** returns the Basic or Dialog library container of the document /** returns the Basic or Dialog library container of the document
If the document is not valid, <NULL/> is returned. If the document is not valid, <NULL/> is returned.
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer > css::uno::Reference< css::script::XLibraryContainer >
getLibraryContainer( LibraryContainerType _eType ) const; getLibraryContainer( LibraryContainerType _eType ) const;
/** determines whether there exists a library of the given type, with the given name /** determines whether there exists a library of the given type, with the given name
@ -239,7 +239,7 @@ namespace basctl
@throws NoSuchElementException @throws NoSuchElementException
if there is no script library with the given name if there is no script library with the given name
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > css::uno::Reference< css::container::XNameContainer >
getLibrary( LibraryContainerType _eType, const OUString& _rLibName, bool _bLoadLibrary ) const; getLibrary( LibraryContainerType _eType, const OUString& _rLibName, bool _bLoadLibrary ) const;
/** creates a script or dialog library in the document, or returns an existing one /** creates a script or dialog library in the document, or returns an existing one
@ -247,12 +247,12 @@ namespace basctl
If <code>_rLibName</code> denotes an existing library which does not need to be created, If <code>_rLibName</code> denotes an existing library which does not need to be created,
then this library will automatically be loaded, and then returned. then this library will automatically be loaded, and then returned.
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > css::uno::Reference< css::container::XNameContainer >
getOrCreateLibrary( LibraryContainerType _eType, const OUString& _rLibName ) const; getOrCreateLibrary( LibraryContainerType _eType, const OUString& _rLibName ) const;
/** returns the names of the modules in a given script or dialog library of the document /** returns the names of the modules in a given script or dialog library of the document
*/ */
::com::sun::star::uno::Sequence< OUString > css::uno::Sequence< OUString >
getObjectNames( LibraryContainerType _eType, const OUString& _rLibName ) const; getObjectNames( LibraryContainerType _eType, const OUString& _rLibName ) const;
/** retrieves a name for a newly to be created module or dialog /** retrieves a name for a newly to be created module or dialog
@ -264,7 +264,7 @@ namespace basctl
void loadLibraryIfExists( LibraryContainerType _eType, const OUString& _rLibrary ); void loadLibraryIfExists( LibraryContainerType _eType, const OUString& _rLibrary );
/// retrieves the (combined) names of all script and dialog libraries /// retrieves the (combined) names of all script and dialog libraries
::com::sun::star::uno::Sequence< OUString > css::uno::Sequence< OUString >
getLibraryNames() const; getLibraryNames() const;
/** removes a given script module from the document /** removes a given script module from the document
@ -366,7 +366,7 @@ namespace basctl
bool getDialog( bool getDialog(
const OUString& _rLibName, const OUString& _rLibName,
const OUString& _rDialogName, const OUString& _rDialogName,
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >& _out_rDialogProvider css::uno::Reference< css::io::XInputStreamProvider >& _out_rDialogProvider
) const; ) const;
/** renames a dialog /** renames a dialog
@ -385,7 +385,7 @@ namespace basctl
const OUString& _rLibName, const OUString& _rLibName,
const OUString& _rOldName, const OUString& _rOldName,
const OUString& _rNewName, const OUString& _rNewName,
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& _rxExistingDialogModel const css::uno::Reference< css::container::XNameContainer >& _rxExistingDialogModel
) const; ) const;
/** create a dialog /** create a dialog
@ -401,7 +401,7 @@ namespace basctl
bool createDialog( bool createDialog(
const OUString& _rLibName, const OUString& _rLibName,
const OUString& _rDialogName, const OUString& _rDialogName,
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >& _out_rDialogProvider css::uno::Reference< css::io::XInputStreamProvider >& _out_rDialogProvider
) const; ) const;
/** inserts a given dialog into a given library /** inserts a given dialog into a given library
@ -420,7 +420,7 @@ namespace basctl
bool insertDialog( bool insertDialog(
const OUString& _rLibName, const OUString& _rLibName,
const OUString& _rDialogName, const OUString& _rDialogName,
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >& _rDialogProvider const css::uno::Reference< css::io::XInputStreamProvider >& _rDialogProvider
) const; ) const;
/** determines whether the document is read-only /** determines whether the document is read-only
@ -458,7 +458,7 @@ namespace basctl
<code>isApplication</code> returns <FALSE/> <code>isApplication</code> returns <FALSE/>
*/ */
bool saveDocument( bool saveDocument(
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator >& _rxStatusIndicator const css::uno::Reference< css::task::XStatusIndicator >& _rxStatusIndicator
) const; ) const;
/// returns the location of a library given by name /// returns the location of a library given by name