summaryrefslogtreecommitdiff
path: root/fpicker/source/aqua
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 12:58:22 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-13 15:18:38 +0100
commit4d9e9f2125867adde3558b9866d08f7bafb4386b (patch)
treeb8316bd23bade746a4e4a5ff84a1b9985f048d71 /fpicker/source/aqua
parent49494bb703107835f83671d9272a0326feec8bb4 (diff)
tdf#123936 Formatting files in module fpicker with clang-format
Change-Id: Ieeaf63081023a7b1ea31b2a276c31ac3114b5657 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105673 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'fpicker/source/aqua')
-rw-r--r--fpicker/source/aqua/CFStringUtilities.hxx5
-rw-r--r--fpicker/source/aqua/NSString_OOoAdditions.hxx4
-rw-r--r--fpicker/source/aqua/SalAquaPicker.hxx26
3 files changed, 15 insertions, 20 deletions
diff --git a/fpicker/source/aqua/CFStringUtilities.hxx b/fpicker/source/aqua/CFStringUtilities.hxx
index 784487d79448..ca8a84348525 100644
--- a/fpicker/source/aqua/CFStringUtilities.hxx
+++ b/fpicker/source/aqua/CFStringUtilities.hxx
@@ -27,14 +27,15 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-enum InfoType {
+enum InfoType
+{
FULLPATH,
FILENAME,
PATHWITHOUTLASTCOMPONENT
};
OUString CFStringToOUString(const CFStringRef sOrig);
-OUString FSRefToOUString(FSRef const & fsRef, InfoType info = FULLPATH);
+OUString FSRefToOUString(FSRef const& fsRef, InfoType info = FULLPATH);
OUString CFURLRefToOUString(CFURLRef aUrlRef, InfoType info);
CFStringRef CFStringCreateWithOUString(const OUString& aString);
diff --git a/fpicker/source/aqua/NSString_OOoAdditions.hxx b/fpicker/source/aqua/NSString_OOoAdditions.hxx
index 08bfbd47d356..cd33d959d739 100644
--- a/fpicker/source/aqua/NSString_OOoAdditions.hxx
+++ b/fpicker/source/aqua/NSString_OOoAdditions.hxx
@@ -27,8 +27,8 @@
//for Cocoa types
@interface NSString (OOoAdditions)
-+ (id) stringWithOUString:(const OUString&)ouString;
-- (OUString) OUString;
++ (id)stringWithOUString:(const OUString&)ouString;
+- (OUString)OUString;
@end
#endif // INCLUDED_FPICKER_SOURCE_AQUA_NSSTRING_OOOADDITIONS_HXX
diff --git a/fpicker/source/aqua/SalAquaPicker.hxx b/fpicker/source/aqua/SalAquaPicker.hxx
index 739297e3ea71..63f76a6055ad 100644
--- a/fpicker/source/aqua/SalAquaPicker.hxx
+++ b/fpicker/source/aqua/SalAquaPicker.hxx
@@ -33,9 +33,6 @@
#import <Cocoa/Cocoa.h>
#include <postmac.h>
-
-
-
class SalAquaPicker
{
public:
@@ -46,24 +43,22 @@ public:
int run();
int runandwaitforresult();
- OUString const & getDisplayDirectory() { return m_sDisplayDirectory; }
+ OUString const& getDisplayDirectory() { return m_sDisplayDirectory; }
- ControlHelper* getControlHelper() const {
- return m_pControlHelper;
- }
+ ControlHelper* getControlHelper() const { return m_pControlHelper; }
protected:
-
OUString m_sDisplayDirectory;
- NSSavePanel *m_pDialog;
+ NSSavePanel* m_pDialog;
- ControlHelper *m_pControlHelper;
+ ControlHelper* m_pControlHelper;
osl::Mutex m_rbHelperMtx;
// The type of dialog
- enum NavigationServices_DialogType {
+ enum NavigationServices_DialogType
+ {
NAVIGATIONSERVICES_OPEN,
NAVIGATIONSERVICES_SAVE,
NAVIGATIONSERVICES_DIRECTORY
@@ -72,17 +67,16 @@ protected:
NavigationServices_DialogType m_nDialogType;
/// @throws css::uno::RuntimeException
- void implsetTitle( const OUString& aTitle );
+ void implsetTitle(const OUString& aTitle);
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void implsetDisplayDirectory( const OUString& rDirectory );
+ void implsetDisplayDirectory(const OUString& rDirectory);
/// @throws css::uno::RuntimeException
- OUString const & implgetDisplayDirectory( );
-
- void implInitialize( );
+ OUString const& implgetDisplayDirectory();
+ void implInitialize();
};
#endif