drviewsa.cxx (0a7c867c) drviewsa.cxx (c9c475c9)
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

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

866
867void DrawViewShell::GetAnnotationState (SfxItemSet& rItemSet )
868{
869 if( mpAnnotationManager.get() )
870 mpAnnotationManager->GetAnnotationState( rItemSet );
871}
872
873
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

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

866
867void DrawViewShell::GetAnnotationState (SfxItemSet& rItemSet )
868{
869 if( mpAnnotationManager.get() )
870 mpAnnotationManager->GetAnnotationState( rItemSet );
871}
872
873
874
875
874EnumContext::Context DrawViewShell::GetContextForSelection (void) const
875{
876EnumContext::Context DrawViewShell::GetContextForSelection (void) const
877{
876 if (mpDrawView->GetMarkedObjectList().GetMarkCount() == 1)
877 if (mpDrawView->GetTextEditObject() != NULL)
878 if (mpDrawView->GetTextEditOutlinerView() != NULL)
879 return EnumContext::Context_DrawText;
880
881 // All other cases are handled by the SelectionAnalyzer.
882 return ::svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD(
883 mpDrawView->GetMarkedObjectList(),
884 meEditMode == EM_MASTERPAGE,
885 mePageKind == PK_HANDOUT,
886 mePageKind == PK_NOTES);
887}
888
889
890} // end of namespace sd
878 return ::svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD(
879 mpDrawView->GetMarkedObjectList(),
880 meEditMode == EM_MASTERPAGE,
881 mePageKind == PK_HANDOUT,
882 mePageKind == PK_NOTES);
883}
884
885
886} // end of namespace sd