LibreOffice Module framework (master) 1
acceleratorconfigurationwriter.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
23
24#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
25#include <rtl/ustring.hxx>
26
27namespace framework{
28
30{
31
32 // member
33
34 private:
35
37 css::uno::Reference< css::xml::sax::XDocumentHandler > m_xConfig;
38
42
43 // interface
44
45 public:
46
58 css::uno::Reference< css::xml::sax::XDocumentHandler > xConfig );
59
62
64 void flush();
65
66 // helper
67
68 private:
69
71 void impl_ts_writeKeyCommandPair(const css::awt::KeyEvent& aKey ,
72 const OUString& sCommand,
73 const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig );
74};
75
76} // namespace framework
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
implements a cache for any accelerator configuration.
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xConfig
needed to write the xml configuration.
AcceleratorConfigurationWriter(const AcceleratorCache &rContainer, css::uno::Reference< css::xml::sax::XDocumentHandler > xConfig)
connect this new writer instance to an outside container, which should be flushed to the underlying X...
void impl_ts_writeKeyCommandPair(const css::awt::KeyEvent &aKey, const OUString &sCommand, const css::uno::Reference< css::xml::sax::XDocumentHandler > &xConfig)
TODO.
const AcceleratorCache & m_rContainer
reference to the outside container, where this writer must work on.