summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdowniconaqua.mm
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-09-28 23:47:40 +0300
committerTor Lillqvist <tml@iki.fi>2011-09-28 23:50:13 +0300
commit41ebcaefd132d15616b88a5fa3a3d3aec5b4c50a (patch)
treedbe8c988f7e9870b75067078c065a065fdba8aba /sfx2/source/appl/shutdowniconaqua.mm
parent1db86ebf0dffe41c25d2d6e803e443daf6a32572 (diff)
Add mode lines and detabify
Diffstat (limited to 'sfx2/source/appl/shutdowniconaqua.mm')
-rwxr-xr-xsfx2/source/appl/shutdowniconaqua.mm55
1 files changed, 29 insertions, 26 deletions
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index 8cb96b1f549b..d20d998a94b6 100755
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -149,16 +150,16 @@ struct RecentMenuEntry
class RecentFilesStringLength : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XStringWidth >
{
- public:
- RecentFilesStringLength() {}
- virtual ~RecentFilesStringLength() {}
-
- // XStringWidth
- sal_Int32 SAL_CALL queryStringWidth( const ::rtl::OUString& aString )
- throw (::com::sun::star::uno::RuntimeException)
- {
- return aString.getLength();
- }
+ public:
+ RecentFilesStringLength() {}
+ virtual ~RecentFilesStringLength() {}
+
+ // XStringWidth
+ sal_Int32 SAL_CALL queryStringWidth( const ::rtl::OUString& aString )
+ throw (::com::sun::star::uno::RuntimeException)
+ {
+ return aString.getLength();
+ }
};
@interface RecentMenuDelegate : NSObject
@@ -228,8 +229,8 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper1< ::com::sun::star
// insert new recent items
for ( sal_uInt32 i = 0; i < m_pRecentFilesItems->size(); i++ )
{
- rtl::OUString aMenuTitle;
- INetURLObject aURL( (*m_pRecentFilesItems)[i].aURL );
+ rtl::OUString aMenuTitle;
+ INetURLObject aURL( (*m_pRecentFilesItems)[i].aURL );
if ( aURL.GetProtocol() == INET_PROT_FILE )
{
@@ -237,8 +238,8 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper1< ::com::sun::star
// path and abbreviate it with a special function:
String aFileSystemPath( aURL.getFSysPath( INetURLObject::FSYS_DETECT ) );
- ::rtl::OUString aSystemPath( aFileSystemPath );
- ::rtl::OUString aCompactedSystemPath;
+ ::rtl::OUString aSystemPath( aFileSystemPath );
+ ::rtl::OUString aCompactedSystemPath;
oslFileError nError = osl_abbreviateSystemPath( aSystemPath.pData, &aCompactedSystemPath.pData, 46, NULL );
if ( !nError )
@@ -284,16 +285,16 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper1< ::com::sun::star
sal_Int32 nPos = aFilter.indexOf( '|' );
if ( nPos >= 0 )
{
- rtl::OUString aFilterOptions;
+ rtl::OUString aFilterOptions;
- if ( nPos < ( aFilter.getLength() - 1 ) )
- aFilterOptions = aFilter.copy( nPos+1 );
+ if ( nPos < ( aFilter.getLength() - 1 ) )
+ aFilterOptions = aFilter.copy( nPos+1 );
- aArgsList[2].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FilterOptions" ));
- aArgsList[2].Value = makeAny( aFilterOptions );
+ aArgsList[2].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FilterOptions" ));
+ aArgsList[2].Value = makeAny( aFilterOptions );
- aFilter = aFilter.copy( 0, nPos-1 );
- aArgsList.realloc( ++NUM_OF_PICKLIST_ARGS );
+ aFilter = aFilter.copy( 0, nPos-1 );
+ aArgsList.realloc( ++NUM_OF_PICKLIST_ARGS );
}
aArgsList[NUM_OF_PICKLIST_ARGS-1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FilterName" ));
@@ -402,15 +403,15 @@ extern "C"
void aqua_init_systray()
{
- SolarMutexGuard aGuard;
+ SolarMutexGuard aGuard;
ShutdownIcon *pShutdownIcon = ShutdownIcon::getInstance();
if( ! pShutdownIcon )
return;
- // disable shutdown
- pShutdownIcon->SetVeto( true );
- pShutdownIcon->addTerminateListener();
+ // disable shutdown
+ pShutdownIcon->SetVeto( true );
+ pShutdownIcon->addTerminateListener();
if( ! pDefMenu )
{
@@ -427,7 +428,7 @@ void aqua_init_systray()
[pDockMenu setAutoenablesItems: NO];
// collect the URLs of the entries in the File/New menu
- SvtModuleOptions aModuleOptions;
+ SvtModuleOptions aModuleOptions;
std::set< rtl::OUString > aFileNewAppsAvailable;
SvtDynamicMenuOptions aOpt;
Sequence < Sequence < PropertyValue > > aNewMenu = aOpt.GetMenu( E_NEWMENU );
@@ -525,3 +526,5 @@ void SAL_DLLPUBLIC_EXPORT aqua_shutdown_systray()
}
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */