bump product version to 4.1.6.2
[LibreOffice.git] / sc / source / ui / inc / autostyl.hxx
blob8aef06f0a15443ee02dc0657dd2bd78e953d46d6
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 #ifndef SC_AUTOSTYL_HXX
21 #define SC_AUTOSTYL_HXX
23 #include <boost/ptr_container/ptr_vector.hpp>
25 #include <tools/string.hxx>
27 #include <vcl/timer.hxx>
29 class ScDocShell;
30 class ScRange;
31 struct ScAutoStyleData;
32 struct ScAutoStyleInitData;
34 class ScAutoStyleList
36 private:
38 ScDocShell* pDocSh;
39 Timer aTimer;
40 Timer aInitTimer;
41 sal_uLong nTimerStart;
42 boost::ptr_vector<ScAutoStyleData> aEntries;
43 boost::ptr_vector<ScAutoStyleInitData> aInitials;
45 void ExecuteEntries();
46 void AdjustEntries(sal_uLong nDiff);
47 void StartTimer(sal_uLong nNow);
48 DECL_LINK( TimerHdl, void* );
49 DECL_LINK( InitHdl, void* );
51 public:
52 ScAutoStyleList(ScDocShell* pShell);
53 ~ScAutoStyleList();
55 void AddInitial( const ScRange& rRange, const String& rStyle1,
56 sal_uLong nTimeout, const String& rStyle2 );
57 void AddEntry( sal_uLong nTimeout, const ScRange& rRange, const String& rStyle );
59 void ExecuteAllNow();
64 #endif
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */