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#pragma once
21
22#include <osl/mutex.hxx>
23
24#include <rtl/ustring.hxx>
25
26#include <com/sun/star/lang/IllegalArgumentException.hpp>
27
28#include <com/sun/star/uno/RuntimeException.hpp>
29#include "ControlHelper.hxx"
30
31#include <premac.h>
32#import <Cocoa/Cocoa.h>
33#include <postmac.h>
34
36{
37public:
38 // constructor
40 virtual ~SalAquaPicker();
41
42 int run();
44
45 OUString const& getDisplayDirectory() { return m_sDisplayDirectory; }
46
48
49protected:
51
52 NSSavePanel* m_pDialog;
53
55
56 osl::Mutex m_rbHelperMtx;
57
58 // The type of dialog
60 {
64 };
65
67
69 void implsetTitle(const OUString& aTitle);
70
73 void implsetDisplayDirectory(const OUString& rDirectory);
74
76 OUString const& implgetDisplayDirectory();
77
78 void implInitialize();
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
osl::Mutex m_rbHelperMtx
OUString const & getDisplayDirectory()
OUString const & implgetDisplayDirectory()
@ NAVIGATIONSERVICES_DIRECTORY
void implInitialize()
int runandwaitforresult()
void implsetTitle(const OUString &aTitle)
virtual ~SalAquaPicker()
OUString m_sDisplayDirectory
ControlHelper * getControlHelper() const
ControlHelper * m_pControlHelper
NavigationServices_DialogType m_nDialogType
NSSavePanel * m_pDialog
void implsetDisplayDirectory(const OUString &rDirectory)