DeckConfiguration.cxx (ff12d537) DeckConfiguration.cxx (95a18594)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 24 unchanged lines hidden (view full) ---

33 : mpDeck(NULL),
34 maPanels()
35{
36}
37
38
39
40
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 24 unchanged lines hidden (view full) ---

33 : mpDeck(NULL),
34 maPanels()
35{
36}
37
38
39
40
41void DeckConfiguration::Disable (void)
41void DeckConfiguration::Dispose (void)
42{
43 // Move the deck and its children temporarily to a new root to
44 // avoid a crash when calling removeWindow(,NULL).
45 Window aTemporaryParent (NULL,0);
46 mpDeck->Hide();
47 mpDeck->Dispose();
48 mpDeck->GetParent()->removeWindow(mpDeck, &aTemporaryParent);
49 maPanels.clear();
50 mpDeck = NULL;
51}
52
53
42{
43 // Move the deck and its children temporarily to a new root to
44 // avoid a crash when calling removeWindow(,NULL).
45 Window aTemporaryParent (NULL,0);
46 mpDeck->Hide();
47 mpDeck->Dispose();
48 mpDeck->GetParent()->removeWindow(mpDeck, &aTemporaryParent);
49 maPanels.clear();
50 mpDeck = NULL;
51}
52
53
54
55
56void DeckConfiguration::Activate (void)
57{
58 mpDeck->SetPanels(maPanels);
59}
60
61
62} } // end of namespace sfx2::sidebar
54} } // end of namespace sfx2::sidebar