diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-21 20:45:47 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-21 21:05:34 -0500 |
commit | c2d11710716f3ec5696f3402951be0d7539fe376 (patch) | |
tree | c582808194a6817dea1cb9f2f89bf040bda05a07 /sfx2 | |
parent | 5432e2a5ef7a3e131d2496e19bd0c6a86955319f (diff) |
Forward declare SfxMenuCtrlFactArr_Impl in sfx2/app.hxx public header.
Change-Id: Iaf287912a52eb8785c687a13536fc170094425c7
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/Library_sfx.mk | 1 | ||||
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/appl/appquit.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/appl/appreg.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/appl/module.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/control/ctrlfactoryimpl.cxx | 42 | ||||
-rw-r--r-- | sfx2/source/inc/ctrlfactoryimpl.hxx | 43 | ||||
-rw-r--r-- | sfx2/source/menu/mnuitem.cxx | 1 |
8 files changed, 91 insertions, 0 deletions
diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk index 00c878106505..0fc03c2271c2 100644 --- a/sfx2/Library_sfx.mk +++ b/sfx2/Library_sfx.mk @@ -134,6 +134,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\ sfx2/source/config/evntconf \ sfx2/source/control/bindings \ sfx2/source/control/ctrlitem \ + sfx2/source/control/ctrlfactoryimpl \ sfx2/source/control/dispatch \ sfx2/source/control/itemdel \ sfx2/source/control/minfitem \ diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index a2d5d487fd96..6238f5da1e2b 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -67,6 +67,7 @@ #include <sfx2/fcontnr.hxx> #include "helper.hxx" #include "sfxpicklist.hxx" +#include <ctrlfactoryimpl.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::frame; diff --git a/sfx2/source/appl/appquit.cxx b/sfx2/source/appl/appquit.cxx index b601bfa8f0d4..fb1771f033de 100644 --- a/sfx2/source/appl/appquit.cxx +++ b/sfx2/source/appl/appquit.cxx @@ -54,6 +54,7 @@ #include <sfx2/docfac.hxx> #include "appbaslib.hxx" #include "childwinimpl.hxx" +#include <ctrlfactoryimpl.hxx> #include <basic/basicmanagerrepository.hxx> #include <svtools/svtresid.hxx> diff --git a/sfx2/source/appl/appreg.cxx b/sfx2/source/appl/appreg.cxx index e9c1e6e1905a..923016d01c94 100644 --- a/sfx2/source/appl/appreg.cxx +++ b/sfx2/source/appl/appreg.cxx @@ -34,6 +34,7 @@ #include "partwnd.hxx" #include <sfx2/sfxsids.hrc> #include "recfloat.hxx" +#include <ctrlfactoryimpl.hxx> #include <sfx2/objsh.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/objface.hxx> diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 974276ba4f1e..71c06b499844 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -42,6 +42,7 @@ #define SfxModule #include "sfxslots.hxx" #include "childwinimpl.hxx" +#include <ctrlfactoryimpl.hxx> static SfxModuleArr_Impl* pModules=0; diff --git a/sfx2/source/control/ctrlfactoryimpl.cxx b/sfx2/source/control/ctrlfactoryimpl.cxx new file mode 100644 index 000000000000..3e5fbf515c51 --- /dev/null +++ b/sfx2/source/control/ctrlfactoryimpl.cxx @@ -0,0 +1,42 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#include <ctrlfactoryimpl.hxx> + +const SfxMenuCtrlFactory& SfxMenuCtrlFactArr_Impl::operator []( size_t i ) const +{ + return maData[i]; +} + +SfxMenuCtrlFactory& SfxMenuCtrlFactArr_Impl::operator []( size_t i ) +{ + return maData[i]; +} + +void SfxMenuCtrlFactArr_Impl::push_back( SfxMenuCtrlFactory* p ) +{ + maData.push_back(p); +} + +size_t SfxMenuCtrlFactArr_Impl::size() const +{ + return maData.size(); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/ctrlfactoryimpl.hxx b/sfx2/source/inc/ctrlfactoryimpl.hxx new file mode 100644 index 000000000000..a40f275a6bbd --- /dev/null +++ b/sfx2/source/inc/ctrlfactoryimpl.hxx @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_SFX2_CTRLFACTORYIMPL_HXX +#define INCLUDED_SFX2_CTRLFACTORYIMPL_HXX + +#include <sfx2/mnuitem.hxx> + +#include <boost/ptr_container/ptr_vector.hpp> + +class SfxMenuCtrlFactArr_Impl +{ + typedef boost::ptr_vector<SfxMenuCtrlFactory> DataType; + DataType maData; + +public: + const SfxMenuCtrlFactory& operator []( size_t i ) const; + SfxMenuCtrlFactory& operator []( size_t i ); + + void push_back( SfxMenuCtrlFactory* p ); + + size_t size() const; +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx index 8db0e1e8e582..49fe481d54b6 100644 --- a/sfx2/source/menu/mnuitem.cxx +++ b/sfx2/source/menu/mnuitem.cxx @@ -48,6 +48,7 @@ #include <sfx2/dispatch.hxx> #include "sfxtypes.hxx" #include "virtmenu.hxx" +#include <ctrlfactoryimpl.hxx> #include <sfx2/mnuitem.hxx> #include <sfx2/tbxctrl.hxx> #include <sfx2/module.hxx> |