LibreOffice Module fpicker (master)  1
SalAquaPicker.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_FPICKER_SOURCE_AQUA_SALAQUAPICKER_HXX
21 #define INCLUDED_FPICKER_SOURCE_AQUA_SALAQUAPICKER_HXX
22 
23 #include <osl/mutex.hxx>
24 
25 #include <rtl/ustring.hxx>
26 
27 #include <com/sun/star/lang/IllegalArgumentException.hpp>
28 
29 #include <com/sun/star/uno/RuntimeException.hpp>
30 #include "ControlHelper.hxx"
31 
32 #include <premac.h>
33 #import <Cocoa/Cocoa.h>
34 #include <postmac.h>
35 
37 {
38 public:
39  // constructor
40  SalAquaPicker();
41  virtual ~SalAquaPicker();
42 
43  int run();
44  int runandwaitforresult();
45 
46  OUString const& getDisplayDirectory() { return m_sDisplayDirectory; }
47 
49 
50 protected:
52 
53  NSSavePanel* m_pDialog;
54 
56 
57  osl::Mutex m_rbHelperMtx;
58 
59  // The type of dialog
61  {
65  };
66 
68 
70  void implsetTitle(const OUString& aTitle);
71 
74  void implsetDisplayDirectory(const OUString& rDirectory);
75 
77  OUString const& implgetDisplayDirectory();
78 
79  void implInitialize();
80 };
81 
82 #endif
83 
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString const & implgetDisplayDirectory()
OUString const & getDisplayDirectory()
int runandwaitforresult()
void implsetDisplayDirectory(const OUString &rDirectory)
void implInitialize()
ControlHelper * m_pControlHelper
osl::Mutex m_rbHelperMtx
void implsetTitle(const OUString &aTitle)
ControlHelper * getControlHelper() const
virtual ~SalAquaPicker()
OUString m_sDisplayDirectory
NSSavePanel * m_pDialog
NavigationServices_DialogType m_nDialogType