shutdownicon.cxx (ac203367) | shutdownicon.cxx (2ad018be) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 48 unchanged lines hidden (view full) --- 57#endif 58#include <cppuhelper/compbase1.hxx> 59#include <sfx2/dispatch.hxx> 60#include <comphelper/extract.hxx> 61#include <tools/urlobj.hxx> 62#include <osl/security.hxx> 63#include <osl/file.hxx> 64#include <rtl/bootstrap.hxx> | 1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 48 unchanged lines hidden (view full) --- 57#endif 58#include <cppuhelper/compbase1.hxx> 59#include <sfx2/dispatch.hxx> 60#include <comphelper/extract.hxx> 61#include <tools/urlobj.hxx> 62#include <osl/security.hxx> 63#include <osl/file.hxx> 64#include <rtl/bootstrap.hxx> |
65#include <rtl/ustrbuf.hxx> |
|
65#include <tools/link.hxx> 66#ifdef UNX // need symlink 67#include <unistd.h> 68#include <errno.h> 69#endif 70#include <vcl/timer.hxx> 71 72#include "sfx2/sfxresid.hxx" --- 748 unchanged lines hidden (view full) --- 821 } 822#ifdef WNT 823 aShortcutName += OUString( RTL_CONSTASCII_USTRINGPARAM( ".lnk" ) ); 824 825 OUString aShortcut(GetAutostartFolderNameW32()); 826 aShortcut += OUString( RTL_CONSTASCII_USTRINGPARAM( "\\" ) ); 827 aShortcut += aShortcutName; 828#else // UNX | 66#include <tools/link.hxx> 67#ifdef UNX // need symlink 68#include <unistd.h> 69#include <errno.h> 70#endif 71#include <vcl/timer.hxx> 72 73#include "sfx2/sfxresid.hxx" --- 748 unchanged lines hidden (view full) --- 822 } 823#ifdef WNT 824 aShortcutName += OUString( RTL_CONSTASCII_USTRINGPARAM( ".lnk" ) ); 825 826 OUString aShortcut(GetAutostartFolderNameW32()); 827 aShortcut += OUString( RTL_CONSTASCII_USTRINGPARAM( "\\" ) ); 828 aShortcut += aShortcutName; 829#else // UNX |
829 OUString aShortcut = getDotAutostart(); 830 aShortcut += OUString( RTL_CONSTASCII_USTRINGPARAM( "/qstart.desktop" ) ); | 830 OUStringBuffer aStrBuff( getDotAutostart() ); 831 aStrBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( "/" ) ); 832 if ( sal_Int32 len = aShortcutName.getLength() ) 833 aStrBuff.append( aShortcutName.getStr(), len ); 834 else 835 aStrBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( "qstart" ) ); 836 aStrBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( ".desktop" ) ); 837 838 OUString aShortcut( aStrBuff.makeStringAndClear() ); |
831#endif // UNX 832 return aShortcut; 833#endif // ENABLE_QUICKSTART_APPLET 834} 835 836bool ShutdownIcon::GetAutostart( ) 837{ 838#if defined(OS2) --- 127 unchanged lines hidden --- | 839#endif // UNX 840 return aShortcut; 841#endif // ENABLE_QUICKSTART_APPLET 842} 843 844bool ShutdownIcon::GetAutostart( ) 845{ 846#if defined(OS2) --- 127 unchanged lines hidden --- |