calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / fpicker / source / aqua / SalAquaPicker.hxx
blob4eab78c5295519bf9eee6fadf6421970479a1436
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <osl/mutex.hxx>
24 #include <rtl/ustring.hxx>
26 #include <com/sun/star/lang/IllegalArgumentException.hpp>
28 #include <com/sun/star/uno/RuntimeException.hpp>
29 #include "ControlHelper.hxx"
31 #include <premac.h>
32 #import <Cocoa/Cocoa.h>
33 #include <postmac.h>
35 class SalAquaPicker
37 public:
38 // constructor
39 SalAquaPicker();
40 virtual ~SalAquaPicker();
42 int run();
43 int runandwaitforresult();
45 OUString const& getDisplayDirectory() { return m_sDisplayDirectory; }
47 ControlHelper* getControlHelper() const { return m_pControlHelper; }
49 protected:
50 OUString m_sDisplayDirectory;
52 NSSavePanel* m_pDialog;
54 ControlHelper* m_pControlHelper;
56 osl::Mutex m_rbHelperMtx;
58 // The type of dialog
59 enum NavigationServices_DialogType
61 NAVIGATIONSERVICES_OPEN,
62 NAVIGATIONSERVICES_SAVE,
63 NAVIGATIONSERVICES_DIRECTORY
66 NavigationServices_DialogType m_nDialogType;
68 /// @throws css::uno::RuntimeException
69 void implsetTitle(const OUString& aTitle);
71 /// @throws css::lang::IllegalArgumentException
72 /// @throws css::uno::RuntimeException
73 void implsetDisplayDirectory(const OUString& rDirectory);
75 /// @throws css::uno::RuntimeException
76 OUString const& implgetDisplayDirectory();
78 void implInitialize();
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */